/* My Cross Walk legal pages (Terms of Service / EULA, Privacy Policy).
   Same palette as the app (public/styles.css); light unless the app is set to dark. */
:root {
    --bg-app: #f4edd9;
    --bg-card: #fefcf7;
    --border-color: #e6dac6;
    --text-main: #2b1d14;
    --text-muted: #7a685b;
    --accent-gold: #c6944e;
    --notice-bg: #faf3e5;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-app: #121415;
        --bg-card: #1a1c1e;
        --border-color: #2b2e31;
        --text-main: #e6e8ea;
        --text-muted: #8b9298;
        --accent-gold: #d4af37;
        --notice-bg: #2d2a1c;
    }
}

:root[data-theme="dark"] {
    --bg-app: #121415;
    --bg-card: #1a1c1e;
    --border-color: #2b2e31;
    --text-main: #e6e8ea;
    --text-muted: #8b9298;
    --accent-gold: #d4af37;
    --notice-bg: #2d2a1c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 16px 4rem;
}

.legal-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
}

.legal-top img {
    width: 40px;
    height: 40px;
}

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 2.25rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-color);
    font-variant-numeric: lining-nums;
}

h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.4rem;
}

p,
li {
    overflow-wrap: anywhere;
}

ul {
    padding-left: 1.4rem;
}

li {
    margin-bottom: 0.35rem;
}

a {
    color: var(--accent-gold);
}

.legal-meta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.legal-notice,
.legal-promise {
    background-color: var(--notice-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.legal-notice {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.legal-caps {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.88rem;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legal-footer p {
    margin: 0.25rem 0;
}

.legal-promise p {
    margin: 0;
}
