/* legal.css — shared style for privacy/terms/faq/error pages */

:root {
    --blue: #2E86C1;
    --navy: #154360;
    --yellow: #FDD835;
    --blue-bg-pale: #EBF5FB;
    --blue-border: #AED6F1;
    --ink: #154360;
    --ink-muted: #1F618D;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background: var(--blue-bg-pale);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: clamp(24px, 5vw, 48px) 20px 96px;
}

main, .legal-shell {
    max-width: 68ch;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--blue-border);
    border-radius: 12px;
    padding: clamp(24px, 4vw, 48px);
}

h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.25;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 1rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; margin-top: 1.5rem; }

p, li {
    margin: 0 0 1em;
    color: var(--ink);
}

ul, ol {
    padding-left: 1.25rem;
    margin: 0 0 1em;
}

a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 120ms ease;
}
a:hover, a:focus-visible {
    border-bottom-color: var(--blue);
}
a:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
    border-radius: 2px;
}

strong, b { font-weight: 500; color: var(--navy); }

hr {
    border: 0;
    border-top: 1px solid var(--blue-border);
    margin: 2rem 0;
}

code, pre {
    font-family: ui-monospace, SFMono-Regular, "Menlo", "Monaco", Consolas, monospace;
    font-size: 0.9em;
    background: var(--blue-bg-pale);
    border: 1px solid var(--blue-border);
    border-radius: 4px;
    padding: 1px 6px;
}

pre {
    padding: 12px 16px;
    overflow-x: auto;
    line-height: 1.5;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    color: var(--ink-muted);
    font-size: 13px;
}

.back-link:hover { color: var(--blue); border-bottom-color: transparent; }

.muted { color: var(--ink-muted); font-size: 0.9em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.95em;
}
th, td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--blue-border);
}
th {
    font-weight: 500;
    color: var(--navy);
    background: var(--blue-bg-pale);
}

footer {
    max-width: 68ch;
    margin: 24px auto 0;
    text-align: center;
    color: var(--ink-muted);
    font-size: 13px;
}

/* Highlight / callout — full tint box, no side stripe (brand rule). */
.highlight, .callout {
    background: var(--blue-bg-pale);
    border: 1px solid var(--blue-border);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 1.25rem 0;
}
.highlight strong, .callout strong { color: var(--navy); }

.example {
    background: rgba(253, 216, 53, 0.14);
    border: 1px solid rgba(253, 216, 53, 0.45);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}
.example strong { color: var(--navy); }

.nav-list {
    padding-left: 0;
    list-style: none;
    column-count: 2;
    column-gap: 1rem;
}
.nav-list li { margin-bottom: 0.35rem; break-inside: avoid; }
@media (max-width: 600px) { .nav-list { column-count: 1; } }

/* Language switcher on legal pages */
.lang-switch {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin: 0 0 1.25rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.lang-switch .lang-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}
.lang-switch .lang {
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--blue-border);
    border-radius: 4px;
    color: var(--ink);
}
.lang-switch .lang.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #FFFFFF;
}
.lang-switch .lang.pending {
    opacity: 0.55;
    cursor: not-allowed;
}
.lang-switch .lang.pending abbr { text-decoration: none; }
.lang-switch .note { font-size: 0.82rem; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
