/* The legal pages share the landing page's self-hosted typefaces. */
body.legal-page {
  --legal-ink: #171a20;
  --legal-muted: #5e6370;
  --legal-rule: #dedfdf;
  --legal-paper: #f6f7f5;
  --legal-violet: #6b61a8;
  --legal-mint: #89dfcf;
  margin: 0;
  min-width: 0;
  background: var(--legal-paper);
  color: var(--legal-ink);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after { box-sizing: border-box; }

.legal-page :focus-visible {
  outline: 3px solid var(--legal-violet);
  outline-offset: 4px;
}

.legal-page h1,
.legal-page h2,
.legal-page p { margin: 0; }

.legal-page a { color: inherit; text-decoration: none; }
.legal-page a:hover { color: var(--legal-violet); }

.legal-wrap { width: min(calc(100% - 96px), 1200px); margin-inline: auto; }

.legal-skip {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--legal-ink);
  color: white !important;
  border-radius: 8px;
}
.legal-skip:focus { top: 20px; }

.legal-header {
  background: #fff;
  border-bottom: 1px solid var(--legal-rule);
}
.legal-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
}
.legal-brand img { width: 32px; height: 32px; }
.legal-brand-dot { color: var(--legal-violet); }
.legal-nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 38px); }
.legal-nav a,
.legal-contact {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}
.legal-nav a { padding: 8px 0; color: var(--legal-muted); }
.legal-nav a[aria-current="page"] { color: var(--legal-ink); border-bottom: 1.5px solid var(--legal-violet); }
.legal-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d7d7dd;
  border-radius: 999px;
  white-space: nowrap;
}
.legal-contact svg { display: block; }

.legal-hero { padding-block: clamp(68px, 9vw, 128px) 56px; }
.legal-eyebrow,
.legal-card-index,
.legal-section-number,
.legal-toc > p,
.legal-next-inner > div > span,
.legal-date {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.09em;
}
.legal-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--legal-violet); }
.legal-eyebrow-line { width: 24px; height: 1px; background: currentColor; }
.legal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(30px, 6vw, 92px);
  margin-top: 25px;
}
.legal-hero h1 {
  max-width: 800px;
  font-size: clamp(56px, 7.5vw, 112px);
  font-weight: 550;
  line-height: 0.99;
  letter-spacing: -0.075em;
}
.legal-hero h1 em {
  display: block;
  color: var(--legal-violet);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.08em;
  font-weight: 400;
  letter-spacing: -0.055em;
}
.legal-hero-side { padding-bottom: 8px; }
.legal-hero-side > p:first-child { max-width: 370px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: #434853; }
.legal-date { margin-top: 30px !important; color: #838794; text-transform: uppercase; }

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--legal-rule);
  border-radius: 24px;
  background: white;
}
.legal-summary-card {
  min-height: 222px;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--legal-rule);
}
.legal-summary-card:last-child { border-right: 0; }
.legal-card-index { color: var(--legal-violet); }
.legal-summary-card h2 { margin-top: 24px; font-size: clamp(18px, 1.7vw, 24px); font-weight: 650; line-height: 1.2; letter-spacing: -0.04em; }
.legal-summary-card p { max-width: 310px; margin-top: 12px; color: var(--legal-muted); font-size: 13px; line-height: 1.65; }

