/* Terms of Use and Privacy Policy pages.
   Loaded after /assets/home.css, which supplies the shared header, orbs,
   footer, fonts, .grad, .serif and .eyebrow. Content stays in the HTML;
   this file only styles it. */

/* Header: current page keeps the gradient underline */
.site-nav a[aria-current="page"] {
  background-size: 100% 2px;
  background-position: 0 100%;
}

/* Hero */
.legal-hero {
  position: relative;
  isolation: isolate;
  padding-top: 72px;
  border-bottom: 1px solid rgba(21, 21, 21, .08);
}
.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 104px);
}
.legal-kicker {
  margin: 0 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #6B6860;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legal-hero h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(52px, 8.4vw, 124px);
  line-height: .95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.legal-hero-inner > p:not(.legal-kicker) {
  max-width: 52ch;
  margin: clamp(24px, 3vw, 36px) 0 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: #3F3D38;
  text-wrap: pretty;
}
.legal-updated {
  display: inline-flex;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 7px 14px;
  border: 1px solid rgba(21, 21, 21, .16);
  border-radius: 999px;
  background: rgba(242, 240, 234, .6);
  color: #6B6860;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
}

/* Body */
.legal-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 48px) clamp(72px, 10vw, 140px);
}
.legal-intro {
  max-width: 62ch;
  margin: 0 0 clamp(40px, 6vw, 72px);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.legal-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: clamp(24px, 5vw, 96px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid rgba(21, 21, 21, .14);
}
.legal-section:last-child { border-bottom: 1px solid rgba(21, 21, 21, .14); }
.legal-section h2 {
  grid-column: 1;
  grid-row: 1 / span 12;
  align-self: start;
  position: sticky;
  top: 96px;
  margin: 0;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.legal-section > :not(h2) { grid-column: 2; }
.legal-section p,
.legal-section li {
  font-size: 17px;
  line-height: 1.65;
  color: #3F3D38;
}
.legal-section p { margin: 0; }
.legal-section p + p { margin-top: 16px; }
.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 1.25em;
}
.legal-section a {
  color: #2F5BEA;
  padding-bottom: 2px;
  /* faint resting underline + gradient underline that slides in left to right on hover */
  background-image:
    linear-gradient(90deg, #F0643A, #B78CFF, #2F5BEA),
    linear-gradient(rgba(47, 91, 234, .4), rgba(47, 91, 234, .4));
  background-repeat: no-repeat;
  background-size: 0% 2px, 100% 1px;
  background-position: 100% 100%, 0 100%;
  transition: background-size .35s cubic-bezier(.4, 0, .2, 1);
}
.legal-section a:hover,
.legal-section a:focus-visible {
  color: #1E3FBF;
  background-size: 100% 2px, 100% 1px;
  background-position: 0 100%, 0 100%;
}
.legal-note {
  margin-top: 16px !important;
  padding: 16px 20px;
  border: 1px solid rgba(47, 91, 234, .25);
  border-radius: 14px;
  background: rgba(47, 91, 234, .06);
}

/* Footer */
.legal-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 48px;
}
.legal-footer .seam { margin-top: 0; }
.legal-footer .footer-links a[aria-current="page"] { color: #151515; }

@media (max-width: 800px) {
  .legal-section { grid-template-columns: minmax(0, 1fr); }
  .legal-section h2 {
    grid-row: auto;
    position: static;
    margin-bottom: 16px;
  }
  .legal-section > :not(h2) { grid-column: 1; }
}
