/* ══════════════════════════════
   legal-page.css
   Typography and rhythm for legal pages (Disclaimer, Privacy Policy,
   Cookie Policy, Terms of Service, Cookie Settings).
   Targets the .wp-content area inside the legal-page.php template.
   ══════════════════════════════ */

.legal-page .card {
  padding: 32px;
  box-shadow: none;
}

/* ── Spacing rhythm ── */
.legal-page .wp-content > * + * { margin-top: 18px; }

/* Headings get extra breathing room above */
.legal-page .wp-content > h2 + *,
.legal-page .wp-content > h3 + *,
.legal-page .wp-content > h4 + * { margin-top: 14px; }

/* ── Headings ── */
.legal-page .wp-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.25;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--card-stroke);
}
.legal-page .wp-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-page .wp-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.3;
  margin-top: 28px;
}
.legal-page .wp-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
  margin-top: 22px;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Paragraphs ── */
.legal-page .wp-content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

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

/* ── Links ── */
.legal-page .wp-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  word-break: break-word;
  transition: color 0.18s;
}
.legal-page .wp-content a:hover {
  color: var(--accent-2);
}

/* ── Lists ── */
.legal-page .wp-content ul,
.legal-page .wp-content ol {
  padding-left: 24px;
  line-height: 1.75;
}
.legal-page .wp-content ul li,
.legal-page .wp-content ol li {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}
.legal-page .wp-content ul li::marker {
  color: var(--accent);
}
.legal-page .wp-content ol li::marker {
  color: var(--accent);
  font-weight: 700;
}
.legal-page .wp-content li > ul,
.legal-page .wp-content li > ol {
  margin-top: 6px;
}

/* ── Blockquote (used for "Status note" callouts) ── */
.legal-page .wp-content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-strong);
}
.legal-page .wp-content blockquote p { margin: 0; }
.legal-page .wp-content blockquote p + p { margin-top: 8px; }

/* ── Tables (Cookie Policy uses these) ── */
.legal-page .wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.legal-page .wp-content thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--accent-border);
}
.legal-page .wp-content tbody td {
  padding: 10px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--card-stroke);
  color: var(--text);
}
.legal-page .wp-content tbody tr:last-child td {
  border-bottom: none;
}
.legal-page .wp-content tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.4);
}

/* ── Inline code (in case it appears) ── */
.legal-page .wp-content code {
  font-family: 'DM Mono', monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  border: 1px solid var(--accent-border);
}

/* ── Horizontal rule ── */
.legal-page .wp-content hr {
  border: 0;
  border-top: 1px solid var(--card-stroke);
  margin: 32px 0;
}

/* ══════════════════════════════
   Mobile tweaks
   ══════════════════════════════ */
@media (max-width: 768px) {
  .legal-page .card {
    padding: 22px 20px;
  }
  .legal-page .wp-content h2 { font-size: 20px; margin-top: 28px; }
  .legal-page .wp-content h3 { font-size: 17px; margin-top: 22px; }
  .legal-page .wp-content table { font-size: 12px; }
  .legal-page .wp-content thead th,
  .legal-page .wp-content tbody td {
    padding: 8px 10px;
  }
}
