/* ==========================================================================
   FAST FRIED CHICKEN — política de privacidad
   --------------------------------------------------------------------------
   Hoja propia de esta carpeta: no depende de styles.css ni de bomb-sweeper.css,
   así que la página se puede subir sola sin tocar recursos compartidos.
   Paleta del sitio, pero con fuentes del SISTEMA a propósito: una página de
   privacidad no debería cargar recursos de terceros para mostrarse.
   ========================================================================== */

:root {
  --black: #050505;
  --panel: rgba(255, 255, 255, 0.035);
  --red: #e10600;
  --hot: #ff2a1f;
  --gold: #ffc93c;
  --text: #f4eee8;
  --muted: rgba(244, 238, 232, 0.72);
  --dim: rgba(244, 238, 232, 0.5);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.24);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --header-h: 3.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 90% -5%, rgba(225, 6, 0, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 35% at -5% 40%, rgba(255, 201, 60, 0.06), transparent 60%),
    var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
a:hover { color: #fff; }

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.88em;
  word-break: break-word;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(72rem, 100% - 3rem); } }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.3rem;
  background: var(--gold);
  color: #1a0f00;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 1rem; color: #1a0f00; }

/* ---------- topbar + header ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 2.5rem;
  padding-block: 0.35rem;
}

.topbar__divisions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.1rem; }
.topbar__divisions a { color: var(--dim); text-decoration: none; transition: color 160ms ease; }
.topbar__divisions a:hover { color: #fff; }
.topbar__divisions .topbar__home { color: var(--text); font-weight: 700; }
.topbar__divisions [aria-current] { color: var(--gold); }

.lang-switch { display: flex; gap: 0.25rem; }

.lang-switch button {
  min-height: 1.9rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--dim);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.lang-switch button:hover { color: #fff; border-color: var(--line-strong); }
.lang-switch button[aria-pressed="true"] { border-color: var(--hot); background: rgba(225, 6, 0, 0.18); color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.header__brand {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; margin-left: auto; }

.nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.nav a:hover { color: #fff; }

/* ---------- documento ---------- */

.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.eyebrow {
  color: var(--hot);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.doc__head h1 {
  max-width: 44rem;
  margin-top: 0.6rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.doc__meta { margin-top: 1rem; color: var(--dim); font-size: 0.82rem; letter-spacing: 0.06em; }

.notice {
  max-width: 50rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 201, 60, 0.5);
  border-left-width: 4px;
  background: rgba(255, 201, 60, 0.06);
}

.notice p { margin: 0; color: var(--text); }
.notice p + p { margin-top: 0.6rem; }

.toc {
  max-width: 50rem;
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.toc h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.toc ol { margin: 0.6rem 0 0 1.3rem; columns: 2 15rem; column-gap: 2rem; }
.toc li { margin-top: 0.3rem; }
.toc a { color: var(--text); }

.doc__body { max-width: 50rem; margin-top: 2.5rem; }
.doc__body section { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.doc__body section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.doc__body h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.doc__body h3 {
  margin-top: 1.4rem;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc__body p, .doc__body li { color: var(--muted); }
.doc__body p { margin-top: 0.9rem; }
.doc__body ul { margin: 0.9rem 0 0 1.2rem; }
.doc__body li + li { margin-top: 0.45rem; }
.doc__body strong { color: #fff; }

.endpoint {
  overflow-wrap: anywhere;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.endpoint code { border: 0; background: none; padding: 0; color: var(--text); }

.linkbox {
  margin-top: 1.2rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.linkbox h3 { margin: 0 0 0.6rem; }
.linkbox ul { margin: 0; list-style: none; }
.linkbox li { color: var(--text); }
.linkbox li + li { margin-top: 0.45rem; }
.linkbox a { font-weight: 700; }

/* ---------- pie ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  padding-block: 1.5rem;
  color: var(--dim);
  font-size: 0.8rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
