/* ════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy & Terms) — extends home-page.css.
   Relies on home-page.css for: .container, .eyebrow,
   .nav, .footer, CSS custom properties.
   ════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────── */
.legal-hero {
  background: var(--navy-dk);
  padding: 128px 0 72px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 176, 148, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 176, 148, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
}

.legal-hero .eyebrow {
  margin-bottom: 14px;
}

.legal-hero-title {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
}

.legal-updated {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 300;
  color: var(--steel);
  letter-spacing: 0.02em;
}

/* ─── BODY LAYOUT ────────────────────────────────── */
.legal-body {
  background: var(--white);
  padding: 80px 0 128px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

/* ─── SIDEBAR TOC ────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: 96px;
}

.legal-toc-label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}

.legal-toc-list {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 0;
}

.legal-toc-item a {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.18s, border-color 0.18s;
  text-decoration: none;
}

.legal-toc-item a:hover {
  color: var(--text);
  border-left-color: var(--tan-lt);
}

.legal-toc-item.toc-active a {
  color: var(--tan-dk);
  border-left-color: var(--tan);
  font-weight: 600;
}

/* ─── LEGAL CONTENT ──────────────────────────────── */
.legal-content {
  max-width: 68ch;
}

.legal-section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.legal-section-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  scroll-margin-top: 114px;
}

.legal-content p {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul,
.legal-content ol {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.82;
  color: var(--text);
  margin: 14px 0 18px 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content strong {
  font-weight: 600;
  color: var(--text);
}

.legal-content a {
  color: var(--tan-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--navy);
}

.legal-callout {
  background: var(--off-white);
  border: 1px solid var(--tan-lt);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 22px 0;
}

.legal-callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-toc {
    position: static;
    background: var(--off-white);
    padding: 22px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .legal-toc-item a {
    padding-top: 11px;
    padding-bottom: 11px;
  }
}

@media (max-width: 480px) {
  .legal-hero  { padding: 108px 0 56px; }
  .legal-body  { padding: 52px 0 88px; }
}
