/* ------------------------------------------------------------------
   Privacy policy pages — What a Nice Idea
   Shared stylesheet for /privacy/**. Dark, brand-matching, but tuned
   for readable long-form legal text (unlike the animated landing page,
   these pages scroll normally and use the system cursor).
   ------------------------------------------------------------------ */

:root {
    --bg: #050505;
    --bg-soft: #0d0d10;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.10);
    --text: #ececf1;
    --muted: #a0a0a8;
    --heading: #ffffff;
    --accent: #8ea2ff;
    --accent-soft: rgba(142, 162, 255, 0.14);
    --max: 820px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 500px at 12% -8%, rgba(142, 162, 255, 0.10), transparent 60%),
        radial-gradient(760px 480px at 100% 0%, rgba(120, 220, 200, 0.06), transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding: 0 1.25rem 5rem;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
}

/* --- Top bar / breadcrumb --- */
.topbar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.75rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    color: var(--heading);
    text-decoration: none;
}

.brand span {
    color: var(--accent);
}

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.crumbs a:hover {
    color: var(--text);
    border-bottom-color: var(--border);
}

/* --- Header --- */
header.doc {
    max-width: var(--max);
    margin: 3.5rem auto 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--border);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

header.doc h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #ffffff 0%, #9aa0b5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

header.doc .tagline {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 62ch;
}

.meta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
}

.meta strong {
    color: var(--text);
    font-weight: 500;
}

/* --- Summary / TL;DR card --- */
.summary {
    max-width: var(--max);
    margin: 0 auto 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
}

.summary h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.summary ul {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.summary li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text);
    font-size: 0.96rem;
}

.summary li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(142, 162, 255, 0.7);
}

/* --- Table of contents --- */
nav.toc {
    max-width: var(--max);
    margin: 0 auto 3rem;
}

nav.toc h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 0.9rem;
    border: none;
    padding: 0;
}

nav.toc ol {
    list-style: none;
    counter-reset: toc;
    columns: 2;
    column-gap: 2rem;
}

nav.toc li {
    counter-increment: toc;
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

nav.toc a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

nav.toc a::before {
    content: counter(toc) ". ";
    color: var(--accent);
}

nav.toc a:hover {
    color: var(--text);
}

/* --- Body sections --- */
main {
    max-width: var(--max);
    margin: 0 auto;
}

section {
    margin-bottom: 2.75rem;
    scroll-margin-top: 1.5rem;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.01em;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.6rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

ul, ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--text);
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-soft);
}

a:hover {
    border-bottom-color: var(--accent);
}

strong {
    color: var(--heading);
    font-weight: 600;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
}

/* Definition-style data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.94rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table th {
    background: var(--surface);
    color: var(--heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td:first-child {
    color: var(--heading);
    font-weight: 500;
    white-space: nowrap;
}

.table-scroll {
    overflow-x: auto;
}

/* Callout note */
.note {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.94rem;
    color: var(--text);
}

.note strong {
    color: var(--accent);
}

/* --- Footer --- */
footer.doc {
    max-width: var(--max);
    margin: 3.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}

footer.doc .contact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

footer.doc a {
    color: var(--text);
}

.backlink {
    color: var(--muted);
}

/* --- Privacy index (landing list of all policies) --- */
.policy-grid {
    max-width: var(--max);
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
}

.policy-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.policy-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(142, 162, 255, 0.05);
}

.policy-card h3 {
    font-size: 1.15rem;
    color: var(--heading);
    margin: 0 0 0.4rem;
}

.policy-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.policy-card .arrow {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    nav.toc ol { columns: 1; }
    header.doc { margin-top: 2.5rem; }
}

@media print {
    body { background: #fff; color: #111; }
    .topbar, nav.toc, .backlink { display: none; }
    a { color: #111; border: none; }
    header.doc h1 { -webkit-text-fill-color: #111; }
}
