:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --soft: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 9px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 65px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }

.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.desktop-nav a:hover { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-link-button, .nav-primary, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.nav-link-button { padding: 0 15px; color: #334155; border: 1px solid var(--line); background: #fff; }
.nav-primary { padding: 0 16px; color: #fff; background: var(--blue); box-shadow: 0 5px 14px rgba(37, 99, 235, .2); }
.nav-primary:hover { background: var(--blue-dark); }
.menu-toggle { display: none; width: 40px; color: #334155; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  position: absolute;
  inset: 64px 0 auto;
  padding: 12px 16px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 24px rgba(15, 23, 42, .08);
}
.mobile-nav.is-open { display: grid; gap: 4px; }
.mobile-nav a { padding: 10px 12px; color: #334155; font-weight: 600; text-decoration: none; border-radius: 9px; }
.mobile-nav a:hover { color: var(--blue); background: var(--blue-soft); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 112px;
  background:
    radial-gradient(circle at 78% 10%, rgba(147, 197, 253, .25), transparent 28%),
    radial-gradient(circle at 16% 82%, rgba(191, 219, 254, .22), transparent 24%),
    linear-gradient(180deg, #fff 0%, #f3f7ff 100%);
  border-bottom: 1px solid #dbeafe;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: linear-gradient(#dbeafe 1px, transparent 1px), linear-gradient(90deg, #dbeafe 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent);
}
.hero-inner { position: relative; width: min(940px, calc(100% - 32px)); margin: 0 auto; text-align: center; }
.breadcrumb { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: 13px; font-weight: 600; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-hidden="true"] { color: #cbd5e1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 6px 11px;
  color: var(--blue-dark);
  background: rgba(239, 246, 255, .86);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.hero-lead { max-width: 720px; margin: 20px auto 0; color: #475569; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item svg { width: 16px; height: 16px; color: var(--blue); }

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(940px, calc(100% - 32px));
  margin: -52px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.trust-item { display: flex; align-items: center; gap: 13px; padding: 20px 22px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; color: var(--blue); background: var(--blue-soft); border-radius: 11px; }
.trust-icon svg { width: 19px; height: 19px; }
.trust-item strong { display: block; font-size: 14px; line-height: 1.3; }
.trust-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.page-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  width: min(1100px, calc(100% - 32px));
  margin: 58px auto 92px;
}

.toc { position: sticky; top: 92px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.toc-title { margin: 0 0 12px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 10px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; border-left: 2px solid transparent; border-radius: 0 7px 7px 0; transition: all .18s ease; }
.toc a:hover, .toc a.is-active { color: var(--blue-dark); background: var(--blue-soft); border-left-color: var(--blue); }
.toc-help { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.toc-help a { display: inline; padding: 0; color: var(--blue); border: 0; }

.article-card { min-width: 0; padding: clamp(25px, 5vw, 54px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 35px rgba(15, 23, 42, .045); }
.article-intro { margin-bottom: 34px; padding: 20px 22px; color: #334155; background: #f8fafc; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 11px; }
.article-intro p { margin: 0; }
.legal-section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.legal-section h2 { margin: 0 0 16px; font-size: clamp(21px, 3vw, 27px); line-height: 1.3; letter-spacing: -.025em; }
.legal-section h3 { margin: 24px 0 8px; font-size: 17px; line-height: 1.45; }
.legal-section p { margin: 10px 0; color: #475569; }
.legal-section ul, .legal-section ol { margin: 12px 0; padding-left: 22px; color: #475569; }
.legal-section li { padding-left: 5px; margin: 8px 0; }
.legal-section li::marker { color: var(--blue); font-weight: 700; }
.legal-section strong { color: #1e293b; }
.legal-section a { color: var(--blue-dark); text-underline-offset: 3px; }

.callout { margin: 20px 0; padding: 17px 18px; border-radius: 11px; font-size: 14px; }
.callout strong { display: block; margin-bottom: 3px; }
.callout.info { color: #1e40af; background: var(--blue-soft); border: 1px solid #bfdbfe; }
.callout.safe { color: #065f46; background: var(--emerald-soft); border: 1px solid #a7f3d0; }
.callout.warn { color: #92400e; background: var(--amber-soft); border: 1px solid #fde68a; }

.data-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { color: #334155; background: #f8fafc; font-size: 12px; letter-spacing: .03em; }
.data-table td { color: #475569; }
.data-table tr:last-child td { border-bottom: 0; }

.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 34px; padding: 24px; color: #fff; background: linear-gradient(135deg, #1e3a8a, #2563eb); border-radius: 15px; }
.contact-card h2 { margin: 0 0 7px; font-size: 21px; }
.contact-card p { margin: 0; color: #dbeafe; font-size: 14px; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; color: #1e40af; background: #fff; border-radius: 9px; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }

.site-footer { padding: 52px 0 30px; color: #94a3b8; background: #020617; border-top: 1px solid #1e293b; }
.footer-shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 35px; }
.footer-brand { color: #fff; }
.footer-brand-copy { max-width: 390px; margin: 14px 0 0; font-size: 13px; line-height: 1.7; }
.footer-heading { margin: 0 0 13px; color: #fff; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { width: fit-content; color: #94a3b8; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 12px; border-top: 1px solid #1e293b; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { text-decoration: none; }
.footer-legal a[aria-current="page"] { color: #bfdbfe; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--ink); border: 0; border-radius: 11px; box-shadow: 0 10px 25px rgba(15, 23, 42, .25); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .desktop-nav, .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: 58px; }
  .page-shell { grid-template-columns: 1fr; margin-top: 36px; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding: 42px 0 90px; }
  .breadcrumb { justify-content: flex-start; margin-bottom: 20px; }
  .hero-inner { text-align: left; }
  .hero-lead { margin-left: 0; }
  .hero-meta { justify-content: flex-start; gap: 8px 14px; }
  .trust-strip { grid-template-columns: 1fr; margin-top: -48px; }
  .trust-item { padding: 15px 17px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .page-shell { width: min(100% - 20px, 1100px); margin-bottom: 58px; }
  .toc { padding: 15px; }
  .toc ol { grid-template-columns: 1fr; max-height: 235px; overflow: auto; }
  .article-card { border-radius: 16px; }
  .legal-section { padding: 28px 0; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-button { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-top > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { color: #000; background: #fff; font-size: 11pt; }
  .site-header, .trust-strip, .toc, .site-footer, .back-to-top, .reading-progress { display: none !important; }
  .hero { padding: 20px 0; background: #fff; border: 0; }
  .hero::before, .eyebrow { display: none; }
  .hero-inner, .page-shell { width: 100%; margin: 0; }
  .page-shell { display: block; }
  .article-card { padding: 0; border: 0; box-shadow: none; }
  .legal-section { break-inside: avoid; }
  a { text-decoration: none; }
}
