/* Shared styles for legal pages (terms, privacy, cookies, disclaimers) */

/* Make Nav mount transparent to layout so position:sticky on Nav
   uses the body as its containing block (matches main app pages,
   so hide-on-scroll-down / show-on-scroll-up works consistently). */
#nav-mount { display: contents; }

:root {
  --ink: #161B3D;
  --ink-soft: #2C325C;
  --ink-muted: #4A4F61;
  --line: #DCE6F0;
  --line-soft: #ECF2F8;
  --paper: #FFFFFF;
  --paper-deep: #F3F7FC;
  --blue: #0878D8;
  --blue-deep: #0A4E94;
  --blue-soft: #E4F1FB;
  --sand: #D6E6F5;
  --sand-soft: #EAF2FA;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.mono { font-family: 'Outfit', system-ui, sans-serif; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--blue); color: #fff; }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-dot { color: var(--blue); }
.back {
  font-size: 13px; color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.back:hover { color: var(--blue); text-decoration: none; }

.hero {
  max-width: 920px; margin: 0 auto;
  padding: 80px 32px 48px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-eyebrow {
  font-family: 'Outfit', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--blue); }
.hero h1 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 72px; line-height: 1; letter-spacing: -0.03em;
  font-weight: 600; margin: 0 0 20px;
}
.hero h1 em { color: var(--blue); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  font-size: 13px; color: var(--ink-muted);
  padding-top: 12px;
}
.hero-meta .meta-label {
  font-family: 'Outfit', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 11px; color: var(--ink-muted);
}
.hero-meta .meta-value { color: var(--ink); font-weight: 500; }

.layout {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 32px 96px;
  display: grid; grid-template-columns: 260px 1fr; gap: 64px;
}
.toc {
  position: sticky; top: 96px; align-self: start;
  max-height: calc(100vh - 120px); overflow-y: auto;
  padding: 20px 0;
}
.toc-title {
  font-family: 'Outfit', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
  margin-bottom: 16px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 13px; line-height: 1.4;
  border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px;
  transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--blue); text-decoration: none; border-left-color: var(--blue-soft); }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Outfit', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 11px; color: var(--ink-muted);
  flex: none;
}

.content { min-width: 0; max-width: 760px; }
.intro {
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
  padding-bottom: 32px; border-bottom: 1px solid var(--line-soft);
  margin-bottom: 48px;
}
.intro p { margin: 0 0 16px; }
.intro p:last-child { margin-bottom: 0; }
.callout {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

section.tc {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 96px;
}
section.tc:last-child { border-bottom: none; }
section.tc .num {
  font-family: 'Outfit', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 12px; color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
section.tc h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 38px; line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 600; margin: 0 0 24px;
  color: var(--ink);
}
section.tc h3 {
  font-size: 15px; font-weight: 600;
  margin: 28px 0 12px;
  color: var(--ink);
}
section.tc p, section.tc li {
  font-size: 15px; line-height: 1.65;
  color: var(--ink-soft);
}
section.tc p { margin: 0 0 14px; }
section.tc ul, section.tc ol { padding-left: 22px; margin: 0 0 16px; }
section.tc li { margin-bottom: 8px; }
section.tc strong { color: var(--ink); font-weight: 600; }
section.tc em.kicker { color: var(--ink-muted); display: block; margin-bottom: 16px; font-size: 14px; }

/* Cookie table */
.cookie-table {
  margin: 16px 0 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.cookie-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cookie-cell {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
}
.cookie-cell:nth-child(odd) {
  color: var(--ink-muted);
  font-family: 'Outfit', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper-deep);
}
.cookie-cell:last-child, .cookie-cell:nth-last-child(2) { border-bottom: none; }
.cookie-name {
  font-family: 'Outfit', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink);
  background: var(--sand-soft);
  padding: 10px 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
  word-break: break-all;
}

.foot {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 32px 64px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  font-size: 13px; color: var(--ink-muted);
}
.foot a { color: var(--ink-soft); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px 64px; }
  .toc { position: static; max-height: none; border-bottom: 1px solid var(--line-soft); padding-bottom: 24px; }
  .hero { padding: 48px 24px 32px; }
  .hero h1 { font-size: 52px; }
}
