:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-deep: #e6ebf0;
  --ink: #05080d;
  --ink-soft: #405064;
  --forest: #071d36;
  --mint: #9bacc0;
  --lime: #ffffff;
  --white: #ffffff;
  --line: rgba(7, 29, 54, 0.18);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--forest);
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.updated-badge {
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.print-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.77rem var(--sans);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.print-button:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-1px);
}

.print-button:focus-visible,
.document-tab:focus-visible,
.page-nav a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.print-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

main {
  overflow: clip;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, 0.55fr);
  gap: clamp(40px, 10vw, 160px);
  align-items: end;
  padding: clamp(72px, 11vw, 155px) clamp(20px, 8vw, 130px) clamp(64px, 8vw, 118px);
}

.intro::before {
  position: absolute;
  top: 12%;
  right: -8%;
  width: 34vw;
  min-width: 320px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 44% 56% 61% 39% / 38% 42% 58% 62%;
  content: "";
  opacity: 0.7;
  transform: rotate(13deg);
}

.intro::after {
  position: absolute;
  top: 21%;
  right: 2%;
  width: 20vw;
  min-width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  content: "";
  opacity: 0.24;
  filter: blur(2px);
}

.intro-copy,
.intro-note {
  position: relative;
  z-index: 1;
}

.eyebrow,
.page-nav-label,
.document-kicker {
  margin: 0 0 20px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 800px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8vw, 8.3rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.84;
}

.intro h1 em {
  color: var(--forest);
  font-weight: 500;
}

.intro-text {
  max-width: 600px;
  margin: 42px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.intro-note {
  padding: 28px 0 4px;
  border-top: 1px solid var(--ink);
}

.note-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.intro-note p {
  max-width: 245px;
  margin: 40px 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}

.document-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.document-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 116px;
  padding: 24px clamp(18px, 2.6vw, 38px);
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease;
}

.document-tab:last-child {
  border-right: 0;
}

.document-tab:hover,
.document-tab.is-active {
  background: var(--forest);
  color: var(--white);
}

.tab-number {
  align-self: start;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.document-tab:hover .tab-number,
.document-tab.is-active .tab-number,
.document-tab:hover small,
.document-tab.is-active small {
  color: var(--mint);
}

.document-tab strong,
.document-tab small {
  display: block;
}

.document-tab strong {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  font-weight: 600;
}

.document-tab small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  transition: color 220ms ease;
}

.document-tab svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 220ms ease;
}

.document-tab:hover svg {
  transform: translateX(4px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(45px, 8vw, 130px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 110px clamp(20px, 8vw, 130px) 150px;
}

.page-nav-inner {
  position: sticky;
  top: 115px;
}

.page-nav-label {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-nav-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-nav-links a {
  padding: 7px 12px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.page-nav-links a:hover,
.page-nav-links a.is-active {
  border-color: var(--forest);
  color: var(--ink);
  transform: translateX(3px);
}

.contact-link {
  display: block;
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.73rem;
  text-decoration: none;
}

.contact-link span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.documents {
  min-width: 0;
}

.legal-document {
  padding: 0 0 125px;
  scroll-margin-top: 105px;
}

.legal-document:last-child {
  padding-bottom: 0;
}

.document-header {
  position: relative;
  margin-bottom: 58px;
  padding: 0 100px 35px 0;
  border-bottom: 1px solid var(--ink);
}

.document-header::after {
  position: absolute;
  right: 0;
  bottom: 35px;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid var(--forest);
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  content: attr(data-index);
  font: 700 0.77rem var(--sans);
}

.document-kicker {
  color: var(--ink-soft);
}

.document-header h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.document-body > .updated {
  margin: -28px 0 44px;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.document-body > .toc {
  display: none;
}

.document-body .section {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 105px;
}

.document-body .section:last-child {
  border-bottom: 0;
}

.document-body .section h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.document-body p,
.document-body li {
  max-width: 780px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.document-body p {
  margin: 0 0 15px;
}

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

.document-body b {
  color: var(--ink);
  font-weight: 700;
}

.document-body .list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.document-body .list li {
  position: relative;
  padding-left: 24px;
}

.document-body .list li::before {
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.callout,
.notice-banner {
  max-width: 820px;
  margin: 28px 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 2px 22px 22px 22px;
  background: var(--white);
  box-shadow: 0 14px 45px rgba(5, 8, 13, 0.08);
}

.notice-banner {
  border-radius: 22px 2px 22px 22px;
  background: var(--forest);
}

.notice-banner p,
.notice-banner b {
  color: var(--white);
}

.loading-state {
  display: grid;
  gap: 22px;
}

.loading-state span {
  display: block;
  height: 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--paper-deep), var(--white), var(--paper-deep));
  background-size: 240% 100%;
  animation: loading 1.5s infinite linear;
}

.loading-state span:first-child {
  width: 72%;
  height: 64px;
}

.loading-state span:nth-child(3) {
  width: 88%;
}

.loading-state span:nth-child(4) {
  width: 65%;
}

.error-state {
  padding: 32px;
  border: 1px solid var(--forest);
  background: var(--paper-deep);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 42px clamp(20px, 4vw, 64px);
  background: var(--forest);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

footer > a:last-child {
  justify-self: end;
  text-decoration: none;
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  background: var(--lime);
  color: var(--forest);
}

@keyframes loading {
  to { background-position: -240% 0; }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro-note {
    max-width: 340px;
  }

  .intro-note p {
    margin-top: 20px;
  }

  .document-tabs {
    grid-template-columns: 1fr;
  }

  .document-tab {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .document-tab:last-child {
    border-bottom: 0;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .page-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 86px;
  }

  .site-header {
    min-height: 66px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .updated-badge {
    display: none;
  }

  .print-button {
    padding: 8px 11px;
  }

  .intro {
    padding-top: 78px;
  }

  .intro h1 {
    font-size: clamp(3.3rem, 17vw, 5.4rem);
  }

  .intro-text {
    margin-top: 30px;
  }

  .document-tabs {
    margin-inline: 0;
  }

  .legal-layout {
    padding-bottom: 95px;
  }

  .legal-document {
    padding-bottom: 90px;
  }

  .document-header {
    padding-right: 0;
  }

  .document-header::after {
    display: none;
  }

  .document-header h2 {
    font-size: 3rem;
  }

  .document-body .section {
    padding: 34px 0;
  }

  .callout,
  .notice-banner {
    padding: 21px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  footer > a:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .reading-progress,
  .site-header,
  .intro,
  .document-tabs,
  .page-nav,
  footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

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

  .legal-document {
    break-before: page;
    padding: 0;
  }

  .legal-document:first-child {
    break-before: auto;
  }

  .document-body .section {
    break-inside: avoid;
  }
}
