/* Páginas legales (/privacidad y /terminos). Son HTML estático, fuera de la app:
   no pasan por Tailwind, así que aquí se repiten los colores y medidas de
   docs/branding/README.md. Si cambia la marca, se cambia también acá. */

@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans.woff2) format('woff2-variations');
}

:root {
  color-scheme: light;
  --tinta: #102f31;
  --acento: #126457;
  --acento-fuerte: #0b5048;
  --menta: #9bd3c9;
  --fondo: #f5f5f7;
  --texto: #1d1d1f;
  --texto-suave: #5b6770;
  --linea: #e3e5e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.65 'DM Sans Variable', 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acento); text-underline-offset: 2px; }
a:hover { color: var(--acento-fuerte); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 4px; }

.marco { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Cabecera blanca, igual a la de la app: logo "Deltu | AI Customer" y entrar. */
.cabecera { background: #fff; border-bottom: 1px solid var(--linea); }
.cabecera .marco { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; color: var(--tinta); text-decoration: none; }
.logo:hover { color: var(--tinta); }
.logo-palabra { display: inline-flex; align-items: center; gap: 3px; font-size: 26px; font-weight: 680; letter-spacing: -0.085em; line-height: 1; }
.logo-palabra svg { width: 11.5px; height: 13px; margin-left: 2px; transform: translateY(-0.05em); }
.logo-modulo { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(16, 47, 49, .3); font-size: 13px; line-height: 1; white-space: nowrap; }
.boton {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px;
  background: var(--acento); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.boton:hover { background: var(--acento-fuerte); color: #fff; }

/* Portada en tinta: el rótulo, el título y la fecha de vigencia. */
.portada { background: var(--tinta); color: #fff; }
.portada .marco { padding-top: 36px; padding-bottom: 0; }
.sello { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--menta); font-size: 13px; font-weight: 500; }
.sello svg { width: 11px; height: 12.5px; }
h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.fecha { margin: 10px 0 0; color: #c9d6d3; font-size: 15px; }
.documentos { display: flex; gap: 24px; margin-top: 28px; }
.documentos a { padding: 10px 0 12px; border-bottom: 2px solid transparent; color: #c9d6d3; font-size: 14px; font-weight: 500; text-decoration: none; }
.documentos a:hover { color: #fff; }
.documentos a[aria-current='page'] { color: #fff; border-bottom-color: var(--menta); }

/* Cuerpo: índice a la izquierda (solo en pantallas anchas) y el texto en una hoja. */
.cuerpo { display: block; padding-top: 24px; padding-bottom: 48px; }
.indice { display: none; }
.hoja { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 24px 20px; }
.hoja > :first-child { margin-top: 0; }
.hoja > :last-child { margin-bottom: 0; }
.hoja p, .hoja ul { margin: 0 0 14px; }
.hoja h2 {
  margin: 32px 0 10px; padding-top: 28px; border-top: 1px solid var(--linea);
  color: var(--tinta); font-size: 1.2rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em;
  scroll-margin-top: 16px;
}
.hoja ul { padding-left: 0; list-style: none; }
.hoja li { position: relative; margin-bottom: 8px; padding-left: 20px; }
.hoja li::before { content: ''; position: absolute; left: 3px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--menta); }
.hoja strong { font-weight: 600; color: var(--tinta); }

.pie { border-top: 1px solid var(--linea); color: var(--texto-suave); font-size: 14px; }
.pie .marco { padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.pie p { margin: 0; }
.pie a { color: var(--texto-suave); }
.pie a:hover { color: var(--tinta); }

@media (min-width: 640px) {
  .marco { padding: 0 24px; }
  .portada .marco { padding-top: 56px; }
  .hoja { padding: 40px 44px; }
}

@media (min-width: 1024px) {
  .cuerpo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 72px; }
  .indice { display: block; position: sticky; top: 24px; font-size: 14px; }
  .indice p { margin: 0 0 10px; color: var(--texto-suave); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .indice ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--linea); }
  .indice a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 1px solid transparent; color: var(--texto-suave); text-decoration: none; line-height: 1.35; }
  .indice a:hover { color: var(--tinta); border-left-color: var(--tinta); }
}

@media print {
  .cabecera .boton, .documentos, .indice { display: none; }
  .portada { background: none; color: #000; }
  .fecha, .sello { color: #333; }
  .hoja { border: 0; padding: 0; }
  body { background: #fff; }
}
