/* Shared by privacy-policy.html and terms-of-service.html. Tokens mirror index.html so legal pages read as part of the same site. */
:root {
  --paper: #f4f2ec;
  --surface: #ffffff;
  --ink: #0f1a2b;
  --muted: #4b5567;
  --line: #d6d1c4;
  --accent: #0b66d8;
  --accent-ink: #ffffff;
  --accent-text: #0a5cc4;
  --r-sm: 6px;
  --r-md: 10px;
  color-scheme: light;
}
/* Light is the default; dark applies only when the visitor picks it with the theme toggle. */
:root[data-theme="dark"] {
  --paper: #0d131d; --surface: #182233; --ink: #edf1f7; --muted: #a9b3c4;
  --line: #2a3649; --accent: #5b9dff; --accent-ink: #06101f; --accent-text: #5b9dff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
svg { display: block; }
a { color: inherit; }
h1, h2 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.ring { display: inline-block; width: 1em; height: 1em; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-md);
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.brand .ring { font-size: 30px; color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; font-weight: 600; font-size: .925rem; color: var(--muted); text-decoration: none; border-radius: var(--r-sm); }
.nav-link:hover { color: var(--ink); }
@media (max-width: 560px) {
  .nav-cta { display: none; }
}

.doc { padding-block: clamp(3rem, 8vw, 6rem); }
.doc-head { max-width: 46rem; }
.sec-label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; color: var(--accent-text); }
.sec-label .ring { font-size: 18px; }
.doc h1 { margin-top: .75rem; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.updated { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.other-doc { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.other-doc a { color: var(--accent-text); font-weight: 700; }

/* Numbered rows with a rule between, the same rhythm as the problem list on the home page. */
.clauses { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; max-width: 54rem; }
.clause {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .4rem 1.5rem;
  padding-block: 1.6rem; border-top: 1px solid var(--line);
}
.clause:last-child { border-bottom: 1px solid var(--line); }
.clause-n { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.clause h2 { font-size: 1.2rem; font-weight: 800; }
.clause p { margin-top: .4rem; color: var(--ink); font-size: 1.05rem; max-width: 42rem; }
.clause a { color: var(--accent-text); font-weight: 700; }
@media (max-width: 560px) {
  .clause { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .4rem 1rem; }
}

footer { border-top: 1px solid var(--line); padding-block: 2.5rem 2rem; font-size: .9rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 1.5rem 3rem; }
.foot .brand { color: var(--ink); }
.foot p { margin-top: .6rem; max-width: 28rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; align-content: start; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--ink); }
.foot ul a:hover, .foot ul a[aria-current="page"] { color: var(--accent-text); }
.copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; } }

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