:root {
  color-scheme: light;
  --card-bg: #f6f6f6;
  --ink: #171717;
  --ink-secondary: #414141;
  --ink-tertiary: #686868;
  --line: rgb(23 23 23 / 16%);
  --line-strong: rgb(23 23 23 / 34%);
  --page-bg: #e9eaec;
  --paper: #fff;
  --font-sans: "Inter", sans-serif;
  --page-width: 82rem;
  --reading-width: 46rem;
  --header-height: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: inherit;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.isolate {
  isolation: isolate;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

.site-shell {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.page-container {
  width: min(100% - 2rem, var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  flex-shrink: 0;
  background: rgb(233 234 236 / 94%);
  box-shadow: inset 0 -3px 0 var(--ink);
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
}

.header-inner {
  display: flex;
  width: min(100% - 2rem, 100rem);
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
}

.wordmark-mark {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.legal-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.25rem;
}

.legal-nav a {
  padding: 0.5rem 0.75rem;
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.legal-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.legal-nav a:focus-visible,
.wordmark:focus-visible,
.toc-inner a:focus-visible,
.mobile-toc a:focus-visible,
.policy-article a:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.hero {
  padding: clamp(2.5rem, 6vw, 6rem) 0 2rem;
}

.hero .page-container {
  padding: clamp(2.25rem, 6vw, 5rem);
  border: 2px solid var(--paper);
  background: var(--card-bg);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-sans);
  text-wrap: balance;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-copy {
  max-width: 48ch;
  margin: 1.5rem 0 0;
  color: var(--ink-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.effective-date {
  display: flex;
  flex-wrap: wrap;
  margin: 1.75rem 0 0;
  gap: 0.5rem;
  color: var(--ink-tertiary);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.highlights {
  padding: 0 0 2rem;
  box-shadow: inset 0 -3px 0 var(--ink);
}

.highlight-grid {
  display: grid;
}

.highlight {
  padding: 1.5rem 0;
}

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

.highlight p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.highlight .highlight-label {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-weight: 600;
}

.policy-layout {
  display: grid;
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  gap: 4rem;
}

.desktop-toc {
  display: none;
  min-width: 0;
}

.toc-inner {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.toc-title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.toc-inner ol,
.mobile-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-inner ol {
  display: grid;
  gap: 0.125rem;
}

.toc-inner a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--ink-tertiary);
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
}

.toc-inner a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.mobile-toc {
  margin: 0 0 3rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.mobile-toc summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.mobile-toc nav {
  padding: 0 1rem 1rem;
}

.mobile-toc ol {
  display: grid;
  gap: 0.5rem;
}

.mobile-toc a {
  color: var(--ink-secondary);
  line-height: 1.5;
  text-decoration: none;
}

.policy-article {
  min-width: 0;
  max-width: var(--reading-width);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 2px solid var(--paper);
  background: var(--card-bg);
}

.policy-section {
  padding: 3.5rem 0 0;
  border-top: 1px solid var(--line);
}

.policy-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.policy-section + .policy-section {
  margin-top: 3.5rem;
}

.section-number {
  margin: 0 0 0.75rem;
  color: var(--ink-tertiary);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.policy-section h2 {
  max-width: 35ch;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.policy-section h3 {
  max-width: 40ch;
  margin: 2.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.policy-section p {
  max-width: 72ch;
  margin: 1.25rem 0 0;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.policy-section ul {
  display: grid;
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  gap: 0.75rem;
  color: var(--ink-secondary);
}

.policy-section li {
  padding-left: 0.25rem;
  text-wrap: pretty;
}

.policy-section strong,
.contact-name {
  color: var(--ink);
  font-weight: 600;
}

.policy-section .legal-emphasis {
  color: var(--ink);
}

.policy-section a {
  color: var(--ink);
  text-decoration-color: var(--ink);
  text-decoration-thickness: 0.1rem;
  text-underline-offset: 0.2rem;
}

.policy-section a:hover {
  text-decoration-thickness: 0.15rem;
}

.notice {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 3px solid var(--ink);
  background: var(--page-bg);
}

.notice .notice-title {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.notice p:last-child {
  margin-top: 0.5rem;
}

.contact-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.contact-card p {
  margin: 0;
}

.contact-card a {
  display: inline-block;
  margin-top: 0.25rem;
}

.contact-card p:last-child {
  margin-top: 0.75rem;
  color: var(--ink-tertiary);
  font-size: 0.875rem;
}

.site-footer {
  margin-top: auto;
  box-shadow: inset 0 3px 0 var(--ink);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  gap: 0.5rem;
}

.footer-inner p {
  margin: 0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 400;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  color: var(--ink-tertiary);
  font-size: 0.75rem;
}

.footer-nav a {
  font-weight: 400;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.footer-nav a[aria-current="page"] {
  color: var(--ink);
}

@media (min-width: 40rem) {
  .page-container,
  .header-inner {
    width: min(100% - 3rem, var(--page-width));
  }

  .header-inner {
    width: min(100% - 3rem, 100rem);
  }

  .highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .highlight {
    padding: 2rem;
  }

  .highlight:first-child {
    padding-left: 0;
  }

  .highlight:last-child {
    padding-right: 0;
  }

  .highlight + .highlight {
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

@media (min-width: 64rem) {
  .policy-layout {
    grid-template-columns: 15rem minmax(0, var(--reading-width));
    justify-content: space-between;
    gap: 5rem;
  }

  .desktop-toc {
    display: block;
  }

  .mobile-toc {
    display: none;
  }
}

@media (max-width: 39.999rem) {
  :root {
    --header-height: 5.25rem;
  }

  .wordmark {
    gap: 0.75rem;
    font-size: 1.125rem;
  }

  .wordmark-mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .legal-nav {
    gap: 0;
  }

  .legal-nav a {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .hero .page-container {
    padding-inline: 1.5rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .policy-article {
    padding-inline: 1.5rem;
  }
}

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