/* Páginas legales estáticas (términos y condiciones, aviso de privacidad). */

:root {
  color-scheme: light dark;
  --marca-azul: #005db9;
  --marca-marino: #013765;
  --marca-cian: #02d1d5;
  --fondo: #eaf0f8;
  --superficie: #ffffff;
  --texto: #121f3d;
  --texto-suave: #4a5878;
  --titulo: #005db9;
  --enlace: #005db9;
  --borde: #d3deee;
  --barra: #0b1530;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0b1530;
    --superficie: #121f3d;
    --texto: #f1f5fb;
    --texto-suave: #b5c2db;
    --titulo: #7cc4ff;
    --enlace: #7cc4ff;
    --borde: #23345c;
    --barra: #071026;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family:
    'Nunito',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: var(--enlace);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--marca-cian);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Barra de marca */
.barra {
  background: linear-gradient(90deg, var(--marca-marino), var(--barra));
  border-bottom: 3px solid var(--marca-cian);
}

.barra__interior {
  max-width: 72ch;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.barra__logo {
  display: inline-flex;
}

.barra__logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}

.barra__accion {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}

.barra__accion:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Documento */
.documento {
  max-width: 72ch;
  margin: 24px auto;
  padding: 24px 16px 32px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 12px;
}

@media (min-width: 720px) {
  .documento {
    margin: 40px auto;
    padding: 40px 48px 48px;
  }
}

@media (max-width: 767px) {
  .documento {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

h1,
h2,
h3,
h4 {
  color: var(--titulo);
  line-height: 1.3;
  font-weight: 800;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}

.seccion-titulo {
  font-size: 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

.fecha {
  color: var(--texto-suave);
  margin-top: 2rem;
}

/* Tablas: desplazamiento horizontal dentro del contenedor */
.tabla {
  overflow-x: auto;
  margin: 0 0 1rem;
}

.tabla table {
  border-collapse: collapse;
  min-width: 100%;
}

.tabla th,
.tabla td {
  border: 1px solid var(--borde);
  padding: 8px 10px;
  text-align: left;
}

/* Pie con enlaces entre páginas legales */
.pie {
  max-width: 72ch;
  margin: 0 auto;
  padding: 16px 16px 40px;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.pie ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.pie [aria-current='page'] {
  font-weight: 700;
  text-decoration: none;
  color: var(--texto);
}
