:root {
  color-scheme: light;
  --ink: #0b1930;
  --muted: #5f6f86;
  --line: #d9e3f2;
  --blue: #246fe5;
  --blue-2: #0d4fc4;
  --soft: #eef5ff;
  --surface: rgba(255, 255, 255, .94);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -5%, rgba(55, 125, 240, .16), transparent 32rem),
    linear-gradient(180deg, #f8fbff 0, #f1f6fc 100%);
  font-size: 16px;
  line-height: 1.68;
}

a { color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(207, 220, 238, .86);
  background: rgba(248, 251, 255, .86);
  backdrop-filter: blur(16px);
}

.site-header .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 7px 20px rgba(20, 82, 190, .22); }
.legal-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.legal-nav a { padding: 8px 11px; border-radius: 9px; color: #52647c; font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--blue-2); background: #e7f0ff; }

.hero { padding: 72px 0 36px; }
.eyebrow { margin: 0 0 11px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-size: clamp(36px, 6vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 12px; border: 1px solid #cdddf4; border-radius: 999px; background: rgba(255,255,255,.7); color: #52647c; font-size: 12px; font-weight: 700; }
.updated::before { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); content: ""; box-shadow: 0 0 0 4px rgba(36, 111, 229, .12); }

.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 8px 0 78px; align-items: start; }
.toc { position: sticky; top: 98px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.toc strong { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.toc a { display: block; padding: 6px 0; color: #617187; font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--blue); }

.legal-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 22px 65px rgba(34, 67, 112, .08); }
.legal-section { padding: 30px 34px; border-bottom: 1px solid #e4ebf5; scroll-margin-top: 100px; }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { margin: 0 0 13px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.legal-section h3 { margin: 22px 0 8px; font-size: 16px; }
.legal-section p { margin: 10px 0 0; color: #43536a; }
.legal-section ul, .legal-section ol { margin: 12px 0 0; padding-left: 22px; color: #43536a; }
.legal-section li + li { margin-top: 7px; }
.notice { margin: 0 0 26px; padding: 18px 20px; border: 1px solid #bcd4fa; border-radius: 15px; background: var(--soft); color: #29496f; }
.notice strong { color: #133d82; }
.contact-box { display: grid; gap: 5px; padding: 20px; border-radius: 16px; background: #0c1c35; color: #dce8fa; }
.contact-box strong { color: white; font-size: 17px; }
.contact-box a { color: #78adff; }
.steps { counter-reset: steps; list-style: none; padding-left: 0 !important; }
.steps li { position: relative; min-height: 42px; padding: 2px 0 12px 48px; counter-increment: steps; }
.steps li::before { position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #e7f0ff; color: var(--blue-2); font-size: 12px; font-weight: 800; content: counter(steps, decimal-leading-zero); }
code { padding: 2px 5px; border-radius: 5px; background: #edf3fb; color: #24405f; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.62); }
.site-footer .shell { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #68788d; font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #5d6e85; text-decoration: none; }

@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .shell { padding: 13px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .legal-nav { justify-content: flex-start; }
  .hero { padding-top: 48px; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .legal-section { padding: 25px 22px; }
  .site-footer .shell { padding: 22px 0; align-items: flex-start; flex-direction: column; }
}
