/* ==========================================================================
   Firmin Security — Páginas legales (política de cookies, avisos...)
   Reproduce el lenguaje visual de la home sin duplicar todo su CSS.
   ========================================================================== */

:root {
  --white: #F7FAFC;
  --cream: #EAF0F6;
  --charcoal: #0B1F33;
  --charcoal-soft: #3C5872;
  --navy: #123C69;
  --navy-dark: #0A2743;
  --ice: #AFC5D8;
  --ice-line: #D6E2EC;
  --radius: 4px;
  --maxw: 820px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: 'Public Sans', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 .5em;
}

a { color: var(--navy); }
img { display: block; max-width: 100%; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Cabecera ---------- */
header {
  border-bottom: 1px solid var(--ice-line);
  background: rgba(253, 251, 249, .92);
}

header .wrap {
  max-width: 1140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--charcoal);
}

.brand .seal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ice);
}

.volver {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--charcoal-soft);
}

.volver:hover { color: var(--navy); }

/* ---------- Contenido ---------- */
.legal { padding: 64px 0 80px; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--navy);
  display: inline-block;
}

.legal h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-top: .4em;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--ice-line);
}

.legal h3 { font-size: 1.02rem; margin-top: 1.8em; }

.legal p, .legal li { color: var(--charcoal-soft); }

.legal .destacado {
  background: var(--cream);
  border-left: 3px solid var(--navy);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.legal .destacado p { margin: 0; }

.actualizado {
  font-size: .86rem;
  color: var(--charcoal-soft);
  margin-top: .6em;
}

.pendiente {
  background: #FFF4D6;
  border: 1px dashed #C9A227;
  color: #6B5210;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: .88em;
  font-weight: 600;
}

/* ---------- Tabla de cookies ---------- */
.tabla-envoltorio {
  overflow-x: auto;
  border: 1px solid var(--ice-line);
  border-radius: var(--radius);
  margin: 20px 0 28px;
}

table.cookies {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .88rem;
}

table.cookies th,
table.cookies td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ice-line);
  vertical-align: top;
  color: var(--charcoal-soft);
}

table.cookies thead th {
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 700;
  white-space: nowrap;
}

table.cookies tbody tr:last-child td { border-bottom: none; }

table.cookies code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .84rem;
  color: var(--charcoal);
  word-break: break-word;
}

.categoria-fila td {
  background: var(--white);
  font-family: 'Lora', serif;
  font-weight: 700;
  color: var(--charcoal);
  border-top: 2px solid var(--ice);
}

/* ---------- Botón de preferencias ---------- */
.btn-preferencias {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
}

.btn-preferencias:hover { background: var(--navy-dark); }

/* ---------- Pie ---------- */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #8FA6BC;
  font-size: .86rem;
}

footer .wrap {
  max-width: 1140px;
  padding: 26px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer a { color: #8FA6BC; }
footer a:hover { color: var(--white); }
