@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light dark;
  --page: #f5f7fb;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #ffffff;
  --surface-soft: #edf4ff;
  --text: #111827;
  --muted: #5f6b7a;
  --primary: #3478f6;
  --primary-strong: #1f5fd1;
  --primary-soft: rgba(52, 120, 246, .11);
  --border: rgba(31, 52, 83, .12);
  --shadow: 0 24px 70px rgba(27, 48, 83, .10);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #090c11;
    --surface: rgba(20, 25, 34, .88);
    --surface-solid: #141922;
    --surface-soft: #16243a;
    --text: #f4f6fa;
    --muted: #aeb5c2;
    --primary: #5791f7;
    --primary-strong: #8db5ff;
    --primary-soft: rgba(87, 145, 247, .13);
    --border: rgba(183, 197, 219, .14);
    --shadow: 0 28px 80px rgba(0, 0, 0, .30);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(52, 120, 246, .13), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(118, 91, 255, .08), transparent 24rem),
    var(--page);
  color: var(--text);
  font: 16px/1.72 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav {
  width: min(calc(100% - 36px), var(--max));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #5791f7, #2868dd);
  box-shadow: 0 10px 26px rgba(52, 120, 246, .30);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.legal-layout {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 246px minmax(0, 820px);
  gap: 34px;
  align-items: start;
  justify-content: center;
}
.toc {
  position: sticky;
  top: 106px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(27, 48, 83, .06);
  backdrop-filter: blur(14px);
}
.toc-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.toc a:hover { color: var(--primary-strong); background: var(--primary-soft); }
.legal-document {
  min-width: 0;
  padding: clamp(25px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.document-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 17px;
  color: var(--primary);
  background: var(--primary-soft);
}
.document-icon svg { width: 27px; height: 27px; }
h1 {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}
h2 {
  margin: 48px 0 14px;
  padding-top: 4px;
  font-size: clamp(1.28rem, 3vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}
h3 { margin: 27px 0 8px; font-size: 1.03rem; }
p { margin: 0 0 15px; }
.updated, .muted { color: var(--muted); }
.lede { max-width: 66ch; color: var(--muted); font-size: 1.07rem; }
ul, ol { margin: 10px 0 20px; padding-left: 1.35rem; }
li { margin: 8px 0; padding-left: 4px; }
li::marker { color: var(--primary); }
.summary, .note, .notice, .card {
  margin: 26px 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--surface-solid);
}
.summary, .notice {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
  background: linear-gradient(145deg, var(--primary-soft), var(--surface-solid));
}
.summary h2, .notice h2 { margin-top: 0; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 13px; margin: 15px 0; align-items: start; }
.num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(52, 120, 246, .23);
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #5791f7, #2868dd);
  box-shadow: 0 12px 26px rgba(52, 120, 246, .24);
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(52, 120, 246, .30); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--border); }
.links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-solid);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner {
  width: min(calc(100% - 36px), var(--max));
  min-height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .86rem;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .toc { position: static; display: flex; gap: 5px; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc-label { display: none; }
  .toc a { white-space: nowrap; }
}
@media (max-width: 620px) {
  .nav { min-height: 68px; }
  .nav-links a:not([aria-current="page"]) { display: none; }
  .legal-layout { width: min(calc(100% - 24px), var(--max)); gap: 18px; padding-bottom: 48px; }
  .legal-document { padding: 25px 20px 30px; border-radius: 24px; }
  .summary, .note, .notice, .card { padding: 18px; border-radius: 18px; }
  .button { width: 100%; text-align: center; }
  .footer-inner { min-height: 100px; flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