.legal-body {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: clamp(46px, 8vw, 128px);
  padding-block: clamp(76px, 9vw, 132px) clamp(95px, 12vw, 165px);
}
.legal-toc { align-self: start; position: sticky; top: 32px; }
.legal-toc > p { margin-bottom: 25px; color: var(--legal-violet); }
.legal-toc nav { display: grid; gap: 13px; }
.legal-toc nav a { color: var(--legal-muted); font-size: 13px; line-height: 1.5; }
.legal-toc nav a:hover { color: var(--legal-violet); }
.legal-article { max-width: 775px; }
.legal-section {
  scroll-margin-top: 30px;
  padding: 0 0 52px;
  margin: 0 0 50px;
  border-bottom: 1px solid var(--legal-rule);
}
.legal-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-section-number { display: block; margin-bottom: 18px; color: var(--legal-violet); }
.legal-section h2 { margin-bottom: 21px; font-size: clamp(27px, 3vw, 39px); font-weight: 600; line-height: 1.19; letter-spacing: -0.055em; }
.legal-section p,
.legal-section li { color: #505560; font-size: 15px; line-height: 1.85; }
.legal-section p + p { margin-top: 16px; }
.legal-section a { color: #4d438d; text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { color: #2e2763; }
.legal-section ul { margin: 0; padding-left: 1.25em; }
.legal-section li + li { margin-top: 10px; }
.legal-section strong { color: var(--legal-ink); font-weight: 700; }
.legal-note {
  margin-top: 24px;
  padding: 23px 26px 25px;
  border-left: 3px solid var(--legal-violet);
  border-radius: 0 12px 12px 0;
  background: #eeedf7;
}
.legal-note strong { display: block; margin-bottom: 5px; font-size: 14px; }
.legal-note p { margin: 0; font-size: 14px; }

.legal-next { background: #d9d5fb; }
.legal-next-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 53px; }
.legal-next-inner > div > span { color: #5c548f; }
.legal-next h2 { margin-top: 9px; font-size: clamp(30px, 3.5vw, 49px); font-weight: 600; line-height: 1.1; letter-spacing: -0.06em; }
.legal-next p { margin-top: 9px; color: #4b4a60; font-size: 14px; }
.legal-next a {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 50%;
  background: var(--legal-ink);
  color: white;
  transition: transform 180ms ease, background-color 180ms ease;
}
.legal-next a:hover { transform: translateX(3px); color: white; background: #433a80; }

.legal-footer { background: #161820; color: white; }
.legal-footer-inner { display: flex; align-items: center; gap: 25px; min-height: 125px; padding-block: 28px; }
.legal-footer .legal-brand { font-size: 22px; }
.legal-footer .legal-brand img { width: 28px; height: 28px; }
.legal-footer p { margin-left: 10px; color: #a4a6b0; font-size: 12px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.legal-footer nav a { color: #c5c7ce; font-size: 12px; }
.legal-footer nav a:hover { color: white; }
.legal-footer nav a[aria-current="page"] { color: white; }

@media (max-width: 900px) {
  .legal-wrap { width: min(calc(100% - 64px), 1200px); }
  .legal-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-hero h1 { max-width: 690px; }
  .legal-hero-side { max-width: 620px; }
  .legal-summary-card { padding: 24px; }
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-article { max-width: 720px; }
}

@media (max-width: 640px) {
  .legal-wrap { width: calc(100% - 36px); }
  .legal-header-inner { min-height: 73px; gap: 12px; }
  .legal-brand { font-size: 21px; }
  .legal-brand img { width: 28px; height: 28px; }
  .legal-contact { display: none; }
  .legal-nav { gap: 15px; }
  .legal-nav a { font-size: 12px; }
  .legal-hero { padding-block: 74px 42px; }
  .legal-hero h1 { font-size: clamp(51px, 11vw, 72px); }
  .legal-date { margin-top: 23px !important; }
  .legal-summary { grid-template-columns: 1fr; border-radius: 18px; }
  .legal-summary-card { min-height: 0; padding: 25px 27px; border-right: 0; border-bottom: 1px solid var(--legal-rule); }
  .legal-summary-card:last-child { border-bottom: 0; }
  .legal-summary-card h2 { margin-top: 13px; }
  .legal-summary-card p { max-width: none; }
  .legal-body { padding-block: 75px 95px; }
  .legal-section { padding-bottom: 41px; margin-bottom: 42px; }
  .legal-section h2 { font-size: 29px; }
  .legal-section p, .legal-section li { font-size: 14px; }
  .legal-next-inner { padding-block: 42px; }
  .legal-next a { width: 48px; height: 48px; }
  .legal-footer-inner { flex-wrap: wrap; gap: 15px; }
  .legal-footer p { margin-left: auto; }
  .legal-footer nav { flex-basis: 100%; margin-left: 0; gap: 16px; }
}

@media (max-width: 360px) {
  .legal-nav { gap: 10px; }
  .legal-nav a { font-size: 11px; }
  .legal-hero h1 { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-next a { transition: none; }
}
