/* Paginas legales de Rename.
 * Mismo sistema visual que la landing: DM Sans, fondo #0A0D14, superficie
 * #111520, texto #F0F2F8, secundario #8891AA y acento #3D6FFF.
 *
 * Los enlaces dentro del texto usan un azul algo mas claro que el acento
 * (#6E96FF). El acento puro sobre el fondo oscuro se queda en 4,5:1 justo por
 * debajo del minimo AA para texto normal; este tono llega a 6,5:1. El acento
 * se mantiene donde no es texto: marca, foco e indice.
 */

/* ---- Tipografias autoalojadas (mismas que la landing) ---- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/syne-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fondo: #0A0D14;
  --superficie: #111520;
  --texto: #F0F2F8;
  --secundario: #8891AA;
  --acento: #3D6FFF;
  --enlace: #6E96FF;
  --enlace-activo: #9CB8FF;
  --borde: rgba(255, 255, 255, 0.09);
  --lectura: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

/* ---- Foco visible y salto al contenido ---- */
a:focus-visible,
:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  border-radius: 3px;
}

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 18px;
  background: var(--acento);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 12px 0;
}
.saltar:focus { left: 0; }

/* ---- Cabecera ---- */
.cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: var(--lectura);
  margin: 0 auto;
  padding: 28px 20px 0;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  text-decoration: none;
}
.marca-icono {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--acento);
  display: grid;
  place-items: center;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}
.marca-texto {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.volver:hover {
  background: #1A2030;
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---- Contenido ---- */
.contenido {
  max-width: var(--lectura);
  margin: 0 auto;
  padding: 40px 20px 8px;
}

h1 {
  margin: 0;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.fecha {
  margin: 12px 0 0;
  color: var(--secundario);
  font-size: 14.5px;
}

h2 {
  margin: 0 0 14px;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--texto);
}

h2 .num { color: var(--acento); }

section { margin-top: 44px; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 5px;
  padding: 1px 5px;
}

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

/* ---- Indice ---- */
.indice {
  margin-top: 34px;
  padding: 22px 24px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-left: 3px solid var(--acento);
  border-radius: 14px;
}
.indice h2 {
  margin: 0 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secundario);
}
.indice ol {
  margin: 0;
  padding-left: 20px;
  color: var(--secundario);
}
.indice li { margin-bottom: 6px; }
.indice a { color: var(--texto); text-decoration: none; }
.indice a:hover { color: var(--enlace); text-decoration: underline; }

/* ---- Volver, al final ---- */
.volver-pie {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--borde);
}
.volver-pie a { color: var(--enlace); font-weight: 500; text-decoration: none; }
.volver-pie a:hover { text-decoration: underline; }

/* ---- Pie ---- */
.pie {
  margin-top: 64px;
  padding: 36px 20px 48px;
  border-top: 1px solid var(--borde);
  color: var(--secundario);
  font-size: 14px;
}
.pie-interior {
  max-width: var(--lectura);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.pie-enlaces {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.pie-enlaces li { margin: 0; }
.pie-enlaces a { color: var(--secundario); text-decoration: none; }
.pie-enlaces a:hover { color: var(--texto); text-decoration: underline; }
.pie-enlaces a[aria-current="page"] { color: var(--texto); }
.pie-nota { width: 100%; margin: 0; font-size: 13px; color: #5D6580; }

/* ---- Pantallas estrechas ---- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cabecera { padding-top: 20px; }
  .contenido { padding-top: 28px; }
  section { margin-top: 36px; }
  .indice { padding: 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
