/* Shared styles for standalone legal pages (/privacy, /cookie-policy). Loaded after site.css. */

.legal-page {
    --bg: var(--white);
    --fg: var(--black);
    --muted: var(--muted-on-white);
    --line: rgba(10,10,10,0.12);
    --eyebrow: var(--burgundy);
    flex: 1 0 auto;
    background: var(--bg);
    color: var(--fg);
}

/* ---- Header ---- */
.legal-header {
    padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 120px));
    padding-bottom: clamp(32px, 4vw, 56px);
}
.legal-eyebrow {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--eyebrow);
    margin-bottom: 1.25rem;
}
.legal-title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--black);
}
.legal-meta {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: rgba(10,10,10,0.5);
}

/* ---- Body ---- */
.legal-body {
    max-width: 720px;
    padding-bottom: var(--section-pad-y);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(10,10,10,0.78);
}
.legal-body > * + * { margin-top: 1.25rem; }
.legal-body h2 {
    margin-top: 3rem;
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    color: var(--black);
}
.legal-body h3 {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--black);
}
.legal-body h2 + *,
.legal-body h3 + * { margin-top: 0.75rem; }
.legal-body strong {
    font-weight: 600;
    color: var(--black);
}
.legal-body ul { padding-left: 1.25em; }
.legal-body li + li { margin-top: 0.5rem; }
.legal-body li::marker { color: var(--burgundy); }
.legal-body a {
    color: var(--burgundy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.legal-body a:hover { color: var(--burgundy-hover); }
.legal-note {
    border-left: 2px solid var(--burgundy);
    padding-left: 1rem;
}

/* ---- Tables: hairline rows, no boxes, no striping ---- */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.6;
}
.legal-table th {
    padding: 0 16px 12px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: bottom;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(10,10,10,0.5);
}
.legal-table td {
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.legal-table td:last-child,
.legal-table th:last-child { padding-right: 0; }
/* Two-column label/value tables without a header row */
.legal-table--kv { border-top: 1px solid var(--line); }
.legal-table--kv td:first-child {
    width: 35%;
    font-weight: 500;
    color: var(--black);
}

/* ---- Closing lines ---- */
.legal-closing {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: rgba(10,10,10,0.5);
}
.legal-body > .legal-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-style: italic;
    color: rgba(10,10,10,0.5);
}

/* ---- Small screens: stack table rows as label / value pairs ---- */
@media (max-width: 639px) {
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table td {
        display: block;
        width: 100%;
    }
    .legal-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .legal-table { border-top: 1px solid var(--line); }
    .legal-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }
    .legal-table td {
        padding: 0;
        border: 0;
    }
    .legal-table td + td { margin-top: 10px; }
    .legal-table td[data-label]::before,
    .legal-table--kv td:first-child {
        display: block;
        font-size: 0.8125rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(10,10,10,0.5);
    }
    .legal-table td[data-label]::before {
        content: attr(data-label);
        margin-bottom: 2px;
    }
    .legal-table--kv td:first-child { width: auto; }
    .legal-table--kv td + td { margin-top: 2px; }
}
