/* Shared styles for privacy.html and terms.html */
:root {
    --ink: #09090b;
    --text: #3f3f46;
    --muted: #71717a;
    --line: #e4e4e7;
    --bg: #ffffff;
    --soft: #f4f4f5;
    --softer: #fafafa;
    --accent: #18181b;
    --ok: #15803d;
    --ok-bg: #f0fdf4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Top bar */
.legal-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
}
.legal-top-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.legal-top img { height: 32px; width: auto; display: block; }
.legal-top nav { display: flex; gap: 6px; font-size: 0.88rem; font-weight: 600; }
.legal-top nav a {
    color: var(--text);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 999px;
}
.legal-top nav a:hover { background: var(--soft); color: var(--ink); }
.legal-top nav a[aria-current="page"] { background: var(--accent); color: #ffffff; }

/* Hero */
.legal-hero {
    background: var(--softer);
    border-bottom: 1px solid var(--line);
    padding: 48px 16px 40px;
}
.legal-hero-inner { max-width: 1120px; margin: 0 auto; }
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
h1 {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.updated { color: var(--muted); font-size: 0.92rem; margin: 0; }
.updated span + span::before { content: "·"; margin: 0 8px; }

.summary {
    margin-top: 28px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 24px;
    max-width: 820px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.summary-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
}
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.summary li {
    position: relative;
    padding-left: 30px;
    margin: 0;
    max-width: none;
}
.summary li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ok-bg);
    color: var(--ok);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout: contents on the side on wide screens */
.legal-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 16px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}
.toc-side {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    align-self: start;
}
.toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}
.toc { margin: 0; padding-left: 1.3rem; font-size: 0.9rem; columns: 2 200px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 960px) {
    .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
    .toc-side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
    .toc { columns: 1; }
}

article { min-width: 0; }
article > section {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 72px;
}
article > section:first-child { border-top: none; padding-top: 0; }
h2 {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--ink);
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 12px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
h2 .num {
    flex: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1px 8px;
    position: relative;
    top: -3px;
}
h3 { color: var(--ink); font-size: 1rem; margin: 22px 0 6px; }
p, li { max-width: 72ch; }
p { margin: 0 0 12px; }
ul { padding-left: 1.2rem; margin: 0 0 12px; }
li { margin: 6px 0; }
li::marker { color: var(--muted); }
a { color: var(--ink); text-underline-offset: 3px; }
strong { color: var(--ink); }

.callout {
    background: var(--softer);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 14px 0;
    font-weight: 600;
    color: var(--ink);
}

.table-wrap {
    overflow-x: auto;
    margin: 14px 0;
    border: 1px solid var(--line);
    border-radius: 12px;
}
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
th {
    color: var(--ink);
    background: var(--softer);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}
td:first-child { color: var(--ink); font-weight: 600; }

.contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    background: var(--accent);
    color: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 14px 0;
}
.contact-card p { margin: 0; color: #d4d4d8; max-width: 52ch; }
.contact-card strong { color: #ffffff; }
.contact-card a.btn {
    background: #ffffff;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
}

footer.legal-foot {
    border-top: 1px solid var(--line);
    background: var(--softer);
    color: var(--muted);
    font-size: 0.85rem;
    padding: 22px 16px 32px;
    text-align: center;
}
footer.legal-foot a { color: var(--text); }

@media (max-width: 520px) {
    .legal-top nav a.back { display: none; }
    .legal-hero { padding: 32px 16px 28px; }
    .summary { padding: 18px; }
}
@media print {
    .legal-top, .toc-side, .contact-card a.btn { display: none; }
    .legal-hero { background: none; padding-top: 0; }
    .legal-layout { display: block; }
}
