/* Privacy and Terms pages. Mirrors the landing page's look (index.html):
   sandstone base, charcoal text, navy brand, hi-vis orange reserved for primary buttons. */
:root {
    --bg: #F7F5F1;          /* sandstone */
    --surface: #FFFFFF;
    --surface-2: #F1EEE8;
    --border: #E6E1D8;      /* stone */
    --border-strong: #D3CCC0;
    --text: #1E2328;        /* charcoal */
    --muted: #4A5361;
    --faint: #5B6470;
    --heading: #1B2A41;     /* workwear navy */
    --accent: #24476B;      /* eyebrows */
    --action-bg: #F26B1D;   /* hi-vis orange, primary buttons only */
    --action-bg-hover: #C2410C;
    --action-fg: #1E2328;
    --link: #24476B;
    --status: #2F7A57;      /* eucalypt green, status only */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.75 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--heading); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav (same as landing) ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgb(247 245 241 / 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--heading); text-decoration: none; }
.brand:hover { color: var(--heading); }
.brand span { font-size: 30px; font-weight: 600; letter-spacing: -0.05em; }
.nav-links { display: none; gap: 40px; font-size: 14px; white-space: nowrap; }
.nav-links a { color: var(--text); font-weight: 500; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--heading); }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--action-bg);
    color: var(--action-fg);
    border: 1px solid var(--action-bg-hover);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, transform .1s;
}
.btn:hover { background: var(--action-bg-hover); color: #FFFFFF; }
.btn:focus-visible { outline: 3px solid var(--heading); outline-offset: 3px; }
.btn:active { transform: scale(0.985); }

/* Secondary actions: navy outline, so orange stays reserved for the primary call to action */
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--heading); }
.btn-secondary:hover { background: var(--heading); color: #FFFFFF; }

/* ---------- Hero band ---------- */
.legal-hero {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F5F1 100%); /* .hero-bg on the landing page */
    border-bottom: 1px solid var(--border);
    padding: 72px 0 64px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--status); }
.eyebrow {
    margin: 24px 0 12px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.legal-hero h1 {
    margin: 0 0 20px;
    color: var(--heading);
    font-size: clamp(40px, 7vw, 60px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.lede { max-width: 640px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.6; }

/* ---------- At-a-glance cards ---------- */
.glance { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 768px) { .glance { grid-template-columns: repeat(3, 1fr); } }
.glance-card {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}
.glance-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #E9EEF4;
    color: var(--heading);
    margin-bottom: 12px;
}
.glance-card strong { display: block; color: var(--heading); font-weight: 600; margin-bottom: 2px; }
.glance-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Body: table of contents + content card ---------- */
.legal-body { display: grid; gap: 40px; padding-block: 64px 96px; }
@media (min-width: 1024px) { .legal-body { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }

.toc { display: none; }
@media (min-width: 1024px) {
    .toc { display: block; position: sticky; top: 112px; align-self: start; }
}
.toc-title {
    margin: 0 0 12px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a {
    display: block;
    margin-left: -1px;
    padding: 6px 0 6px 16px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--heading); }
.toc a.active { color: var(--heading); border-left-color: var(--link); }

.content {
    max-width: 760px;
    padding: 8px 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}
@media (max-width: 640px) { .content { padding: 4px 22px; border-radius: 20px; } }

.content section { padding: 32px 0; border-top: 1px solid var(--border); }
.content section:first-child { border-top: 0; }
.content h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--heading);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.content h2 .num { color: var(--faint); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.content h3 { margin: 20px 0 4px; color: var(--heading); font-size: 16px; font-weight: 600; }
.content p { margin: 0 0 12px; }
.content p:last-child { margin-bottom: 0; }
.content strong { color: var(--heading); font-weight: 600; }

.content ul { list-style: none; margin: 0 0 12px; padding: 0; }
.content li { position: relative; margin: 10px 0; padding-left: 26px; }
.content li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--heading);
}

/* ---------- Contact card ---------- */
.contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 32px;
    padding: 24px 28px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: var(--surface-2);
}
.contact-card strong { display: block; color: var(--heading); font-size: 18px; font-weight: 600; }
.contact-card p { margin: 0; color: var(--muted); }

/* ---------- Footer (same as landing) ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--faint); font-size: 12px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; text-align: left; } }
.footer a { color: var(--faint); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--text); }
.footer nav { display: flex; gap: 32px; }
.footer nav a[aria-current="page"] { color: var(--text); }
