/* ══════════════════════════════════════════════════════════
   Legal pages (/Home/Terms, /Home/Privacy) and the re-consent
   interstitial (/Account/Legal).
   Rendered in _MarketingLayout and speaks the marketing pages'
   visual language: scoped --mkt-* palette (light + dark come from
   marketing-shell.css), Fredoka display title, the floating
   scatter, and a rounded content card like /product's blocks.
   The document HTML comes from the legal-document store, so the
   body rules style bare h2/p/ul/a inside .legal-card.
   ══════════════════════════════════════════════════════════ */

/* Each locale block wraps its sections, so lift them above the
   scatter here (marketing-shell only lifts direct children). */
.opd-marketing .legal-doc {
  position: relative;
  z-index: 1;
}

/* ── Hero ────────────────────────────────────────────────── */
.opd-marketing .legal-hero {
  text-align: center;
  max-width: 820px;
  padding-top: 56px;
  padding-bottom: 32px;
}
.opd-marketing .legal-hero__title {
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--mkt-ink);
}
.opd-marketing .legal-hero__date {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkt-ink-3);
  margin: 0;
}

/* ── Document card ───────────────────────────────────────── */
.opd-marketing .legal-body {
  max-width: 920px;
  padding-bottom: 96px;
}
.opd-marketing .legal-card {
  background: var(--mkt-card);
  border: 1px solid var(--mkt-line);
  border-radius: 36px;
  padding: 56px 64px;
}

.opd-marketing .legal-card h2 {
  font-family: "Fredoka", "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--mkt-ink);
  margin: 40px 0 12px;
}
.opd-marketing .legal-card h2:first-child {
  margin-top: 0;
}
.opd-marketing .legal-card h3 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--mkt-ink);
  margin: 28px 0 10px;
}

.opd-marketing .legal-card p,
.opd-marketing .legal-card ul li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mkt-ink-2);
}
.opd-marketing .legal-card p {
  margin: 0 0 16px;
}

.opd-marketing .legal-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.opd-marketing .legal-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.opd-marketing .legal-card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mkt-sun-deep);
}

.opd-marketing .legal-card strong {
  color: var(--mkt-ink);
}

.opd-marketing .legal-card a {
  color: var(--mkt-sky-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.opd-marketing .legal-card a:hover {
  color: var(--mkt-ink);
}
[data-theme="dark"] .opd-marketing .legal-card a {
  color: var(--mkt-sky);
}
[data-theme="dark"] .opd-marketing .legal-card a:hover {
  color: var(--mkt-ink);
}

/* ── Re-consent interstitial (/Account/Legal) ────────────── */
.opd-marketing .legal-card[hidden] {
  display: none;
}
.opd-marketing .legal-hero__lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--mkt-ink-2);
  margin: 0;
}
.opd-marketing .legal-consent-doc {
  padding-bottom: 32px;
}
.opd-marketing .legal-consent-doc__head {
  border-bottom: 1px solid var(--mkt-line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.opd-marketing .legal-card h2.legal-consent-doc__title {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.opd-marketing .legal-consent-actions {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding-bottom: 96px;
  text-align: center;
}
.opd-marketing .legal-consent-actions__alt {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--mkt-ink-3);
}
.opd-marketing .legal-consent-actions__alt a {
  color: var(--mkt-sky-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-theme="dark"] .opd-marketing .legal-consent-actions__alt a {
  color: var(--mkt-sky);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .opd-marketing .legal-hero {
    padding-top: 36px;
    padding-bottom: 20px;
  }
  .opd-marketing .legal-hero__title {
    font-size: 40px;
  }
  .opd-marketing .legal-card {
    border-radius: 24px;
    padding: 32px 22px;
  }
  .opd-marketing .legal-card h2 {
    font-size: 20px;
    margin-top: 32px;
  }
  .opd-marketing .legal-body {
    padding-bottom: 64px;
  }
  .opd-marketing .legal-consent-doc {
    padding-bottom: 24px;
  }
  .opd-marketing .legal-card h2.legal-consent-doc__title {
    font-size: 26px;
  }
  .opd-marketing .legal-consent-actions {
    padding-bottom: 64px;
  }
}
