:root {
  color-scheme: light;
  --ink: #0b1220;
  --muted: #526074;
  --surface: #ffffff;
  --surface-soft: #f4f7fc;
  --line: #d8e1ef;
  --brand: #2f6fd6;
  --brand-strong: #1e4e9d;
  --brand-soft: #eef4ff;
  --accent: #2f6fd6;
  --shadow: 0 18px 55px rgba(11, 18, 32, 0.1);
  --radius: 20px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(
      circle at 92% 5%,
      rgba(47, 111, 214, 0.14),
      transparent 24rem
    ),
    linear-gradient(180deg, #f8fbff 0, #fff 32rem);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible,
button:focus-visible {
  border-radius: 5px;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(216, 225, 239, 0.88);
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 11px 11px 11px 4px;
  background: var(--brand);
  color: #fff;
  font-size: 0.92rem;
  place-items: center;
  box-shadow: 0 7px 18px rgba(47, 111, 214, 0.24);
}

.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 12px;
  align-items: center;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

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

.nav-links a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.page-shell {
  padding-block: 72px 88px;
}

.hero {
  display: grid;
  min-height: 560px;
  padding-block: 74px 82px;
  align-items: center;
  gap: 48px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 7vw, 5.4rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
}

p {
  margin-top: 0;
}

.lede {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 111, 214, 0.24);
}

.button:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.hero-panel,
.card,
.notice,
.legal-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  border-radius: 28px;
}

.hero-panel .panel-title {
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 800;
}

.fact-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.fact-list li {
  display: grid;
  align-items: start;
  gap: 11px;
  grid-template-columns: 24px 1fr;
}

.fact-list li::before {
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
  place-items: center;
}

.section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 700px;
  margin-bottom: 32px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(11, 18, 32, 0.06);
}

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

.card-kicker {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-split {
  display: grid;
  padding: 40px;
  border: 1px solid #ccdaef;
  border-radius: 28px;
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
  gap: 36px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
}

.feature-split p:last-child {
  margin-bottom: 0;
}

.limits {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.limits li {
  padding: 15px 16px;
  border: 1px solid rgba(47, 111, 214, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.limits strong {
  display: block;
  color: var(--brand-strong);
  font-size: 1.06rem;
}

.legal-header {
  max-width: 800px;
  padding: 48px 0 38px;
}

.legal-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.effective-date {
  color: var(--muted);
  font-weight: 700;
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: 32px;
  grid-template-columns: 240px minmax(0, 1fr);
}

.toc {
  position: sticky;
  top: 104px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.toc p {
  margin-bottom: 9px;
  font-weight: 800;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc a {
  display: inline-block;
  padding-block: 3px;
}

.legal-card {
  padding: clamp(26px, 5vw, 54px);
  border-radius: 24px;
}

.prose section + section {
  margin-top: 44px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  scroll-margin-top: 100px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.prose h3 {
  margin-top: 28px;
}

.prose p,
.prose li {
  max-width: 76ch;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

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

.notice {
  margin-block: 28px;
  padding: 20px 22px;
  border-left: 5px solid var(--brand);
  border-radius: 10px 16px 16px 10px;
  box-shadow: none;
}

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

.support-grid {
  display: grid;
  margin-top: 32px;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid .card {
  box-shadow: none;
}

.contact-card {
  display: grid;
  margin-block: 10px 44px;
  padding: 30px;
  align-items: center;
  border: 1px solid #ccdaef;
  border-radius: 22px;
  background: var(--brand-soft);
  gap: 20px;
  grid-template-columns: 1fr auto;
}

.contact-card p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f4f7fc;
}

.breadcrumb {
  display: flex;
  margin: 0 0 clamp(18px, 2vw, 28px);
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.3vw, 0.9rem);
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 8px;
  color: #8b98aa;
  content: "/";
}

.hero-authority {
  display: grid;
  min-height: 610px;
  padding-block: clamp(54px, 8vw, 96px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.hero-authority h1 {
  max-width: 850px;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
}

.hero-subtitle {
  display: block;
  margin-top: 0.18em;
  color: var(--brand);
  font-size: clamp(1.35rem, 3.3vw, 2.65rem);
  letter-spacing: -0.035em;
}

.hero-proof {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(165deg, #0b1220, #15243d);
  box-shadow: 0 24px 70px rgba(11, 18, 32, 0.2);
  color: #fff;
}

.hero-proof h2,
.hero-proof h3,
.hero-proof p,
.hero-proof li {
  color: #fff;
}

.hero-proof .panel-title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-proof .fact-list li::before {
  background: rgba(122, 168, 241, 0.2);
  color: #cfe0ff;
}

.authority-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 26vw, 340px), 1fr));
}

.authority-card {
  display: flex;
  min-height: 100%;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(11, 18, 32, 0.06);
  flex-direction: column;
}

.authority-card p {
  flex: 1;
  color: var(--muted);
}

.authority-card a {
  min-height: 44px;
  align-content: center;
  font-weight: 750;
}

.answer-first {
  max-width: 78ch;
  font-size: clamp(1.06rem, 1.8vw, 1.25rem);
}

.definition-panel {
  margin-block: 28px 44px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: 16px 24px 24px 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.definition-panel p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  max-width: 820px;
  gap: 14px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.faq-list summary {
  min-height: 44px;
  align-content: center;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.semantic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 1.5vw, 0.96rem);
}

.table-wrap {
  max-width: 1050px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
}

.semantic-table th,
.semantic-table td {
  padding: clamp(10px, 1.5vw, 16px);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.semantic-table th {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.semantic-table tr:last-child td {
  border-bottom: 0;
}

.page-intro {
  max-width: 850px;
  padding-block: clamp(42px, 7vw, 76px) clamp(28px, 4vw, 46px);
}

.page-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.byline {
  color: var(--muted);
  font-size: 0.9rem;
}

.quiet-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-shell {
  display: grid;
  padding-block: 32px;
  align-items: center;
  gap: 18px;
  grid-template-columns: 1fr auto;
}

.footer-shell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  min-height: 44px;
  align-content: center;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .hero,
  .hero-authority,
  .feature-split,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 54px;
  }

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

  .toc {
    position: static;
  }
}

@media (max-width: 650px) {
  .nav-shell,
  .page-shell,
  .footer-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .nav-shell {
    padding-block: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .nav-links {
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .page-shell {
    padding-block: 42px 64px;
  }

  .hero {
    gap: 28px;
  }

  .hero-panel,
  .feature-split,
  .legal-card,
  .contact-card {
    padding: 22px;
  }

  .limits,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .actions {
    display: none;
  }

  body {
    background: #fff;
  }

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

  .legal-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
