# Privacy page

The Privacy page and the values it reads.

Where shoppers ask for a copy of their data or its deletion, confirm the request from their email, and follow it. Surface `privacy_request`.

## States

The step the page is on is `page.State`. The editor previews each state with sample data.

| State | The page |
| --- | --- |
| `form` | The request form. |
| `sent` | The request was sent or confirmed. |
| `confirm` | Confirming a request from the email link. |
| `requests` | A signed-in customer's requests. |
| `invalid` | An invalid or expired link. |

## What the code must keep

The request, confirmation and status controls, `<section class="privacy-controls" data-privacy-controls>`. Keep it exactly as the default has it.

Keep `{{ page.BrandingStyles }}`, `{{ page.PreviewNotice }}` and `{{ page.Heading }}`, and the document's `</head>` and `</body>`. See [the rules for all store pages](/ctx/store-pages).

## Values

Every value the page's code can read. `[]` marks a list item: read it inside `{% for item in list %}` as `item.Name`. A value that is empty in a particular case prints nothing; test it with `{% if %}` first.

| Value | Type | Description |
| --- | --- | --- |
| `page.BrandingStyles` | HTML | A `<style>` element with the page appearance: colours, font and corners as `--co-*` CSS variables. Required. |
| `page.BrandName` | Text | The brand name from the checkout appearance, or the store name when none is set. |
| `page.Confirm` | Object | The confirmation step (`confirm` state). |
| `page.Confirm.Action` | URL |  |
| `page.Confirm.Button` | Text |  |
| `page.Confirm.CSRF` | Text |  |
| `page.Confirm.Email` | Text | The address it was made for, masked. |
| `page.Confirm.Request` | Text | The request being confirmed: a copy of their data, or deletion. |
| `page.Confirm.Warning` | Text | The warning for a deletion. Empty for a copy. |
| `page.Dir` | Text | `ltr` or `rtl`, the writing direction of the language. Set it as the document's `dir`. |
| `page.Error` | Text | What went wrong with the last step, in the shopper's language. Empty otherwise. |
| `page.FirstLabel` | Text |  |
| `page.FirstURL` | URL | Newest requests. |
| `page.Form` | Object | The request form (`form` state). |
| `page.Form.Action` | URL |  |
| `page.Form.CSRF` | Text |  |
| `page.Form.DeletionHint` | Text |  |
| `page.Form.DeletionLabel` | Text |  |
| `page.Form.EmailLabel` | Text |  |
| `page.Form.ExportHint` | Text |  |
| `page.Form.ExportLabel` | Text |  |
| `page.Form.GuestNote` | Text |  |
| `page.Form.SignedIn` | Boolean | True for a signed-in customer, who needs no email field. |
| `page.Form.SignedInNote` | Text |  |
| `page.Form.Submit` | Text |  |
| `page.Form.TypeLabel` | Text |  |
| `page.Heading` | Text | The page heading. Required. |
| `page.Intro` | Text | The text under the heading. Empty when the current step has none. |
| `page.Locale` | Text | The shopper's language as a locale code, such as `en` or `de-CH`. Set it as the document's `lang`. |
| `page.LogoURL` | URL | The checkout appearance logo. Empty when the store has no logo. |
| `page.Message` | Text | A confirmation of what just happened, such as a code being sent. Empty otherwise. |
| `page.NextLabel` | Text |  |
| `page.NextURL` | URL | Older requests. |
| `page.Portal` | Object | The brand half of the page. |
| `page.Portal.BackgroundSrcset` | Text | A `srcset` of the background image in several widths. |
| `page.Portal.BackgroundURL` | URL | The order status page's background image, when the store set one. Empty otherwise. |
| `page.Portal.Links` | List | The store's checkout footer policies, as links. |
| `page.Portal.Links[].Label` | Text | The policy title. |
| `page.Portal.Links[].URL` | URL | The policy page. |
| `page.Portal.Style` | Text | Inline CSS custom properties for the brand half: `--portal-logo` (the checkout logo width) and `--portal-dim` (how much the background image is dimmed). Put it in a `style` attribute. |
| `page.PortalStyles` | HTML | A `<style>` element with the portal layout: the brand on one half and the page on the other on wide screens, the brand above the page on phones. |
| `page.PreviewNotice` | Text | In the editor preview, a notice that the page shows sample data. Empty on the storefront. Required. |
| `page.ReferenceLabel` | Text |  |
| `page.Requests` | List | A signed-in customer's requests (`requests` state). |
| `page.Requests[].Due` | Text | When it is due, while open. |
| `page.Requests[].Reference` | Text |  |
| `page.Requests[].Status` | Text |  |
| `page.Requests[].Type` | Text |  |
| `page.RequestsEmpty` | Text |  |
| `page.RequestsHeading` | Text |  |
| `page.RootURL` | URL | The storefront home page (`/`). `#` in the editor preview. |
| `page.State` | Text | The step the page is on. See the states above. |
| `page.Steps` | List | What happens after the request, worded, shown under the form. |
| `page.Tabs` | List | For a signed-in customer: a new request, and their requests. |
| `page.Tabs[].Active` | Boolean |  |
| `page.Tabs[].Label` | Text |  |
| `page.Tabs[].URL` | URL |  |

