/* ════════════════════════════════════════════════════════════════
   LEGAL PAGES — términos, privacidad y demás páginas legales
   ────────────────────────────────────────────────────────────────
   Template base: system/legal/base_legal.html

   Complementa a public_pages.css (que ya carga ese template) con lo
   propio del documento legal: tipografía de lectura larga, índice de
   contenidos y jerarquía de títulos.

   Extraído del <style> inline del template (2026-07-30): eran 166 líneas
   que ya convivían con una hoja externa en la misma página.
   ════════════════════════════════════════════════════════════════ */

  /* Paleta alineada con auth-v2 (sign-in-v2, sign-up-v2, sign-up-company-v2) */
  :root {
    --auth-bg-primary: #f5f7fa;
    --auth-bg-soft: #ffffff;
    --auth-accent: #5e72e4;
    --auth-accent-2: #4250a0;
    --auth-gradient: linear-gradient(135deg, #5e72e4, #4250a0);
    --auth-text-primary: #11213b;
    --auth-text-muted: #6b7280;
    --auth-border: rgba(94, 114, 228, 0.15);
    --auth-shadow-soft: 0 4px 24px rgba(94, 114, 228, 0.08);
  }
  body.dark-mode {
    --auth-bg-primary: #0f172a;
    --auth-bg-soft: #1e293b;
    --auth-text-primary: #f8fafc;
    --auth-text-muted: #cbd5e1;
    --auth-border: rgba(255, 255, 255, 0.1);
    --auth-shadow-soft: 0 4px 24px rgba(139, 156, 247, 0.18);
  }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--auth-bg-primary) !important;
    min-height: 100vh;
  }

  .legal-wrapper {
    min-height: 100vh;
    padding: 96px 1.25rem 4rem;
    background: var(--auth-bg-primary);
    position: relative;
    overflow: hidden;
  }
  .legal-wrapper::before,
  .legal-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(110px);
  }
  .legal-wrapper::before {
    width: 380px; height: 380px;
    background: var(--auth-accent);
    opacity: .07;
    top: -120px; left: -140px;
  }
  .legal-wrapper::after {
    width: 320px; height: 320px;
    background: var(--auth-accent-2);
    opacity: .05;
    bottom: -100px; right: -120px;
  }

  .legal-card {
    position: relative;
    z-index: 1;
    background: var(--auth-bg-soft);
    border: 1px solid var(--auth-border);
    border-radius: 20px;
    box-shadow: var(--auth-shadow-soft);
    max-width: 880px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    color: var(--auth-text-primary);
  }
  @media (max-width: 575px) {
    .legal-card { padding: 2rem 1.25rem; }
  }

  .legal-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--auth-accent);
    background: rgba(94, 114, 228, 0.1);
    padding: .25rem .75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
  }
  .legal-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--auth-text-primary);
    margin: 0 0 .75rem;
    line-height: 1.15;
  }
  .legal-subtitle {
    color: var(--auth-text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 2rem;
  }
  .legal-meta {
    color: var(--auth-text-muted);
    font-size: .85rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--auth-border);
  }

  .legal-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin: 2.25rem 0 .75rem;
    letter-spacing: -0.01em;
  }
  .legal-card h2:first-of-type { margin-top: 0; }
  .legal-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--auth-text-primary);
    margin: 1.5rem 0 .5rem;
  }
  .legal-card p,
  .legal-card li {
    color: var(--auth-text-muted);
    line-height: 1.7;
    font-size: 1rem;
  }
  .legal-card ul, .legal-card ol { padding-left: 1.25rem; }
  .legal-card li { margin-bottom: .35rem; }
  .legal-card a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
  }
  .legal-card a:hover {
    color: var(--auth-accent-2);
    text-decoration: underline;
  }

  .legal-disclaimer {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 12px;
    color: #b02a37;
    font-size: .9rem;
    line-height: 1.55;
  }
  body.dark-mode .legal-disclaimer {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
  }
  .legal-disclaimer strong { display: block; margin-bottom: .35rem; }

  .legal-footer-nav {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--auth-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: space-between;
    color: var(--auth-text-muted);
    font-size: .9rem;
  }
