@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/bricolage-grotesque-800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Gabarito";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/assets/fonts/gabarito-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Same brand tokens as styles.css (ZeroPrompts brand guidelines v1.0). */
:root {
    --sunflower: #ffc83d;
    --live-red: #f2381f;
    --ink: #191c22;
    --ground: #fdfbf6;
    --night-navy: #17245a;
    --paper-light: #f2f3f5;

    --bg: var(--ground);
    --surface: #ffffff;
    --text: var(--ink);
    --muted: #52555b;
    --line: rgba(25, 28, 34, 0.14);
    --logo: var(--night-navy);
    --strike: var(--live-red);
    --link: var(--night-navy);

    --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
    --font-text: "Gabarito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --margin: clamp(1rem, 4vw, 3rem);

    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 3px;
}

::selection {
    background: var(--sunflower);
    color: var(--ink);
}

/* Logo: path data from the brand kit (kit/D/logo), cropped to the ink box. */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.logo {
    display: block;
    height: 1.75rem;
    aspect-ratio: 766.576 / 118.334;
    color: var(--logo);
}

/* Header */
.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 90rem;
    height: 4.5rem;
    margin: 0 auto;
    padding-inline: var(--margin);
}

.legal-brand {
    display: inline-flex;
    padding-block: 0.4rem;
    text-decoration: none;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--sunflower);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

.legal-back:hover {
    text-decoration-color: currentColor;
}

/* Layout */
.legal-shell {
    display: grid;
    grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 6vw, 6rem);
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 var(--margin) 7rem;
}

.legal-hero {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
    gap: 1.5rem 4rem;
    align-content: end;
    margin-bottom: clamp(3.5rem, 6vw, 6rem);
    padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
    background: var(--sunflower);
    color: var(--ink);
}

.legal-eyebrow {
    grid-column: 1 / -1;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-hero h1 {
    grid-column: 1;
    margin: 0 0 0 -0.04em;
    font-family: var(--font-display);
    font-size: clamp(3rem, 1.8rem + 5vw, 6.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.legal-updated {
    grid-column: 1;
    margin: 0;
    font-size: 0.9375rem;
}

.legal-summary {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: end;
}

.legal-summary p {
    margin: 0;
    font-size: 1rem;
}

.legal-summary p + p {
    margin-top: 0.85rem;
}

.legal-hero strong {
    font-weight: 600;
}

.legal-hero a {
    color: var(--ink);
}

/* Side rail */
.legal-rail {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    align-self: start;
    grid-column: 1;
    grid-row: 2 / span 999;
    padding-top: 1.25rem;
    border-top: 2px solid var(--text);
}

.legal-rail > span {
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-rail h2 {
    margin: 1rem 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.legal-rail p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.legal-rail > a {
    font-size: 0.9375rem;
    font-weight: 600;
}

.legal-rail nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.legal-rail nav a {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.legal-rail nav a[aria-current="page"] {
    border-color: var(--sunflower);
    background: var(--sunflower);
    color: var(--ink);
}

/* Document body */
.legal-shell > :not(.legal-hero, .legal-rail) {
    grid-column: 2;
    max-width: 46rem;
}

.legal-shell > h2 {
    margin: 4rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.legal-shell > h2:first-of-type {
    margin-top: 0;
}

.legal-shell > h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.legal-shell > p {
    margin: 0 0 1rem;
}

.legal-shell p,
.legal-shell li {
    color: var(--text);
}

.legal-shell ul,
.legal-shell ol {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.legal-shell li {
    margin-bottom: 0.45rem;
    padding-left: 0.25rem;
}

.legal-shell li::marker {
    color: var(--muted);
}

.legal-shell strong {
    font-weight: 600;
}

.legal-shell table {
    display: block;
    width: 100%;
    margin: 0 0 1.5rem;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal-shell th,
.legal-shell td {
    min-width: 11rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-shell th {
    background: var(--sunflower);
    color: var(--ink);
    font-weight: 600;
}

/* Footer */
.legal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 2.5rem var(--margin);
    background: var(--ink);
    color: #a9afbf;
    font-size: 0.875rem;
}

.legal-footer p {
    margin: 0;
}

.legal-footer nav {
    display: flex;
    gap: 1.5rem;
}

.legal-footer a {
    color: var(--paper-light);
    font-weight: 600;
}

@media (max-width: 52rem) {
    .legal-shell {
        display: block;
    }

    .legal-hero {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-inline: calc(var(--margin) * -1);
        margin-bottom: 3rem;
    }

    .legal-rail {
        position: static;
        margin-bottom: 3.5rem;
    }

    .legal-shell > h2:first-of-type {
        margin-top: 4rem;
    }
}

@media (max-width: 30rem) {
    .legal-back {
        font-size: 0.875rem;
    }

    .logo {
        height: 1.5rem;
    }
}
