:root {
  color-scheme: light;
  --background: #f5faf9;
  --surface: #ffffff;
  --surface-muted: #ebf5f3;
  --primary: #4eb6a5;
  --primary-dark: #2e8b7d;
  --primary-soft: #dff5f1;
  --accent-soft: #f0faf8;
  --text: #1e2c2a;
  --text-muted: #5f7671;
  --border: #d2e8e3;
  --link: #28786d;
  --focus: #2e8b7d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-padding-top: 7rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  font-weight: 650;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  translate: 0 -180%;
  border-radius: 0.75rem;
  background: var(--text);
  color: white;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgb(245 250 249 / 92%);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 4.5rem;
  max-width: 70rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  display: block;
  width: 5.75rem;
  height: 2.25rem;
  object-fit: contain;
}

.back-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  background: var(--primary-soft);
  color: var(--text);
}

.legal-layout {
  display: grid;
  width: min(100% - 3rem, 70rem);
  grid-template-columns: minmax(0, 13rem) minmax(0, 46rem);
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 7rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0 7rem;
}

.section-index {
  align-self: start;
  position: sticky;
  top: 7rem;
}

.section-index__title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-index nav {
  display: grid;
  gap: 0.15rem;
}

.section-index a {
  border-radius: 0.55rem;
  color: var(--text-muted);
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.section-index a:hover {
  background: var(--primary-soft);
  color: var(--text);
}

.mobile-index {
  display: none;
}

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

.document-header {
  margin-bottom: 2.75rem;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.65rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.updated {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.callout {
  margin: 0 0 3rem;
  border-radius: 0.875rem;
  background: var(--primary-soft);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text);
  line-height: 1.65;
}

.callout strong {
  color: var(--primary-dark);
}

h2 {
  margin: 3.25rem 0 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 2.25rem;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

h2:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

p,
ul {
  max-width: 72ch;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

ul {
  padding-left: 1.35rem;
}

li {
  margin: 0.55rem 0;
  padding-left: 0.2rem;
}

li::marker {
  color: var(--primary-dark);
}

.document-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 4.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.document-footer a {
  font-weight: 650;
}

@media (max-width: 52rem) {
  .site-header__inner {
    min-height: 4rem;
    padding-inline: 1.25rem;
  }

  .back-link {
    min-height: 2.5rem;
  }

  .legal-layout {
    display: block;
    width: min(100% - 2.5rem, 46rem);
    padding: 3.25rem 0 5rem;
  }

  .section-index {
    display: none;
  }

  .mobile-index {
    display: block;
    margin: 0 0 2.75rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--surface);
  }

  .mobile-index summary {
    cursor: pointer;
    padding: 0.85rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 750;
  }

  .mobile-index nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.75rem;
    border-top: 1px solid var(--border);
    padding: 0.9rem 1rem 1rem;
  }

  .mobile-index a {
    padding: 0.3rem 0;
    font-size: 0.84rem;
    line-height: 1.35;
    text-decoration: none;
  }

  .document-header {
    margin-bottom: 2.25rem;
  }
}

@media (max-width: 28rem) {
  body {
    font-size: 1rem;
  }

  .brand img {
    width: 5.125rem;
    height: 2rem;
  }

  .back-link {
    padding-inline: 0.7rem;
    font-size: 0.82rem;
  }

  .legal-layout {
    width: min(100% - 2rem, 46rem);
    padding-top: 2.75rem;
  }

  .mobile-index nav {
    grid-template-columns: 1fr;
  }
}

@media print {
  .skip-link,
  .site-header,
  .section-index,
  .mobile-index {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

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

  a {
    color: inherit;
  }
}
