:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #fff;
  --text: #162033;
  --muted: #647084;
  --line: rgba(22, 32, 51, .11);
  --accent: #2375ff;
  --accent-strong: #0757d6;
  --accent-soft: rgba(35, 117, 255, .11);
  --shadow: 0 18px 50px rgba(30, 48, 80, .1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1118;
    --surface: rgba(25, 30, 41, .88);
    --surface-solid: #191e29;
    --text: #f4f7fc;
    --muted: #a8b1c0;
    --line: rgba(255, 255, 255, .11);
    --accent: #68a2ff;
    --accent-strong: #9ac0ff;
    --accent-soft: rgba(104, 162, 255, .14);
    --shadow: 0 22px 60px rgba(0, 0, 0, .32);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, var(--accent-soft), transparent 35rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav {
  max-width: 980px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  border-radius: 9px;
  color: white;
  background: linear-gradient(145deg, #56a3ff, #1762ec);
  box-shadow: 0 7px 18px rgba(23, 98, 236, .25);
}

.nav-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.nav-links a[aria-current="page"] { color: var(--accent-strong); font-weight: 650; }

main { max-width: 860px; margin: 0 auto; padding: 66px 22px 80px; }

.hero { padding: 28px 0 34px; }
.eyebrow { color: var(--accent-strong); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 10px 0 16px; max-width: 760px; font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.legal-page h1 { font-size: clamp(2.15rem, 6vw, 3.8rem); }
.lead { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2.5vw, 1.25rem); }
.updated { margin-top: 18px; color: var(--muted); font-size: .88rem; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.card, .section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card { display: flex; min-height: 220px; padding: 28px; flex-direction: column; text-decoration: none; color: var(--text); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.card { transition: transform .18s ease, border-color .18s ease; }
.card-icon { font-size: 1.65rem; }
.card h2 { margin: 22px 0 8px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 22px; color: var(--accent-strong); font-weight: 650; }

.section { margin: 18px 0; padding: 28px clamp(22px, 5vw, 38px); }
.section h2 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; }
.section h3 { margin: 24px 0 8px; font-size: 1.02rem; }
.section p { margin: 9px 0; }
.section ul { margin: 10px 0; padding-left: 1.25rem; }
.section li + li { margin-top: 6px; }
.section strong { font-weight: 680; }
.note { padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 26px; }
.toc a { padding: 7px 11px; border-radius: 999px; background: var(--accent-soft); text-decoration: none; font-size: .84rem; }

footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 980px; margin: 0 auto; padding: 28px 22px 42px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--muted); }

@media (max-width: 680px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; justify-content: space-between; }
  main { padding-top: 38px; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

