/**
 * FilmMerge — legal.css
 *
 * Shared styles for all three legal pages:
 *   - Privacy Policy  (/privacy-policy/)
 *   - Terms of Service (/terms-of-service/)
 *   - Cookie Policy   (/cookie-policy/)
 *
 * Loaded only on legal page templates via inc/enqueue.php.
 * Extracted exactly from the inline styles on those pages.
 */

/* ── Hero ──────────────────────────────────────────────────── */

.lp-hero {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 56px;
}

.lp-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

.lp-hero__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.lp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
}

.lp-hero__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.lp-hero__meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
}

.lp-hero__meta i { color: var(--gold); }

/* ── Body layout (two-column: TOC + content) ──────────────── */

.lp-body {
  padding: 72px 0 96px;
}

.lp-body__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Table of Contents (sticky sidebar) ───────────────────── */

.lp-toc {
  position: sticky;
  top: 88px;  /* Clear the sticky nav (68px) + 20px breathing room */
}

.lp-toc__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.lp-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-toc__list a {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 7px 12px;
  border-left: 2px solid var(--border);
  transition: all var(--transition);
  line-height: 1.4;
}

.lp-toc__list a:hover,
.lp-toc__list a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  padding-left: 16px;
}

/* ── Main content column ──────────────────────────────────── */

.lp-content {
  min-width: 0; /* prevents grid blowout on narrow screens */
}

.lp-section {
  margin-bottom: 52px;
  scroll-margin-top: 96px;
}

.lp-section h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.lp-section h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin: 20px 0 10px;
}

.lp-section p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.lp-section p:last-child { margin-bottom: 0; }

.lp-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding-left: 4px;
}

.lp-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Gold bullet dot */
.lp-section ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 9px;
}

.lp-section a { color: var(--gold); }
.lp-section a:hover { color: var(--gold-lt); }

/* ── Highlighted callout box ──────────────────────────────── */

.lp-highlight {
  background: rgba(200, 151, 58, 0.06);
  border: 1px solid rgba(200, 151, 58, 0.15);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 16px 0;
}

.lp-highlight p { margin: 0; font-size: 0.87rem; }

/* Warning variant */
.lp-warning {
  background: rgba(248, 113, 113, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.lp-warning p { margin: 0; font-size: 0.87rem; color: #f87171; }

/* ── Cookie table (cookie-policy.php only) ────────────────── */

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.85rem;
}

.cookie-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
}

.cookie-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.6;
}

.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table td strong { color: var(--cream); font-weight: 600; }

/* Cookie type badge pills */
.cookie-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cookie-badge--essential  { background: rgba(42, 157, 92, 0.15);   color: #2a9d5c; }
.cookie-badge--analytics  { background: rgba(200, 151, 58, 0.12);  color: var(--gold); }
.cookie-badge--functional { background: rgba(66, 133, 244, 0.12);  color: #4285f4; }
.cookie-badge--third      { background: rgba(138, 146, 160, 0.12); color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .lp-body__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Hide the sticky TOC on mobile — section anchors still work */
  .lp-toc { display: none; }

  .lp-hero { padding: 48px 0 36px; }
  .lp-body { padding: 48px 0 64px; }

  .cookie-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .lp-section h2 { font-size: 1.35rem; }
}
