/* ═══════════════════════════════════════════════════════════════════
   LEGAL DOCUMENT STYLES
   Shared across: terms, privacy, cookie-policy, dpa, accessibility,
   responsible-disclosure. Designed to look institutional and
   well-maintained - not an afterthought.
   ═══════════════════════════════════════════════════════════════════ */

*,*::before,*::after { box-sizing: border-box; }
body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: #2c2c2c;
    background: #faf8f4;
    margin: 0;
}

/* ── Site navigation (shared with solution pages) ── */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; border-bottom: 0.0625rem solid #ebe6dd; background: #fffdf8; }
.site-nav a { color: #7a6315; text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.site-nav a:hover { text-decoration: underline; }
.site-brand { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.125rem; color: #1c2331; text-decoration: none; }
.site-brand:hover { color: #7a6315; }
.site-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.btn { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 1rem; border-radius: 0.25rem; font-size: 0.8125rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; }
.btn-primary { background: #b5942a; color: #1c2331; }

/* ── Mobile nav toggle ── */
.site-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 0.25rem; -webkit-tap-highlight-color: transparent; }
.site-nav-toggle span { display: block; width: 1.25rem; height: 0.125rem; background: #1c2331; border-radius: 0.0625rem; transition: 0.15s; }
@media (max-width: 48em) {
    .site-nav { flex-wrap: wrap; position: relative; }
    .site-nav-toggle { display: flex; }
    .site-nav-links { display: none; width: 100%; flex-direction: column; gap: 0.75rem; padding: 1rem 0 0.5rem; border-top: 0.0625rem solid #ebe6dd; order: 3; }
    .site-nav-links.open { display: flex; }
    .site-nav-links .btn { align-self: flex-start; }
}

/* ── Breadcrumbs ──
   flex+wrap with explicit row-gap so the trail stays aligned (no
   baseline jumps) even when "Home › Legal › Terms of Service" can't
   fit on a single line at narrow widths. All children share the same
   vertical metrics so the link box doesn't sit taller than the
   separator span when they wrap. */
.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b6660;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
    min-width: 0;
    line-height: 1.4;
}
.crumbs > * { line-height: 1.4; }
.crumbs a { color: #6b655c; text-decoration: none; }
.crumbs a:hover { color: #7a6315; }
.crumbs span:last-child { color: #555049; font-weight: 600; }

/* ── Document container ── */
.legal-page {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

/* ── Document header ── */
.legal-page h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1c2331;
    margin: 0 0 0.375rem;
    line-height: 1.2;
}
.legal-updated {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b6660;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.0625rem solid #ebe6dd;
}
.legal-intro {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #555049;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.0625rem solid #ebe6dd;
}
.legal-intro a { color: #7a6315; }

/* ── Section headings ── */
.legal-page h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #1c2331;
    margin: 2.5rem 0 0.75rem;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid #f0ece4;
    scroll-margin-top: 4rem;
}
.legal-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* ── Body text ── */
.legal-page p,
.legal-page li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #555049;
}
.legal-page ul,
.legal-page ol {
    padding-left: 1.25rem;
}
.legal-page li {
    margin-bottom: 0.5rem;
}
.legal-page a {
    color: #7a6315;
}

/* ── Tables (privacy, cookies) ── */
.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}
.legal-page th,
.legal-page td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 0.0625rem solid #ebe6dd;
}
.legal-page th {
    font-weight: 700;
    color: #1c2331;
}

/* ── Callout box (disclosure) ── */
.legal-callout {
    background: #fffdf8;
    border: 0.0625rem solid #ebe6dd;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.legal-callout strong {
    color: #1c2331;
}

/* ── Related documents strip ── */
.legal-related {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fffdf8;
    border: 0.0625rem solid #ebe6dd;
    border-radius: 0.5rem;
}
.legal-related-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b6660;
    margin: 0 0 0.75rem;
}
.legal-related a {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b655c;
    text-decoration: none;
    margin-right: 1.5rem;
    margin-bottom: 0.375rem;
}
.legal-related a:hover { color: #7a6315; }
.legal-related a.is-current {
    color: #1c2331;
    border-bottom: 0.125rem solid #b5942a;
    padding-bottom: 0.125rem;
}

/* ── Footer ── */
.site-footer { border-top: 0.0625rem solid #ebe6dd; padding: 2.5rem 2rem 1.5rem; font-size: 0.75rem; color: #6b6660; }
.site-footer-cols { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; max-width: 64rem; }
.site-footer-cols > div { min-width: 7rem; display: flex; flex-direction: column; gap: 0.375rem; }
.site-footer-cols strong { color: #1c2331; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.site-footer a { color: #6b655c; text-decoration: none; font-size: 0.75rem; }
.site-footer a:hover { color: #7a6315; }
.site-footer > p { margin: 0; text-align: left; }

/* ── Responsive ── */
@media (max-width: 40em) {
    .legal-page { padding: 2rem 1.25rem 4rem; }
    .legal-page h1 { font-size: 1.75rem; }
}
