/* Shared look of the static legal pages (/privacy, /terms): the landing's
   header, typography and footer, without the landing script. */
:root {
    --night: #071a2c;
    --route: #1c6f79;
    --signal: #f0c96a;
    --paper: #fffaf0;
    --mist: #e9f1ec;
    --ink: #132331;
    --muted: #63727c;
    --line: #d9e1dc;
    --white: #ffffff;
    --max: 1160px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Manrope, system-ui, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 4px;
}

.shell {
    margin: 0 auto;
    max-width: var(--max);
    padding: 0 24px;
}

.site-header {
    backdrop-filter: blur(18px);
    background: rgba(255, 250, 240, 0.88);
    border-bottom: 1px solid rgba(217, 225, 220, 0.9);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 76px;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand img {
    height: 34px;
    width: auto;
}

.nav-actions {
    align-items: center;
    display: flex;
    gap: 18px;
}

.nav-actions .nav-link {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.button {
    align-items: center;
    background: var(--signal);
    border: 1px solid var(--signal);
    border-radius: 999px;
    color: var(--night);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    white-space: nowrap;
}

.button:hover {
    background: #ffd97a;
    border-color: #ffd97a;
}

.legal {
    margin: 0 auto;
    max-width: 780px;
    padding: 56px 24px 72px;
}

.legal h1 {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.legal .updated {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 10px;
}

.legal h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 40px 0 10px;
    scroll-margin-top: 96px;
}

.legal h3 {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 22px 0 6px;
}

.legal p,
.legal ul {
    margin-top: 10px;
}

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

.legal li + li {
    margin-top: 6px;
}

.legal a {
    color: var(--route);
    font-weight: 700;
    text-decoration: underline;
}

.table-wrap {
    margin-top: 14px;
    overflow-x: auto;
}

.legal table {
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 560px;
    width: 100%;
}

.legal th,
.legal td {
    border-bottom: 1px solid var(--line);
    padding: 10px 12px 10px 0;
    text-align: left;
    vertical-align: top;
}

.legal th {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal code {
    background: var(--mist);
    border-radius: 6px;
    font-size: 0.86em;
    padding: 1px 6px;
}

.settings-link {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink) !important;
    display: inline-flex;
    font-weight: 800;
    margin-top: 16px;
    padding: 10px 18px;
    text-decoration: none !important;
}

footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .nav {
        min-height: 64px;
    }

    .nav-actions .nav-link {
        display: none;
    }

    .button {
        min-height: 40px;
        padding: 0 16px;
    }

    .legal {
        padding-top: 36px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
