/* Shared styles for Terms / Privacy / Refunds pages.
   Mirrors the token system in PropRelay.html. */

:root {
  --bg: oklch(0.13 0.005 250);
  --bg-2: oklch(0.16 0.006 250);
  --surface: oklch(0.20 0.008 250);
  --border: oklch(0.24 0.009 250);
  --border-2: oklch(0.32 0.012 250);
  --text: oklch(0.97 0.004 250);
  --text-2: oklch(0.80 0.006 250);
  --text-3: oklch(0.60 0.008 250);
  --text-4: oklch(0.45 0.008 250);
  --accent: oklch(0.80 0.14 220);
  --accent-2: oklch(0.68 0.16 220);
  --accent-glow: oklch(0.80 0.14 220 / 0.25);
  --accent-dim: oklch(0.80 0.14 220 / 0.12);
  --pos: oklch(0.78 0.14 150);
  --pos-dim: oklch(0.78 0.14 150 / 0.15);
  --ff-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --radius: 6px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; border: 2px solid var(--bg); background-clip: padding-box; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: oklch(0.13 0.005 250 / 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: oklch(0.20 0.008 250);
  border: 1px solid var(--border-2);
  position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px; border-radius: 50%;
}
.brand-mark::before { background: var(--accent); left: 4px; top: 4px; box-shadow: 0 0 6px var(--accent-glow); }
.brand-mark::after { background: var(--text-3); right: 4px; bottom: 4px; }
.brand-ea {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  margin-left: 4px;
  background: oklch(0.85 0.16 85 / 0.15);
  border: 1px solid oklch(0.85 0.16 85 / 0.40);
  color: oklch(0.85 0.16 85);
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  border-radius: 99px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.12s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 780px) { .nav-links { display: none; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em;
  transition: all 0.14s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: oklch(0.14 0.008 250);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }

/* ============ LEGAL PAGE SHELL ============ */
.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}
.legal-shell .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3);
  font-family: var(--ff-mono);
  margin-bottom: 16px;
}
.legal-shell .eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.legal-shell h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.legal-shell .updated {
  margin-top: 14px;
  font-size: 12px;
  font-family: var(--ff-mono);
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.legal-shell .lead {
  margin-top: 24px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
}
.legal-shell h2 {
  margin: 56px 0 14px;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.legal-shell h3 {
  margin: 32px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.legal-shell p, .legal-shell li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}
.legal-shell p { margin: 0 0 14px; }
.legal-shell ul { margin: 0 0 18px; padding-left: 22px; }
.legal-shell li { margin-bottom: 6px; }
.legal-shell li::marker { color: var(--text-4); }
.legal-shell a { color: var(--accent); border-bottom: 1px dotted var(--accent); }
.legal-shell a:hover { border-bottom-style: solid; }
.legal-shell strong { color: var(--text); font-weight: 600; }
.legal-shell .callout {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 28px 0;
}
.legal-shell .callout.pos {
  border-color: oklch(0.78 0.14 150 / 0.4);
  background: var(--pos-dim);
}
.legal-shell .callout p:last-child { margin-bottom: 0; }
.legal-shell .callout-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pos);
  font-weight: 600;
  margin-bottom: 8px;
}
.legal-shell hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 48px 0;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  color: var(--text-3);
  font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { color: var(--text-3); font-size: 12.5px; line-height: 1.5; margin: 0; }
.footer-cols { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col b {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-2); font-weight: 600; font-family: var(--ff-mono);
}
.footer-col a { color: var(--text-3); font-size: 13px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-4);
  font-family: var(--ff-mono);
}
.footer-risk-text {
  flex-basis: 100%;
  margin: 0 0 18px;
  font-family: var(--ff-ui);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-4);
  max-width: 920px;
}
