/* Shared styling for the policy pages. Tokens mirror index_edu.html so the
   legal pages read as part of the same site rather than a bolted-on document. */

:root {
  --bg: #0A0A0A;
  --bg-elev: #141414;
  --bg-frame: #1C1C1C;
  --fg: #F5F5F5;
  --fg-mid: #A0A0A0;
  --fg-dim: #6B6B6B;
  --line: rgba(245, 245, 245, 0.08);
  --line-strong: rgba(245, 245, 245, 0.18);
  --accent: #A8B5C7;
  --accent-bright: #C9D4E4;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- nav ---------- */
.policy-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.policy-nav .logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.policy-nav .logo::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.policy-nav .back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mid);
  text-decoration: none;
  transition: color 0.3s;
}
.policy-nav .back:hover { color: var(--fg); }

/* ---------- document ---------- */
.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 40px 120px;
}
.policy-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.policy-label::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--fg-dim);
}

.policy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.policy-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mid);
  letter-spacing: 0.05em;
  line-height: 1.7;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.policy h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 56px 0 18px;
}
.policy h2:first-of-type { margin-top: 0; }

.policy p,
.policy li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-mid);
  letter-spacing: -0.003em;
}
.policy p { margin-bottom: 18px; }
.policy p:last-child { margin-bottom: 0; }

.policy ul {
  list-style: none;
  margin: 0 0 18px;
}
.policy li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}
.policy li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.policy strong { color: var(--fg); font-weight: 500; }

.policy a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 181, 199, 0.4);
  transition: color 0.3s, border-color 0.3s;
}
.policy a:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

/* legal blocks that are shouted in all caps read as walls — hold them back */
.policy p.caps {
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
}

/* ---------- footer ---------- */
.policy-footer {
  border-top: 1px solid var(--line);
  padding: 40px;
  background: var(--bg-elev);
}
.policy-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.policy-footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.policy-footer-links a {
  color: var(--fg-mid);
  text-decoration: none;
  transition: color 0.3s;
}
.policy-footer-links a:hover { color: var(--fg); }
.policy-footer-links a[aria-current] { color: var(--accent); }

@media (max-width: 700px) {
  .policy-nav { padding: 16px 24px; }
  .policy { padding: 64px 24px 88px; }
  .policy-footer { padding: 32px 24px; }
  .policy h2 { margin-top: 44px; }
}
