/* Legal — page-specific styles layered on magazine.css.
   Uses the same tokens (--ink, --cream, --accent, --line, fonts) so the
   compliance page reads as part of the LoveJAAM magazine system. Only the
   prose/typography and the two-column reading layout the design system doesn't
   already cover live here. */

/* ---------- Hero ---------- */
.legal-hero { padding-bottom: 56px; }
.legal-hero-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.028em;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.96;
  margin-top: 18px;
}
.legal-hero-title .em { color: var(--accent); }
.legal-hero-lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
}
.legal-hero-updated {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Two-column layout (sticky section nav + prose) ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

/* In-page section nav: sticky on desktop, scroll-spy highlight. */
.legal-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-nav-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.legal-nav a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
  transition: color .15s ease, border-color .15s ease;
}
.legal-nav a:hover { color: var(--accent); }
.legal-nav a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* ---------- Prose ---------- */
.legal-prose { max-width: 760px; }
.legal-section {
  /* Clear the sticky nav bar so deep links land below it, not under it. */
  scroll-margin-top: 96px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.legal-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-section-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.02;
  margin: 10px 0 0;
}
.legal-updated {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 18px 0 0;
}
.legal-clause { margin-top: 26px; }
.legal-clause-head {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.legal-clause p { margin-top: 8px; }

/* Pending-legal-review callout. */
.legal-note {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---------- Hero actions (Book a Call CTA) ---------- */
.legal-hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Book-a-Call modal (Calendly) ---------- */
.legal-book-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 11, 10, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.legal-book-modal {
  position: relative;
  background: var(--cream);
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow: auto;
  padding: 36px 36px 32px;
}
.legal-book-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.legal-book-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-book-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 30px;
  margin: 8px 0 0;
}
.legal-book-sub {
  margin: 12px 0 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-3);
}
.legal-book-error {
  background: #fdecec;
  border: 1px solid #e8b4b4;
  color: #8a1f1f;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.legal-book-calendly {
  min-width: 320px;
  height: 640px;
}
.legal-book-soon {
  text-align: center;
}
.legal-book-soon .btn {
  margin-top: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .legal-nav {
    position: static;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .legal-nav-head { width: 100%; margin-bottom: 6px; }
  .legal-nav a {
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
  }
  .legal-nav a.is-active {
    border-color: var(--accent);
    color: var(--accent);
  }
}
