/* ============================================================
   PlutoScan — shared styles for the policy pages
   (privacy.html, terms.html, refunds.html, 404.html)
   Tokens match index.html and plutoscan-modules.html.
   ============================================================ */
:root {
    --purple: #6C3CE1;
    --purple-light: #a78bfa;
    --blue: #1E90FF;
    --blue-light: #7cc0ff;
    --green: #34d399;
    --amber: #fbbf24;
    --bg: #0b0b16;
    --bg-2: #10101f;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f4fb;
    --text-2: rgba(232, 232, 250, 0.74);
    --text-3: rgba(232, 232, 250, 0.52);
    --grad: linear-gradient(135deg, var(--purple), var(--blue));
    --radius: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-light); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(108, 60, 225, 0.45); }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== NAV ===== */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 22, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; background: url(icons/logo.svg) center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(108, 60, 225, 0.55)); }
.nav-back { font-size: .9rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.nav-back:hover { color: var(--text); }

/* ===== DOCUMENT ===== */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc .eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 14px; }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.doc .updated { font-size: .88rem; color: var(--text-3); margin-bottom: 32px; }
.doc .summary { background: linear-gradient(135deg, rgba(108, 60, 225, 0.12), rgba(30, 144, 255, 0.06)); border: 1px solid rgba(108, 60, 225, 0.3); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 36px; color: var(--text-2); }
.doc .summary strong { color: var(--text); }
.doc .summary ul { margin: 8px 0 0 20px; }
.doc .summary li { margin: 4px 0; }
.doc .toc { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 40px; }
.doc .toc strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.doc .toc ol { margin-left: 20px; color: var(--text-2); font-size: .94rem; }
.doc .toc a { color: var(--text-2); text-decoration: none; }
.doc .toc a:hover { color: var(--text); text-decoration: underline; }
.doc h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 12px; padding-top: 4px; }
.doc h3 { font-size: 1.02rem; font-weight: 700; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: .98rem; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 14px 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc .table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 700; background: var(--surface-2); }
.doc tr:last-child td { border-bottom: none; }
.doc .contact-card { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.doc .contact-card i { color: var(--blue-light); margin-top: 5px; }
.doc .contact-card p { margin: 0; }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border); padding: 32px 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: .85rem; color: var(--text-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ===== 404 ===== */
.lost { min-height: calc(100vh - 68px - 90px); display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.lost .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.lost h1 { font-size: 1.6rem; margin: 12px 0 10px; }
.lost p { color: var(--text-2); max-width: 460px; margin: 0 auto 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border-radius: 999px; padding: 14px 28px; background: var(--grad); color: #fff; text-decoration: none; box-shadow: 0 6px 24px rgba(108, 60, 225, 0.4); }
.btn:hover { color: #fff; transform: translateY(-2px); }

@media print {
    .nav, footer, .toc { display: none; }
    body { background: #fff; color: #000; }
    .doc p, .doc li, .doc td, .doc th, .doc h1, .doc h2, .doc h3, .doc strong { color: #000; }
}

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