:root {
  --ink: #17263d;
  --ink-deep: #0e1a2b;
  --muted: #5f6f82;
  --line: #dbe3ec;
  --line-strong: #c7d3df;
  --paper: #ffffff;
  --wash: #f3f7fb;
  --navy: #173963;
  --blue: #2265d8;
  --blue-dark: #184ca5;
  --teal: #167d7a;
  --teal-soft: #e6f5f2;
  --amber: #a46012;
  --amber-soft: #fff4dc;
  --red: #ab3e47;
  --red-soft: #fff0f1;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 65px rgba(21, 46, 78, 0.13);
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

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

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

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 236, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-deep);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  box-shadow: 0 7px 18px rgba(23, 57, 99, 0.2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  grid-area: 1 / 1;
  display: block;
}

.brand-mark::before {
  width: 17px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 3px;
}

.brand-mark::after {
  width: 11px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-2px, 2px) scale(0.72);
}

.brand-mark span {
  width: 5px;
  height: 5px;
  margin: 18px 0 0 17px;
  border: 2px solid #64d2c8;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--navy);
  background: var(--wash);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 94px;
  background:
    radial-gradient(circle at 84% 12%, rgba(42, 122, 218, 0.11), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -240px;
  bottom: -380px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(34, 101, 216, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(34, 101, 216, 0.025), 0 0 0 180px rgba(34, 101, 216, 0.018);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(64px, 8vw, 112px);
}

.section-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(42px, 5.5vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-lede strong {
  color: var(--ink);
}

.hero-lede code {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.site-footer a:focus-visible,
.legal-toc a:focus-visible,
.text-link:focus-visible,
.legal-content a:focus-visible {
  outline: 3px solid rgba(34, 101, 216, 0.3);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(34, 101, 216, 0.2);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--navy);
  border-color: var(--line-strong);
  background: #fff;
}

.button-secondary:hover {
  border-color: #9eb0c2;
  background: var(--wash);
}

.signal-panel {
  overflow: hidden;
  border: 1px solid rgba(199, 211, 223, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.signal-head,
.signal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signal-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-deep);
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  position: relative;
  padding-left: 13px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 750;
}

.status-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29a49b;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(41, 164, 155, 0.12);
}

.signal-list {
  padding: 10px 25px;
}

.signal-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 850;
}

.signal-icon.success {
  color: var(--teal);
  background: var(--teal-soft);
}

.signal-icon.failure {
  color: var(--red);
  background: var(--red-soft);
}

.signal-icon.action {
  color: var(--amber);
  background: var(--amber-soft);
}

.signal-row div {
  display: grid;
  gap: 2px;
}

.signal-row strong {
  color: var(--ink-deep);
  font-size: 14px;
}

.signal-row span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.signal-foot {
  justify-content: flex-start;
  padding: 18px 25px;
  color: var(--muted);
  background: var(--wash);
  font-size: 11px;
}

.mini-lock {
  position: relative;
  width: 14px;
  height: 11px;
  border: 2px solid var(--teal);
  border-radius: 3px;
}

.mini-lock::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 2px;
  width: 6px;
  height: 7px;
  border: 2px solid var(--teal);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.summary-band {
  color: #d7e5f6;
  background: var(--ink-deep);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.summary-grid > div {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 44px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-grid > div:first-child {
  padding-left: 0;
}

.summary-grid > div:last-child {
  border-right: 0;
}

.summary-grid strong {
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.summary-grid span {
  font-size: 13px;
}

.section {
  padding: 104px 0;
}

.section-tint {
  background: var(--wash);
}

.split-layout,
.policy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1.22fr);
  gap: clamp(56px, 9vw, 128px);
  align-items: start;
}

.section-intro h2,
.policy-lead h2,
.closing h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-intro > p:last-child,
.policy-lead > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-intro.compact {
  max-width: 700px;
  margin-bottom: 54px;
}

.boundary-list {
  border-top: 1px solid var(--line-strong);
}

.boundary-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.boundary-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.boundary-item.allowed .boundary-symbol {
  color: var(--teal);
  background: var(--teal-soft);
}

.boundary-item.denied .boundary-symbol {
  color: var(--red);
  background: var(--red-soft);
}

.boundary-item h3,
.process h3 {
  margin: 0 0 8px;
  color: var(--ink-deep);
  font-size: 18px;
  line-height: 1.3;
}

.boundary-item p,
.process p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.scope-box {
  margin-top: 28px;
  padding: 21px 22px;
  border: 1px solid #c8d9ef;
  border-radius: var(--radius-sm);
  background: #f6faff;
}

.scope-box span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scope-box code {
  color: var(--blue-dark);
  overflow-wrap: anywhere;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.process li {
  position: relative;
  padding: 0 30px;
  border-left: 1px solid var(--line-strong);
}

.process li:first-child {
  padding-left: 0;
  border-left: 0;
}

.process li:last-child {
  padding-right: 0;
}

.step-number {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.policy-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 26px;
  color: var(--blue-dark);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fact-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.fact-list div {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) 1.2fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--ink-deep);
  font-size: 13px;
  font-weight: 800;
}

.fact-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.closing {
  padding: 68px 0;
  color: #cddcf0;
  background: var(--navy);
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.closing h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
}

.closing p {
  margin: 10px 0 0;
}

.closing-links {
  display: flex;
  gap: 12px;
}

.button-light {
  color: var(--navy);
  background: #fff;
}

.button-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.button-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

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

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  padding: 7px 8px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-hero {
  padding: 86px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 10%, rgba(34, 101, 216, 0.08), transparent 25%),
    var(--wash);
}

.legal-hero-inner {
  max-width: 900px;
}

.legal-hero h1 {
  font-size: clamp(42px, 5vw, 62px);
}

.legal-hero h1 + p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.effective-date {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: space-between;
  gap: 80px;
  padding-top: 72px;
  padding-bottom: 108px;
}

.legal-toc {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 2px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.legal-toc strong {
  margin-bottom: 10px;
  color: var(--ink-deep);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-toc a {
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--blue-dark);
}

.legal-content section {
  scroll-margin-top: 28px;
  padding: 0 0 46px;
  margin: 0 0 46px;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 19px;
  color: var(--ink-deep);
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 28px 0 8px;
  color: var(--ink-deep);
  font-size: 17px;
}

.legal-content p {
  margin: 0 0 16px;
  color: #46586d;
}

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

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 24px;
  color: #46586d;
}

.legal-content li {
  margin-bottom: 8px;
  padding-left: 5px;
}

.legal-content a {
  color: var(--blue-dark);
  font-weight: 650;
  text-underline-offset: 3px;
}

.legal-scope {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #c8d9ef;
  border-radius: 10px;
  color: var(--blue-dark);
  background: #f6faff;
  overflow-wrap: anywhere;
}

.callout {
  margin-top: 25px;
  padding: 22px 24px;
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: var(--teal-soft);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: #105e5b;
}

.callout p {
  margin: 0;
  color: #315f61;
}

@media (max-width: 900px) {
  .hero-grid,
  .split-layout,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 56px;
  }

  .signal-panel {
    max-width: 620px;
  }

  .summary-grid > div {
    padding: 22px 24px;
  }

  .summary-grid > div:first-child {
    padding-left: 0;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 0;
  }

  .process li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .step-number {
    margin-bottom: 24px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    padding: 6px 9px;
    text-align: center;
  }

  .hero {
    padding: 70px 0;
  }

  .hero h1,
  .legal-hero h1 {
    font-size: 42px;
  }

  .hero-lede,
  .legal-hero h1 + p {
    font-size: 17px;
  }

  .hero-actions,
  .closing-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .summary-grid > div,
  .summary-grid > div:first-child {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .summary-grid > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 76px 0;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process li,
  .process li:first-child,
  .process li:nth-child(3),
  .process li:last-child {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .process li:last-child {
    border-bottom: 0;
  }

  .step-number {
    margin-bottom: 12px;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .closing-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-links {
    width: 100%;
  }

  .footer-inner {
    padding: 24px 0;
  }

  .site-footer nav {
    flex-wrap: wrap;
    margin-left: -8px;
  }

  .legal-hero {
    padding: 62px 0 58px;
  }

  .legal-layout {
    padding-top: 46px;
    padding-bottom: 76px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-content h2 {
    font-size: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
