/* ============================================================================
   legal.css: the legal pages (legal.html, 14 November 2026).

   A reading page, not a scroll scene: the light theme's tokens and footer,
   a plain header with the lockup, and a single column of text at a reading
   measure. Loaded after light/css/light.css.
   ========================================================================== */

.legal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-shadow: none;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.legal-nav {
    border-bottom: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.72);
}

.legal-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.legal-nav__logo { display: inline-flex; }
.legal-nav__lockup { display: block; height: 32px; width: auto; }

.legal-nav__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.legal-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding-block: 10px;
}
.legal-nav__link:hover { color: var(--red); }
.legal-nav__link:focus-visible,
.legal-nav__logo:focus-visible,
.legal-footer__links a:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── The text ───────────────────────────────────────────────────────── */
.legal {
    flex: 1 0 auto;
    max-width: calc(860px + var(--gutter) * 2);
    padding-block: 64px 80px;
    color: var(--ink);
    line-height: 1.8;
}

.legal__title {
    margin: 0 0 24px;
    font-size: 36px;
    line-height: 1.3;
    font-weight: 700;
}

.legal__h2 { margin: 32px 0 12px; font-size: 22px; line-height: 1.4; font-weight: 700; }
.legal__h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.4; font-weight: 700; }
.legal__p { margin: 0 0 16px; font-size: 16px; overflow-wrap: anywhere; }

.legal__list {
    margin: 0 0 16px;
    padding-inline-start: 24px;
    list-style: disc;
    overflow-wrap: anywhere;
}
.legal__list li + li { margin-block-start: 6px; }

.legal__note { margin: 0 0 16px; color: var(--silver); }

/* ── Footer: the light band, with the three links in a row ──────────── */
.legal-footer { padding-block: 40px 32px; }

.legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
}
.legal-footer__links a {
    font-size: 14px;
    color: var(--silver);
    text-decoration: none;
    padding-block: 6px;
}
.legal-footer__links a:hover { color: var(--ink); }

@media (max-width: 900px) {
    .legal { padding-block: 40px 56px; }
    .legal__title { font-size: 28px; }
    .legal-nav__inner { min-height: 68px; }
    .legal-nav__lockup { height: 26px; }
}
