/* =========================
   Reset básico y tipografía
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.legal-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;      /* gris carbón suave */
  background-color: #f9fafb; /* gris muy claro de fondo */
}

/* =========================
   Layout principal
   ========================= */

.legal-main {
  max-width: 860px;
  margin: 40px auto 60px auto;
  padding: 0 16px;
}

/* =========================
   Encabezado
   ========================= */

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
}

.legal-header h1 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 600;
  color: #111827;
}

.legal-header p {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
}

/* =========================
   Secciones de contenido
   ========================= */

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.legal-section p {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #374151;
}

.legal-section ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 6px;
  color: #374151;
}

/* =========================
   Enlaces
   ========================= */

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* =========================
   Footer legal
   ========================= */

.legal-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.legal-footer p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* =========================
   Variantes por tipo de página
   ========================= */

body.legal-page--privacy .legal-header h1 {
  /* ligera variación posible si se quiere distinguir */
}

body.legal-page--terms .legal-header h1 {
  /* se puede ajustar si quieres que Términos se vea un poco distinto */
}

/* =========================
   Responsivo
   ========================= */

@media (max-width: 640px) {
  .legal-main {
    margin: 24px auto 40px auto;
    padding: 0 12px;
  }

  .legal-header h1 {
    font-size: 24px;
  }

  .legal-section h2 {
    font-size: 18px;
  }

  body.legal-page {
    font-size: 15px;
  }
}
