/*
| No hero band any more, so this clears the fixed header itself — 76px of it,
| plus the breathing room the band used to provide. Without the offset the
| card starts underneath the header, which is the one thing a fixed header
| always costs you.
*/
.policy-shell {
    padding: calc(76px + 40px) var(--gutter) 80px;
    background: var(--surface);
}

.policy-shell__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    display: grid;
    /* Fills the wrap, so the card's edges line up with the header bar and the
       footer above and below it. It used to be a fixed 268 + 728 centred
       inside 1200, which inset the whole document by 86px on each side and
       read as a page that had been laid out by somebody else. */
    grid-template-columns: 268px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.policy-nav {
    grid-column: 1;
    grid-row: 1;
}

.policy-nav__card {
    position: sticky;
    top: calc(76px + 24px);
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--page);
}

.policy-nav__label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.policy-nav__lead {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.policy-nav__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.policy-nav__list a {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.policy-nav__list a:hover {
    background: var(--accent-tint);
    color: var(--accent-dark);
}

.policy-nav__list a.on {
    background: var(--accent);
    color: #ffffff;
}

.policy-nav__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.policy-nav__contact a:hover {
    text-decoration: underline;
}

.policy-doc__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.policy-doc__title {
    font-size: 32px;
    margin-bottom: 8px;
}

.policy-doc__stamp {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.policy-doc {
    grid-column: 2;
    grid-row: 1;
    padding: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--page);
}

.policy-doc__owner {
    /* One rule under this note, not one either side of it: the stamp above
       already ends the heading. */
    margin: 20px 0 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    line-height: 1.75;
}

.policy-doc__owner strong {
    color: var(--ink);
}

.policy-doc__body {
    font-size: 16.5px;
    line-height: 1.8;
}

/*
| The card is as wide as the header now; the prose inside it is not. Past
| about 75 characters the eye loses the start of the next line, and a privacy
| policy is long enough to be read badly.
|
| Capped on the text itself rather than on the body, which was the first
| attempt: a table inside a 75ch box cannot escape it, however wide you say it
| is, so the cookie table came out squeezed into two thirds of the card.
*/
.policy-doc__owner,
.policy-doc__body p,
.policy-doc__body ul,
.policy-doc__body ol,
.policy-doc__body h3,
.policy-doc__body h4 {
    max-width: 75ch;
}

.policy-doc__body h3 {
    margin: 40px 0 12px;
    font-size: 21px;
}

.policy-doc__body h3:first-child {
    margin-top: 0;
}

.policy-doc__body h4 {
    margin: 26px 0 6px;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.policy-doc__body p {
    margin-bottom: 16px;
}

.policy-doc__body strong {
    color: var(--ink);
    font-weight: 700;
}

.policy-doc__body ul,
.policy-doc__body ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.policy-doc__body ul li {
    list-style: disc outside;
}

.policy-doc__body ol li {
    list-style: decimal outside;
}

.policy-doc__body li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.policy-doc__body li:last-child {
    margin-bottom: 0;
}

.policy-doc__body li ul,
.policy-doc__body li ol {
    margin: 10px 0 0;
}

.policy-doc__body li ul li {
    list-style: circle outside;
}

.policy-doc__body a:hover {
    text-decoration: underline;
}

.policy-doc__body table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.65;
}

.policy-doc__body th,
.policy-doc__body td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.policy-doc__body th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.policy-doc__body code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--accent-tint);
    color: var(--accent-dark);
    font-size: 0.88em;
}

@media (max-width: 1060px) {
    .policy-shell__inner {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 960px) {
    .policy-shell {
        padding: calc(64px + 28px) var(--gutter) 60px;
    }

    .policy-shell__inner {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .policy-nav__card {
        position: static;
    }

    .policy-doc {
        padding: 32px 28px;
    }

}

@media (max-width: 700px) {
    .policy-doc__body table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 560px) {
    .policy-shell {
        padding: calc(64px + 20px) var(--gutter) 48px;
    }

    .policy-doc {
        padding: 26px 20px;
        border-radius: 12px;
    }

    .policy-doc__body {
        font-size: 16px;
    }

    .policy-doc__body h3 {
        margin-top: 32px;
        font-size: 19px;
    }

    .policy-doc__body ul,
    .policy-doc__body ol {
        padding-left: 20px;
    }
}

/*
 * The processor list. A table rather than a bulleted list because it is two
 * columns of fact — who, and what they receive — and a reader checking one
 * name against a privacy form is scanning the left column.
 */
.policy-table {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: collapse;
    /* Fixed, so the two tables in a section line up with each other rather
       than each sizing itself to its own longest name. */
    table-layout: fixed;
    font-size: 15.5px;
    line-height: 1.65;
}

.policy-table td {
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid var(--line, #e6e6e6);
    vertical-align: top;
}

.policy-table td:first-child {
    width: 34%;
    padding-right: 24px;
}

.policy-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 640px) {
    .policy-table td,
    .policy-table td:first-child {
        display: block;
        width: 100%;
        padding: 0;
        border-bottom: 0;
    }

    .policy-table td:first-child {
        padding-top: 14px;
    }

    .policy-table tr + tr td:first-child {
        border-top: 1px solid var(--line, #e6e6e6);
        margin-top: 14px;
    }
}
