/* legal-brand.css — shared styling for the three public legal pages:
   privacy.php, terms.php, legal.php.

   Load this AFTER bootstrap and the font link, and BEFORE brand-tokens.css.
   The token file must come last or every var() below resolves to nothing and
   the page renders colourless. See DESIGN.md section 9. */

/* The same two stacks index.html defines. Not in brand-tokens.css. */
:root {
    --ts-sans:  "Geist", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    --ts-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
}

body {
    background-color: var(--ts-cloud);
    font-family: var(--ts-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ts-body);
}

.header {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--ts-line);
}
.header img {
    height: 34px;
}

.legal-container {
    max-width: 800px;
    margin: 4rem auto;
    background-color: #fff;
    padding: 3rem;
    border: 1px solid var(--ts-line);
    border-radius: 8px;
}

/* Display serif is for the document title only. Section headings stay in
   Geist — DESIGN.md reserves the serif for display type. */
.legal-container h2 {
    font-family: var(--ts-serif);
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--ts-slate);
    margin: 0 0 0.5rem;
}
.legal-container .last-updated {
    display: block;
    font-size: 0.9375rem;
    color: var(--ts-muted);
    margin-bottom: 2rem;
}
.legal-container .lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--ts-body);
    margin-bottom: 2rem;
}
.legal-container h4 {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ts-slate);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ts-line);
}
.legal-container h5 {
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--ts-slate);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-container p {
    margin-bottom: 1rem;
}
.legal-container ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.legal-container li {
    margin-bottom: 0.5rem;
}
.legal-container strong {
    font-weight: 600;
    color: var(--ts-slate);
}
.legal-container a {
    color: var(--ts-glow);
    text-decoration: underline;
}
.legal-container a:hover {
    color: var(--ts-glow-dark);
}

.legal-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}
.legal-container table th,
.legal-container table td {
    border: 1px solid var(--ts-line);
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}
.legal-container table th {
    background-color: var(--ts-marble);
    font-weight: 600;
    color: var(--ts-slate);
}

.footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9375rem;
    color: var(--ts-muted);
}

@media (max-width: 767px) {
    .legal-container {
        margin: 1.5rem auto;
        padding: 1.5rem;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
    .legal-container h2 {
        font-size: 2rem;
    }
}
@media (max-width: 576px) {
    .header img {
        height: 28px;
    }
}
