/* =====================================================
   ALOUD — Legal Pages Stylesheet (legal.css)
   Shared by terms.html, privacy.html, refund.html
   Extends lp.css — load lp.css first, then this file
   ===================================================== */

/* ─── LEGAL PAGE LAYOUT ─────────────────────── */
.legal-hero {
  padding: 52px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.legal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 10px;
}
.legal-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}
.legal-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ─── CONTENT AREA ──────────────────────────── */
.legal-body {
  padding: 48px 0 72px;
}
.legal-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.legal-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.legal-section p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.legal-section li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}
.legal-section strong { color: var(--navy); font-weight: 600; }
.legal-section a { color: var(--teal); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* Plan pricing table */
.legal-plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.legal-plan-table th {
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.legal-plan-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.legal-plan-table tr:last-child td { border-bottom: none; }
.legal-plan-table tr:hover td { background: #fafaf9; }
.legal-plan-table td:first-child { font-weight: 600; color: var(--navy); }

/* Callout box */
.legal-callout {
  background: #EAF7F0;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.legal-callout p {
  color: #1a5c52;
  font-size: 0.9rem;
  margin-bottom: 0 !important;
}
.legal-callout strong { color: #1a5c52; }

/* Warning / note box */
.legal-note {
  background: #FFF8EE;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.legal-note p {
  color: #7a4a10;
  font-size: 0.9rem;
  margin-bottom: 0 !important;
}

/* ─── POLICY NAV (links between 3 policy pages) ── */
.legal-policy-nav {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.legal-policy-nav span { color: var(--muted); }
.legal-policy-nav a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.legal-policy-nav a:hover { color: var(--navy); text-decoration: underline; }
.legal-policy-nav .active {
  color: var(--navy);
  font-weight: 700;
  pointer-events: none;
}

/* ─── CONTACT BLOCK ─────────────────────────── */
.legal-contact-block {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-top: 8px;
}
.legal-contact-block p { font-size: 0.92rem; margin-bottom: 6px; }
.legal-contact-block a { color: var(--teal); text-decoration: none; font-weight: 600; }
.legal-contact-block a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 600px) {
  .legal-hero { padding: 36px 0 14px; }
  .legal-body { padding: 36px 0 56px; }
  .legal-section { margin-bottom: 32px; padding-bottom: 32px; }
  .legal-plan-table { font-size: 0.82rem; }
  .legal-plan-table th,
  .legal-plan-table td { padding: 8px 10px; }
  .legal-policy-nav { gap: 8px; }
}
