:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-brand: #eef4ff;
  --ink: #0f2344;
  --ink-body: #3a4a63;
  --ink-soft: #5b6a82;
  --ink-faint: #7d8aa0;
  --line: #e3e9f2;
  --line-strong: #d2dbe8;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-tint: rgba(37, 99, 235, 0.08);
  --positive: #127a58;
  --positive-soft: #effaf5;
  --positive-line: #cdebdf;
  --warning: #9a6400;
  --warning-soft: #fffaf0;
  --warning-line: #f1e2c0;
  --shadow-card: 0 1px 2px rgba(15, 35, 68, 0.04), 0 8px 24px rgba(15, 35, 68, 0.05);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shell: 1200px;
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 300px;
  margin: 0;
  background: var(--surface);
  color: var(--ink-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
  border-radius: 6px;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: transform 150ms ease;
}

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

.wrap {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.button {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--brand);
}

.header-cta {
  flex: 0 0 auto;
}

/* Hero */

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 30%, rgba(37, 99, 235, 0.07), transparent 22rem),
    linear-gradient(180deg, #f8faff 0%, #f1f5fd 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 48px;
  padding: 56px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  margin: 22px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--ink-faint);
  font-size: 0.88rem;
  list-style: none;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-art {
  position: relative;
  width: 300px;
  height: 200px;
  justify-self: end;
}

.hero-art .art-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art .art-logo {
  position: absolute;
  right: 44px;
  bottom: 18px;
  width: 76px;
  height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 35, 68, 0.1);
}

.hero-art .art-logo img {
  width: 100%;
  height: 100%;
}

/* Layout */

.legal-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 40px 0 64px;
}

.toc-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  scrollbar-width: thin;
}

.toc-card summary {
  display: flex;
  padding: 6px 8px 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
  list-style: none;
  pointer-events: none;
}

.toc-card summary::-webkit-details-marker {
  display: none;
}

.toc-card summary svg {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.toc {
  margin: 0;
  padding: 0;
  counter-reset: toc;
  list-style: none;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  position: relative;
  display: flex;
  padding: 7px 10px;
  gap: 8px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}

.toc a::before {
  flex: 0 0 auto;
  min-width: 1.6em;
  color: var(--ink-faint);
  content: counter(toc) ".";
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
}

.toc a.is-active {
  background: var(--surface-brand);
  color: var(--brand);
  font-weight: 600;
}

.toc a.is-active::before {
  color: var(--brand);
}

.toc a.is-active::after {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: -12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  content: "";
}

.toc-foot {
  margin: 10px 2px 2px;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.5;
}

.toc-foot .button {
  width: 100%;
  margin-top: 10px;
}

/* Document */

.document {
  min-width: 0;
  max-width: 780px;
}

.overview {
  margin: 0 0 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.overview h2 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.overview-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.overview-list .ico {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-brand);
  color: var(--brand);
}

.overview-list .ico svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.overview-list p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

.overview-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.84rem;
  line-height: 1.55;
}

.document > .callout {
  margin: 0 0 36px;
}

.policy-section {
  padding: 0 0 34px;
}

.policy-section + .policy-section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  display: flex;
  margin: 0 0 14px;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.section-num {
  flex: 0 0 auto;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.policy-section h3 {
  margin: 26px 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
}

.policy-section p,
.policy-section ul,
.policy-section ol {
  margin: 0 0 14px;
}

.policy-section > :last-child {
  margin-bottom: 0;
}

.policy-section strong {
  color: var(--ink);
  font-weight: 600;
}

.policy-section ul {
  padding-left: 1.25rem;
}

.policy-section ul li::marker {
  color: var(--ink-faint);
}

.policy-section li + li {
  margin-top: 6px;
}

/* Callouts */

.callout {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid #d9e5fb;
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  background: var(--surface-brand);
  font-size: 0.95rem;
}

.callout.positive {
  border-color: var(--positive-line);
  border-left-color: var(--positive);
  background: var(--positive-soft);
}

.callout.warning {
  border-color: var(--warning-line);
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 8px;
}

/* Cards and steps */

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

.feature-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.feature-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.93rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

.steps {
  margin: 20px 0;
  padding: 0;
  counter-reset: legal-step;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 0 0 18px 46px;
  counter-increment: legal-step;
}

.steps li + li {
  margin-top: 0;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cfdcf7;
  border-radius: 50%;
  background: var(--surface-brand);
  color: var(--brand);
  content: counter(legal-step);
  font-size: 0.84rem;
  font-weight: 600;
}

.steps li:not(:last-child)::after {
  position: absolute;
  top: 32px;
  bottom: 4px;
  left: 13.5px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.button-row {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

caption {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

td {
  font-size: 0.9rem;
  line-height: 1.55;
}

td:first-child {
  color: var(--ink);
  font-weight: 500;
}

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

/* Contact */

.contact-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.contact-card h2 {
  margin-bottom: 12px;
}

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

.contact-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 18px;
  margin: 0 0 14px;
}

.contact-list dt {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

/* Footer */

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

.footer-inner {
  display: flex;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.84rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.footer-brand span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Responsive */

@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
  }

  .hero-art {
    width: 240px;
    height: 160px;
  }

  .hero-art .art-logo {
    right: 32px;
    width: 64px;
    height: 64px;
    padding: 10px;
    border-radius: 16px;
  }

  .legal-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero-inner {
    display: block;
    padding: 36px 0 32px;
  }

  .hero-art {
    display: none;
  }

  .legal-layout {
    display: block;
    padding: 20px 0 48px;
  }

  .toc-card {
    position: static;
    max-height: none;
    margin-bottom: 28px;
    padding: 4px 12px;
  }

  .toc-card summary {
    padding: 12px 4px;
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    pointer-events: auto;
  }

  .toc-card summary svg {
    display: block;
  }

  .toc-card[open] summary svg {
    transform: rotate(180deg);
  }

  .toc-card[open] .toc {
    padding-bottom: 8px;
  }

  .toc a.is-active::after {
    display: none;
  }

  .toc-foot {
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15.5px;
  }

  .header-cta {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .lede {
    font-size: 1rem;
  }

  .overview {
    padding: 18px;
  }

  .overview-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .policy-section h2 {
    font-size: 1.18rem;
  }

  .contact-card {
    padding: 18px;
  }

  .button-row .button {
    width: 100%;
  }

  .footer-inner {
    display: grid;
    justify-content: stretch;
  }
}

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

  * {
    transition: none !important;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .toc-card,
  .hero-art,
  .button-row,
  .site-footer .footer-links {
    display: none;
  }

  .wrap {
    width: 100%;
  }

  .hero {
    border: 0;
    background: none;
  }

  .hero-inner {
    display: block;
    padding: 0 0 16px;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .overview,
  .contact-card {
    box-shadow: none;
  }

  .policy-section {
    break-inside: avoid;
  }

  a {
    color: #000;
  }
}
