# Legal copy

A text page body for privacy, terms and similar utility pages: an optional header (date and title) followed by long-form rich text in a single column.

## Screenshots

| Variant | Preview |
|---------|---------|
| Default | ![Default](../screenshots/components/legal-copy-default.png) |

## What it looks like

If a `preHeading` or `heading` is set, a header block appears first: a small line above a large Navy title, framed by a thin line above and below. Below it, the body runs in a single centred column on the ten middle columns, with generous spacing between paragraphs. Section-break paragraphs become horizontal rules, and the body uses the letter reading style (headings, lists, links, bold labels, pull quotes).

## Typography

- **Pre-heading:** `h5`, Ink colour.
- **Heading:** `h1`, Navy, always an `<h1>` tag.
- **Body:** letter reading style (not the standard `p2` body); section headings, lists and links follow it.

## Colours

- This type does not use `backgroundColour` or `textColour`; the section sits on the page background with Navy and Ink text as above.

## Used fields

| Field | Type | Effect when set | Effect when empty/removed |
|-------|------|-----------------|---------------------------|
| `preHeading` | Symbol | Small line above the title (typically a date) | Not shown; if heading is also empty the header block is omitted |
| `heading` | Symbol | Page title (`h1`) | Not shown; if preHeading is also empty the header block is omitted |
| `body` | RichText | The legal text | The body section is omitted entirely |
| `cmsLabel` | Symbol | Internal and analytics label | No visible effect |
| `componentType` | Symbol | "Legal copy" | N/A |
| `id` | Symbol | Entry id for preview | No visible effect |

## Behaviour

- The heading is always `<h1>`, so use one Legal copy with a heading per page.
- A paragraph consisting only of a section-break marker renders as a horizontal rule; empty paragraphs are skipped.
- Paragraphs whose text is exactly "Personal Information We Collect", "How We Gather Personal Information" or "Disclosure of Personal Information" (ignoring trailing colon or full stop) become link targets for the privacy-policy shortcuts. Keep those labels unchanged.
- A Cookie list entry can be placed inside the body to show the cookie table.

## Impact of content changes

| Change | Result |
|--------|--------|
| Remove `heading` and `preHeading` | Header block disappears; body starts the section |
| Remove `body` | Only the header remains |
| Reword the three privacy labels | In-page privacy shortcuts stop jumping to them |
| Add a section-break paragraph | A horizontal rule appears |
