/* ======================================================
   PÁGINAS LEGALES – ENOBRAIN
   Playfair Display + Neue Montreal
   Coherente con el resto del sitio
====================================================== */

:root {
  --legal-brown: #68352f;
  --legal-green: #7b913a;
  --legal-text-main: #0e0f19;
  --legal-text-soft: rgba(14, 15, 25, 0.78);
  --legal-border: rgba(104, 53, 47, 0.15);
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

/* ---------------- TÍTULO PRINCIPAL ---------------- */

.legal-page h1 {
  font-family: "Playfair Display";
  font-weight: 600;
  font-size: 40px;
  color: var(--legal-text-main);
  margin-bottom: 28px;
  line-height: 1.15;
}

/* ---------------- SECCIONES ---------------- */

.legal-page h2 {
  font-family: "Playfair Display";
  font-weight: 600;
  font-size: 26px;
  color: var(--legal-brown);
  margin: 40px 0 14px;
  line-height: 1.2;
}

.legal-page h3 {
  font-family: "Playfair Display";
  font-weight: 600;
  font-size: 20px;
  color: var(--legal-text-main);
  margin: 28px 0 10px;
}

/* ---------------- PÁRRAFOS ---------------- */

.legal-page p {
  font-family: "Neue Montreal", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--legal-text-soft);
  margin: 0 0 16px;
}

/* ---------------- LISTA DE DATOS ---------------- */

.legal-page ul {
  font-family: "Neue Montreal", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--legal-text-soft);
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page ul li {
  margin-bottom: 6px;
}

/* ---------------- ENLACES ---------------- */

.legal-page a {
  color: var(--legal-brown);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.legal-page a:hover {
  color: var(--legal-green);
}

/* ---------------- SUBTÍTULOS (h4) ---------------- */

.legal-page h4 {
  font-family: "Neue Montreal", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--legal-brown);
  margin: 26px 0 10px;
}

/* ---------------- ÉNFASIS ---------------- */

.legal-page strong {
  color: var(--legal-text-main);
  font-weight: 600;
}

.legal-page em {
  font-style: italic;
}

/* ---------------- TABLAS ---------------- */

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  font-family: "Neue Montreal", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--legal-text-soft);
  background: #ffffff;
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  overflow: hidden;
}

.legal-page table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--legal-border);
  border-right: 1px solid var(--legal-border);
  vertical-align: top;
  word-break: break-word;
}

.legal-page table td:last-child {
  border-right: none;
}

.legal-page table tr:last-child td {
  border-bottom: none;
}

/* Fila de cabecera: primera fila de cada tabla */
.legal-page table tr:first-child td {
  background: rgba(104, 53, 47, 0.07);
  color: var(--legal-text-main);
  font-family: "Playfair Display";
  font-weight: 600;
  font-size: 15px;
}

.legal-page table tr:nth-child(even) td {
  background: rgba(104, 53, 47, 0.02);
}

.legal-page table a {
  word-break: break-all;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 768px) {
  .legal-page {
    padding: 30px 18px 50px;
  }

  .legal-page h1 {
    font-size: 30px;
  }

  .legal-page h2 {
    font-size: 22px;
  }

  .legal-page table {
    font-size: 13px;
  }

  .legal-page table td {
    padding: 9px 10px;
  }
}
