:root {
  --background: #ffffff;
  --surface: #f7f8fc;
  --ink: #0b1230;
  --muted: #4c5873;
  --rule: #dfe3ec;
  --accent: #ffbd12;
  --accent-strong: #d99600;
  --purple: #4326a8;
  --content-width: 1180px;
  --reading-width: 760px;
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

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

.wordmark {
  color: var(--ink);
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  gap: 34px;
  align-self: stretch;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 580;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  background: var(--accent);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  list-style: none;
  cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--ink);
  content: "";
}

.menu-icon {
  position: relative;
}

.menu-icon::before {
  position: absolute;
  top: -7px;
}

.menu-icon::after {
  position: absolute;
  top: 7px;
}

.mobile-nav-panel {
  position: absolute;
  top: 54px;
  right: 0;
  width: min(82vw, 290px);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.mobile-nav-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav-panel a[aria-current="page"] {
  background: #fff8de;
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding-block: 80px 72px;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  max-width: 610px;
}

.hero h1,
.article-heading h1 {
  margin: 0;
  font-size: clamp(46px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.hero-lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: #3f4b68;
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.accent-rule {
  width: 54px;
  height: 4px;
  margin-block: 32px;
  background: var(--accent);
}

.hero-support {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-art {
  width: min(100%, 560px);
  margin-inline: auto;
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.legal-link {
  min-height: 245px;
  padding: 50px clamp(22px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.legal-link + .legal-link {
  border-left: 1px solid var(--rule);
}

.legal-link svg {
  width: 34px;
  height: 34px;
  margin-bottom: 23px;
  color: var(--purple);
}

.legal-link h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-link p {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.link-arrow {
  margin-top: auto;
  color: var(--purple);
  font-size: 25px;
  line-height: 1;
  transition: transform 160ms ease;
}

.legal-link:hover .link-arrow {
  transform: translateX(6px);
}

.article-heading {
  padding-block: 82px 56px;
  border-bottom: 1px solid var(--rule);
}

.article-heading h1 {
  max-width: 900px;
  font-size: clamp(42px, 5.4vw, 68px);
}

.effective-date {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.article-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, var(--reading-width));
  justify-content: space-between;
  gap: clamp(48px, 8vw, 110px);
  padding-block: 64px 100px;
}

.table-of-contents {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-right: 25px;
  border-right: 1px solid var(--rule);
}

.table-of-contents strong {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 0.025em;
}

.table-of-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.table-of-contents li {
  counter-increment: toc;
}

.table-of-contents a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.table-of-contents a::before {
  content: counter(toc) ". ";
}

.table-of-contents a:hover {
  color: var(--purple);
}

.legal-article {
  min-width: 0;
}

.legal-article > :first-child {
  margin-top: 0;
}

.legal-article h2 {
  margin: 54px 0 14px;
  scroll-margin-top: 110px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.legal-article p,
.legal-article li {
  color: #303b58;
}

.legal-article ul,
.legal-article ol {
  padding-left: 1.4em;
}

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

.notice {
  margin: 34px 0;
  padding: 22px 24px;
  background: #fff8de;
  border-left: 4px solid var(--accent);
}

.notice p {
  margin: 0;
  color: var(--ink);
}

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

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

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

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .page-shell,
  .site-footer-inner {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 62px 54px;
  }

  .hero h1 {
    max-width: 450px;
  }

  .hero-lead {
    font-size: 22px;
  }

  .hero-support {
    font-size: 17px;
  }

  .hero-art {
    width: min(100%, 440px);
  }

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

  .legal-link {
    min-height: 0;
    padding: 30px 8px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    column-gap: 16px;
    align-items: center;
  }

  .legal-link + .legal-link {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .legal-link svg {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    margin: 0;
  }

  .legal-link h2 {
    align-self: end;
  }

  .legal-link p {
    margin: 4px 0 0;
    align-self: start;
  }

  .link-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .article-heading {
    padding-block: 58px 42px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-block: 46px 72px;
  }

  .table-of-contents {
    position: static;
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
  }

  .table-of-contents ol {
    columns: 2;
    column-gap: 26px;
  }

  .legal-article h2 {
    scroll-margin-top: 90px;
  }

  .site-footer-inner {
    padding-block: 26px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .article-heading h1 {
    font-size: 42px;
  }

  .hero {
    padding-top: 48px;
  }

  .table-of-contents ol {
    columns: 1;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

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

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