:root {
    --bg-color: #FAF9F6;
    --text-color: #21201E;
    --border-color: #21201E;
    --muted: #6b6a67;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.legal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 14px;
}

.legal-nav a {
    color: var(--text-color);
    text-decoration: none;
}

.legal-nav a:hover { text-decoration: underline; }

.legal-nav .brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.legal-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 32px 120px;
}

.legal-wrap h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.legal-wrap .legal-updated {
    color: var(--muted);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 48px;
}

.legal-wrap h2 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 48px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legal-wrap h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin: 28px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legal-wrap p,
.legal-wrap li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-color);
}

.legal-wrap ul,
.legal-wrap ol {
    padding-left: 22px;
}

.legal-wrap a {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-wrap .toc {
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    margin: 0 0 48px;
    background: #fff;
}

.legal-wrap .toc ol {
    margin: 0;
    padding-left: 18px;
    columns: 2;
    column-gap: 32px;
}

.legal-wrap .toc li {
    font-size: 13px;
    line-height: 1.8;
}

.legal-wrap .callout {
    border-left: 3px solid var(--border-color);
    padding: 12px 18px;
    margin: 24px 0;
    background: #fff;
    font-size: 14px;
}

.legal-back {
    display: inline-block;
    margin-top: 64px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 600px) {
    .legal-wrap { padding: 40px 20px 80px; }
    .legal-nav { padding: 16px 20px; font-size: 12px; }
    .legal-wrap .toc ol { columns: 1; }
}

/* Site footer (loaded on index.html and other pages) */
.site-footer {
    border-top: 1px solid #21201E;
    padding: 10px 32px;
    margin-top: 0;
    background: #FAF9F6;
    color: #21201E;
    font-family: 'Archivo', sans-serif;
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    justify-content: space-between;
    align-items: center;
}

.site-footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 14px;
    text-transform: uppercase;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.site-footer-links a:hover { text-decoration: underline; }

.site-footer-meta {
    color: #6b6a67;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
