:root {
  color-scheme: light;
  --ink: #0d0d0f;
  --muted: #686870;
  --page: #f5f4f8;
  --paper: #ffffff;
  --line: rgba(13, 13, 15, 0.12);
  --soft: #efeff4;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--page);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.site-header {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 248, 0.96);
}

.header-inner,
.legal-shell,
.footer-inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink);
}

.legal-hero {
  padding: 88px 0 74px;
  border-bottom: 1px solid var(--line);
}

.legal-hero-inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.lede {
  max-width: 690px;
  margin: 26px 0 0;
  color: #4f4f56;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.45;
}

.effective-date {
  display: inline-flex;
  margin-top: 28px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.legal-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  justify-content: space-between;
  gap: 72px;
  padding-block: 72px 112px;
}

.toc {
  position: sticky;
  top: 28px;
  align-self: start;
}

.toc p {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--ink);
}

.legal-copy section {
  scroll-margin-top: 28px;
}

.legal-copy section + section {
  margin-top: 58px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.section-number {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.06em;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h3 {
  margin: 34px 0 10px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

p + p {
  margin-top: 16px;
}

ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
}

li {
  padding-left: 4px;
}

.plain-list {
  list-style: none;
  padding-left: 0;
}

.plain-list li {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.plain-list strong {
  display: block;
  margin-bottom: 4px;
}

.note {
  margin-top: 24px;
  padding: 20px;
  border-radius: 10px;
  background: var(--soft);
}

.contact-card {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.contact-card strong,
.contact-card a {
  display: block;
}

.contact-card a {
  width: fit-content;
  margin-top: 4px;
  color: #3f3f46;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  color: var(--muted);
  font-size: 13px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

@media (max-width: 780px) {
  .legal-hero {
    padding: 64px 0 54px;
  }

  .legal-shell {
    display: block;
    padding-block: 48px 80px;
  }

  .toc {
    position: static;
    margin-bottom: 48px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    min-height: 104px;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .legal-shell,
  .legal-hero-inner,
  .footer-inner {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    height: 64px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .brand {
    font-size: 16px;
  }

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

  .legal-copy section + section {
    margin-top: 46px;
    padding-top: 42px;
  }
}

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