/* ================================================================
   Legal pages — Privacy Policy, Terms of Service
   Centered single-column reading layout, same chrome as the landing
   (sticky header + footer reused via landing-ads.css). Type uses
   the existing design tokens (DM Sans body, Plus Jakarta Sans display).
   ================================================================ */

/* The shared sticky header uses a 3-column grid (1fr auto 1fr) so the
   landing's centered nav stays anchored regardless of brand / CTA
   widths. Legal pages omit the nav (only brand + CTA), which would
   land the CTA in the centre "auto" column. Switch to a 2-col grid
   here so brand stays left and the CTA pins to the far right. */
.l-stick-inner:not(:has(nav)) {
  grid-template-columns: 1fr auto;
}

.legal {
  background: #FDFCFF;
  color: #1B1830;
  /* Push past the sticky header */
  padding: 120px 24px 96px;
  min-height: 100vh;
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Page header ---------------------------------------------- */
.legal-head {
  margin: 0 0 48px;
  padding: 0 0 32px;
  border-bottom: 1px solid #ECE9F8;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7B3FE4;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .15s;
}
.legal-back:hover { color: #5A2BB8; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin: 0 0 12px;
  color: #0E0C1B;
  text-wrap: balance;
}
.legal-updated {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #6E6C8A;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* --- Body --------------------------------------------------- */
.legal-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #2E2A45;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: #0E0C1B;
  margin: 56px 0 16px;
  text-wrap: balance;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-h2-num {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #7B3FE4;
  background: rgba(123, 63, 228, 0.08);
  padding: 4px 10px;
  border-radius: 9999px;
  flex-shrink: 0;
  align-self: center;
}
.legal-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #0E0C1B;
  margin: 32px 0 8px;
  text-wrap: balance;
}
.legal-h3-num {
  color: #7B3FE4;
  font-weight: 500;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.legal-body p {
  margin: 0 0 16px;
  text-wrap: pretty;
}
.legal-body p strong { color: #0E0C1B; font-weight: 600; }
.legal-body ul {
  margin: 0 0 20px;
  padding: 0 0 0 4px;
  list-style: none;
}
.legal-body li {
  position: relative;
  padding: 0 0 0 22px;
  margin: 0 0 8px;
  text-wrap: pretty;
}
.legal-body li::before {
  content: '';
  position: absolute;
  left: 6px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7B3FE4;
  opacity: 0.7;
}
.legal-body a {
  color: #7B3FE4;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-body a:hover { color: #5A2BB8; }

/* --- Footer override : sit on light bg ----------------------- */
.legal-foot {
  background: #F7F6FF !important;
  color: #6E6C8A !important;
  border-top: 1px solid #ECE9F8 !important;
}
.legal-foot a { color: #6E6C8A !important; }
.legal-foot a:hover { color: #0E0C1B !important; }

/* --- Mobile -------------------------------------------------- */
@media (max-width: 640px) {
  .legal {
    padding: 88px 16px 64px;
  }
  .legal-head {
    margin-bottom: 36px;
    padding-bottom: 24px;
  }
  .legal h1 { font-size: clamp(28px, 9vw, 38px); }
  .legal-body { font-size: 15px; line-height: 1.65; }
  .legal-body h2 {
    font-size: 20px;
    margin: 44px 0 12px;
    gap: 10px;
  }
  .legal-h2-num { font-size: 11px; padding: 3px 8px; }
  .legal-body h3 { font-size: 16px; margin: 24px 0 6px; }
}
