/* Paginas legales publicas (/terminos, /privacidad). Complementa tailwind.min.css con ritmo tipografico
   de documento largo: listas, anclas bajo la cabecera fija y vista de impresion. Sin recursos externos. */
.legal-prose { color: #cbd5e1; font-size: 0.9375rem; line-height: 1.75; }
.legal-prose > section + section { margin-top: 2.75rem; }
.legal-prose h2 {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  scroll-margin-top: 6rem;
}
.legal-prose h3 { color: #e2e8f0; font-size: 1rem; font-weight: 800; margin-top: 1.25rem; scroll-margin-top: 6rem; }
.legal-prose p { margin-top: 0.875rem; }
.legal-prose ul, .legal-prose ol { margin-top: 0.875rem; padding-left: 1.375rem; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li { margin-top: 0.5rem; padding-left: 0.25rem; }
.legal-prose li::marker { color: #94a3b8; }
.legal-prose strong { color: #f1f5f9; font-weight: 800; }
.legal-prose a { color: #fbbf24; text-decoration: underline; text-underline-offset: 3px; }
.legal-prose a:hover { color: #fcd34d; }
.legal-prose a:focus-visible, .legal-toc a:focus-visible, .legal-nav a:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
  border-radius: 0.25rem;
}
.legal-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(245 158 11 / 0.35);
  border-left-width: 4px;
  border-radius: 0.75rem;
  background: rgb(245 158 11 / 0.08);
  color: #e2e8f0;
}
.legal-callout strong { color: #fde68a; }
.legal-toc ol { list-style: decimal; padding-left: 1.5rem; columns: 1; }
.legal-toc li { margin-top: 0.375rem; break-inside: avoid; }
.legal-toc a { color: #cbd5e1; text-decoration: none; }
.legal-toc a:hover { color: #fbbf24; text-decoration: underline; }
@media (min-width: 640px) { .legal-toc ol { columns: 2; column-gap: 2rem; } }

.legal-table-wrap { margin-top: 1rem; overflow-x: auto; border: 1px solid #1e293b; border-radius: 0.75rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; line-height: 1.55; }
.legal-table th {
  background: #0f172a;
  color: #f1f5f9;
  font-weight: 800;
  text-align: left;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.legal-table td { padding: 0.75rem 1rem; vertical-align: top; border-top: 1px solid #1e293b; color: #cbd5e1; }
.legal-table td:first-child { color: #f1f5f9; font-weight: 700; }

@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .legal-nav, [data-footer-institucional], .legal-toc { display: none !important; }
  .legal-prose, .legal-prose h2, .legal-prose h3, .legal-prose strong, .legal-table td, .legal-table th { color: #000 !important; }
  .legal-prose a { color: #000 !important; }
  .legal-callout { border-color: #000; background: #fff; }
}
