/* Shared styles for the legal pages (/privacy, /terms).
   Same tokens and type as index.html, tuned for long-form reading. */

:root {
  --bg: #07080D;
  --text: #F7F7F4;
  --muted: #A9ABB2;
  --muted-2: #6E7079;
  --accent-1: #FFD400;   /* Skoot yellow */
  --accent-2: #FFA800;   /* amber        */
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.10);
  --rule: rgba(255, 255, 255, 0.10);
  --maxw: 760px;
  --grad: linear-gradient(110deg, #FFE04D, #FFC400);
}

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

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }

/* ----- Background: a calmer take on the home page treatment ----- */
.glow-top {
  position: fixed; inset: 0 0 auto; height: 620px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 100% at 18% -10%, rgba(255, 212, 0, 0.16), transparent 62%),
    radial-gradient(ellipse 60% 90% at 88% -20%, rgba(17, 176, 166, 0.14), transparent 64%);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* ----- Layout shell ----- */
.shell {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; min-height: 100vh;
}

/* ----- Nav ----- */
nav.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 0;
}
.brand {
  display: flex; align-items: center; gap: 13px; text-decoration: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 23px; letter-spacing: -0.02em;
}
.brand .logo-mark {
  width: 40px; height: 40px; border-radius: 11px; display: block;
  box-shadow: 0 6px 18px -4px rgba(255, 200, 0, 0.45);
}
.back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none;
  border: 1px solid var(--card-border); background: var(--card);
  padding: 8px 15px; border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.back:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* ----- Document ----- */
main.doc { flex: 1; padding: 26px 0 72px; }

.doc-head { margin-bottom: 44px; }
.doc-head h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(34px, 5.4vw, 50px); line-height: 1.05; letter-spacing: -0.03em; margin: 0;
}
.doc-head h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.doc-head .stamp {
  margin: 14px 0 0;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2);
}

.doc section { margin-top: 40px; scroll-margin-top: 24px; }

.doc h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.02em;
  margin: 0 0 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.07);
}
.doc h3 {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 16.5px; letter-spacing: -0.01em; color: var(--accent-1);
  margin: 30px 0 10px;
}
.doc p { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; }
.doc p:last-child { margin-bottom: 0; }
.doc strong { color: var(--text); font-weight: 600; }

.doc ul { color: var(--muted); margin: 0 0 16px; padding-left: 22px; font-size: 15.5px; }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--accent-2); }

.doc a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { color: #FFE97A; }
.doc a.plain { text-decoration: none; }
.doc a.plain:hover { text-decoration: underline; }

/* Callout */
.callout {
  border: 1px solid var(--card-border); background: var(--card);
  border-radius: 18px; padding: 22px 24px; margin: 0 0 20px;
}
.callout p { margin: 0; }

/* Tables */
.table-wrap {
  overflow-x: auto; margin: 0 0 18px;
  border: 1px solid var(--card-border); border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.07); }
.doc thead th {
  color: var(--text); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.10em; text-transform: uppercase; background: rgba(255,255,255,0.03);
  white-space: nowrap;
}
.doc tbody td { color: var(--muted); }
.doc tbody tr:last-child td { border-bottom: none; }

/* ----- Footer ----- */
footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0 32px; border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted-2); font-size: 13px; flex-wrap: wrap;
}
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: var(--muted-2); text-decoration: none; transition: color 0.2s; }
.legal-links a:hover { color: var(--text); }
.legal-links a[aria-current="page"] { color: var(--muted); }

@media (max-width: 560px) {
  .doc h2 { font-size: 20px; }
  footer { justify-content: center; text-align: center; }
}
