/* Páginas legales y 404 en la imagen de RA: cabecera y pie como la web, texto largo cómodo de leer. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2-variations"), url("/assets/fonts/archivo-latin.woff2") format("woff2");
}

:root { --bg: #05070b; --panel: #0d162a; --linea: #1d2c4d; --texto: #eef2fa; --suave: #93a3c4; --azul: #2f6bff; --azul-claro: #8fb0ff; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--texto); background: var(--bg); min-height: 100vh;
  display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse 80% 35% at 50% 0%, rgba(47, 107, 255, .25), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--azul-claro); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; border-radius: 4px; }

/* Cabecera */
.lg-cab { border-bottom: 1px solid var(--linea); background: rgba(5, 7, 11, .85); }
.lg-cab-in { max-width: 1100px; margin: 0 auto; padding: 0 20px; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lg-marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texto); }
.lg-marca img { height: 30px; width: auto; }
.lg-marca span { padding-left: 12px; border-left: 1px solid var(--linea); line-height: 1.15; }
.lg-marca b { display: block; font-stretch: 66%; font-weight: 800; font-size: 19px; letter-spacing: .07em; text-transform: uppercase; }
.lg-marca small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--suave); }
.lg-volver { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--linea); border-radius: 10px; background: var(--panel); color: var(--texto); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.lg-volver:hover { border-color: var(--azul); color: #fff; }

/* Texto legal */
main.legal { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 44px 20px 64px; }
main.legal h1 { font-stretch: 66%; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-size: clamp(40px, 7vw, 64px); margin-bottom: 10px; }
main.legal .updated { color: var(--suave); font-size: 14.5px; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--linea); }
main.legal h2 { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 34px 0 10px; color: #fff; }
main.legal p, main.legal li { color: #c3cee6; }
main.legal p { margin-bottom: 14px; }
main.legal ul, main.legal ol { margin: 0 0 14px 22px; }
main.legal li { margin-bottom: 8px; }
main.legal strong { color: var(--texto); }
main.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15px; }
main.legal th, main.legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--linea); color: #c3cee6; }
main.legal th { background: var(--panel); color: var(--texto); }

/* 404 */
main.notfound { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
main.notfound .lg-cod { font-stretch: 66%; font-weight: 800; font-size: clamp(110px, 24vw, 200px); line-height: .85; color: var(--azul); margin-bottom: 14px; }
main.notfound p { max-width: 42ch; }
.lg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; margin-top: 12px; border-radius: 12px; background: var(--azul); color: #fff; font-weight: 700; text-decoration: none; }
.lg-btn:hover { background: #4a7fff; color: #fff; }

/* Pie */
.lg-pie { border-top: 1px solid var(--linea); background: #070b14; }
.lg-pie-in { max-width: 1100px; margin: 0 auto; padding: 22px 20px; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 14px; color: var(--suave); }
.lg-pie a { color: var(--suave); text-decoration: none; }
.lg-pie a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .lg-marca span { display: none; }
  main.legal { padding-top: 30px; }
}
