/* Hoja de las páginas públicas de Chinola (legal y soporte).
   Va aparte del bundle de la app a propósito: estas páginas las abre alguien
   que quiere leer una condición concreta, muchas veces desde el móvil y con
   mala conexión, y no tienen por qué cargar React entero.
   El modo claro y el oscuro se respetan los dos. */

:root {
  --bg: #f7f5ec;
  --superficie: #ffffff;
  --texto: #1f2a1c;
  --tenue: #5f6b58;
  --acento: #3f6b3a;
  --amarillo: #f2c500;
  --borde: #e6e2d3;
  --radio: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14180f;
    --superficie: #1c2117;
    --texto: #eaeee2;
    --tenue: #a3ad98;
    --acento: #a9d69f;
    --borde: #2b3226;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  padding: 0 20px calc(48px + env(safe-area-inset-bottom));
  text-wrap: pretty;
}

main, .cabecera, footer { max-width: 720px; margin: 0 auto; }

.cabecera {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: calc(22px + env(safe-area-inset-top)) 0 10px;
}
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.marca img { border-radius: 12px; }
.marca span { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; display: flex; flex-direction: column; line-height: 1.15; }
.marca small { font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tenue); }
.idiomas { display: flex; gap: 6px; flex-wrap: wrap; }
.idiomas a {
  font-size: 12px; font-weight: 700; text-decoration: none; color: var(--tenue);
  padding: 7px 12px; border: 1px solid var(--borde); border-radius: 20px; background: var(--superficie);
}
.idiomas a:hover { color: var(--texto); }

section { padding: 26px 0 10px; border-top: 1px solid var(--borde); }
section:first-of-type { border-top: none; }

.sobre { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--acento); }
h1 { margin: 8px 0 12px; font-size: clamp(27px, 5vw, 36px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
h2 { margin: 32px 0 10px; font-size: 20px; letter-spacing: -0.02em; font-weight: 800; }
h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 800; }
.entradilla { font-size: 18px; line-height: 1.6; color: var(--tenue); }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
a { color: var(--acento); text-underline-offset: 3px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--superficie); border: 1px solid var(--borde); border-radius: 6px; padding: 1px 5px; }

.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px 20px; margin: 18px 0; }
.tarjeta p:last-child { margin-bottom: 0; }
.destacada { border-left: 4px solid var(--amarillo); }

table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--tenue); }

.fecha { font-size: 13px; color: var(--tenue); }
footer { padding: 30px 0 0; border-top: 1px solid var(--borde); margin-top: 34px; font-size: 13px; color: var(--tenue); }
footer a { margin-right: 14px; display: inline-block; }
