:root {
  color-scheme: light dark;
  --primary: #4d5c92;
  --primary-strong: #314074;
  --primary-container: #dce1ff;
  --on-primary-container: #04164b;
  --secondary: #595d72;
  --tertiary: #75546f;
  --background: #f5f6fa;
  --surface: #ffffff;
  --surface-soft: #f4f2fa;
  --text: #1a1b21;
  --muted: #595b66;
  --outline: #c6c5d0;
  --shadow: 0 18px 55px rgba(35, 43, 73, 0.11);
  --radius-large: 28px;
  --radius-medium: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(137, 128, 240, 0.16), transparent 34rem),
    radial-gradient(circle at 94% 12%, rgba(58, 123, 213, 0.11), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-strong);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--tertiary);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #8980f0;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(118, 118, 128, 0.18);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 32px, 1040px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #8980f0, #4d5c92 68%, #3a7bd5);
  box-shadow: 0 8px 20px rgba(77, 92, 146, 0.3);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.top-nav a[aria-current="page"] {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.legal-shell {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 68px 0 92px;
}

.hero {
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8980f0;
  content: "";
  box-shadow: 0 0 0 5px rgba(137, 128, 240, 0.16);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.22;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 8vw, 4.65rem);
  letter-spacing: -0.055em;
}

.lede {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.meta strong {
  color: var(--text);
}

.summary-card,
.toc,
.legal-article {
  border: 1px solid rgba(118, 118, 128, 0.2);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.summary-card {
  margin: 0 0 22px;
  padding: 24px;
  border-radius: var(--radius-medium);
}

.summary-card h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.summary-card p,
.summary-card ul {
  margin-top: 0;
  margin-bottom: 0;
}

.summary-card ul {
  padding-left: 1.25rem;
}

.summary-card li + li {
  margin-top: 5px;
}

.toc {
  margin-bottom: 22px;
  padding: 22px 24px;
  border-radius: var(--radius-medium);
  box-shadow: none;
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 36px;
}

.toc li {
  break-inside: avoid;
  padding: 3px 0;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

.toc a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.legal-article {
  padding: clamp(24px, 6vw, 56px);
  border-radius: var(--radius-large);
}

.legal-article section {
  scroll-margin-top: 94px;
}

.legal-article section + section {
  margin-top: 44px;
  padding-top: 42px;
  border-top: 1px solid var(--outline);
}

.legal-article h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.025em;
}

.legal-article h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}

.legal-article p {
  margin: 0 0 16px;
}

.legal-article p:last-child {
  margin-bottom: 0;
}

.legal-article ul,
.legal-article ol {
  margin: 12px 0 18px;
  padding-left: 1.35rem;
}

.legal-article li + li {
  margin-top: 9px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.data-card {
  padding: 18px;
  border: 1px solid var(--outline);
  border-radius: 15px;
  background: var(--surface-soft);
}

.data-card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.data-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.notice {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid #8980f0;
  border-radius: 4px 14px 14px 4px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.contact-card {
  padding: 22px;
  border-radius: var(--radius-medium);
  background: linear-gradient(145deg, var(--primary-strong), #4d5c92 64%, #3a7bd5);
  color: #ffffff;
}

.contact-card a {
  color: #ffffff;
  font-weight: 750;
}

.site-footer {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 0 0 42px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #b7c4ff;
    --primary-strong: #dce1ff;
    --primary-container: #354479;
    --on-primary-container: #f2f4ff;
    --secondary: #c2c5dd;
    --tertiary: #e3bada;
    --background: #131418;
    --surface: #222530;
    --surface-soft: #1e1f25;
    --text: #f3f1f8;
    --muted: #c6c5d0;
    --outline: #45464f;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  }

  .notice {
    color: #f2f4ff;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .top-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .legal-shell {
    padding: 44px 0 68px;
  }

  .toc ol {
    columns: 1;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 410px) {
  .header-inner,
  .legal-shell,
  .site-footer {
    width: min(100% - 22px, 860px);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-copy {
    display: none;
  }

  .top-nav {
    gap: 1px;
  }

  .top-nav a {
    padding-inline: 8px;
  }

  .summary-card,
  .toc {
    padding: 19px;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-header,
  .skip-link,
  .toc,
  .site-footer {
    display: none;
  }

  .legal-shell {
    width: 100%;
    padding: 0;
  }

  .summary-card,
  .legal-article {
    border: 0;
    box-shadow: none;
  }

  .legal-article {
    padding: 0;
  }

  a {
    color: #000000;
  }
}
