/* =========================================================
   MiVitae — Páginas legales (aviso-legal.html y las que vengan)
   Carga DESPUÉS de landing.css: reutiliza sus tokens (:root) y su
   reset. Prefijo .lg- para no colisionar con .mv- ni con la app.
   ========================================================= */

/* ---------- Header ---------- */
.lg-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mv-border);
}
.lg-header-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.lg-header img { height: 30px; width: auto; }
.lg-back { font-size: 14px; font-weight: 600; color: var(--mv-blue); display: flex; align-items: center; gap: 6px; }
.lg-back:hover { text-decoration: underline; }

/* ---------- Documento ---------- */
.lg-doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.lg-doc h1 { font-size: clamp(28px,4vw,38px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.lg-meta {
  font-size: 13px; color: var(--mv-muted); padding-bottom: 24px;
  border-bottom: 1px solid var(--mv-border); margin-bottom: 8px;
}
.lg-doc h2 {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  margin: 40px 0 12px; padding-top: 4px; scroll-margin-top: 84px;
}
.lg-doc p, .lg-doc li { font-size: 15.5px; line-height: 1.75; color: #23324a; }
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul { margin: 0 0 16px; padding-left: 22px; }
.lg-doc li { margin-bottom: 8px; }
.lg-doc strong { color: var(--mv-text); font-weight: 700; }
.lg-doc a { color: var(--mv-blue); text-decoration: underline; text-underline-offset: 2px; }

/* Bloque de alerta (emergencias médicas) */
.lg-alert {
  background: var(--mv-red-soft); border: 1px solid #FBBDBD; border-left: 4px solid var(--mv-red);
  border-radius: var(--mv-radius-sm); padding: 16px 18px; margin: 22px 0;
}
.lg-alert p { margin: 0; font-size: 15px; font-weight: 600; color: #7F1D1D; }

/* Bloque destacado neutro */
.lg-note {
  background: var(--mv-bg-soft); border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-sm); padding: 16px 18px; margin: 22px 0;
}
.lg-note p:last-child { margin-bottom: 0; }

/* Datos pendientes de completar. Rojo a propósito: si esta página llega a
   producción sin rellenar, tiene que saltar a la vista de inmediato. */
.lg-todo {
  background: #FEE2E2; color: #B91C1C; font-weight: 700;
  padding: 1px 6px; border-radius: 4px; border: 1px dashed #DC2626;
}

/* ---------- Footer ---------- */
.lg-footer {
  background: var(--mv-navy); color: #90a6c6; padding: 32px 0;
  font-size: 13px; line-height: 1.7;
}
.lg-footer a { color: #cbd8ec; text-decoration: underline; }
.lg-footer-in { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (max-width: 640px) {
  .lg-doc { padding: 36px 20px 60px; }
  .lg-doc h2 { font-size: 17.5px; margin-top: 32px; }
  .lg-doc p, .lg-doc li { font-size: 15px; }
}
