/*
 * legal.css — Utilidades y layout compartido para las paginas legales
 * (aviso legal, privacidad y cookies) en es y /en/.
 *
 * Estas paginas usaban antes el CDN de Tailwind (cdn.tailwindcss.com), que no
 * conviene en produccion. styles.css (build de Tailwind v3.4.17) ya cubre la
 * mayoria de sus clases; aqui se reponen las utilidades que faltaban en ese
 * build y se define la presentacion especifica del contenido legal.
 *
 * Nota: las variantes de opacidad de colores custom (border-ip-navy/10,
 * divide-ip-navy/10, text-ip-navy/75) NO se incluyen a proposito: el CDN nunca
 * las genero (no habia config con esos colores), asi que hoy caen al color por
 * defecto. Reproducirlas cambiaria el diseno; se mantiene el comportamiento
 * actual.
 */

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.p-3 { padding: 0.75rem; }
.pl-6 { padding-left: 1.5rem; }
.mt-5 { margin-top: 1.25rem; }

.list-disc { list-style-type: disc; }
.text-left { text-align: left; }
.overflow-x-auto { overflow-x: auto; }
.min-w-\[680px\] { min-width: 680px; }

.bg-white\/70 { background-color: rgb(255 255 255 / 0.7); }

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * (1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

@media (min-width: 768px) {
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
}

.legal-page {
  background: #f4f7f9;
}

.legal-header {
  background: #112e40;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.legal-main {
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.legal-content section {
  padding-top: 2rem;
  border-top: 1px solid rgba(17, 46, 64, 0.12);
}

.legal-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-content p + p,
.legal-content p + ul,
.legal-content ul + p {
  margin-top: 1rem;
}

.legal-content ul {
  display: grid;
  gap: 0.65rem;
}

.legal-data-grid {
  display: grid;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(17, 46, 64, 0.14);
}

.legal-data-grid > div {
  display: grid;
  grid-template-columns: minmax(11rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(17, 46, 64, 0.12);
}

.legal-data-grid dt {
  color: rgba(17, 46, 64, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-data-grid dd {
  min-width: 0;
  color: #112e40;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal-data-grid a {
  color: #159ed5;
  text-decoration: underline;
  text-decoration-color: rgba(21, 158, 213, 0.35);
  text-underline-offset: 0.18em;
}

@media (max-width: 767px) {
  .legal-main {
    padding: 8.5rem 1.5rem 4.5rem;
  }

  .legal-page h1 {
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    line-height: 1.08;
  }

  .legal-content {
    gap: 2.5rem;
  }

  .legal-content section {
    padding-top: 1.65rem;
  }

  .legal-content section h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .legal-data-grid > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.85rem 0;
  }
}
