/* Estilos compartidos por las seis páginas legales (ES + EN).
   Reutilizan la paleta y las tipografías de la web principal. */

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

:root {
  --white:  #FFFFFF;
  --off:    #F7F4F0;
  --light:  #EDEAE6;
  --black:  #111010;
  --dark:   #1A1818;
  --red:    #C81414;
  --red2:   #E01A1A;
  --gold:   #B8760A;
  --gray:   #6B655F;
  --gray2:  #C0BBB5;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--dark);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red2) 0%, var(--red) 55%, var(--gold) 100%);
  border-radius: 8px;
  border: 3px solid var(--dark);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--red2) 0%, var(--red) 100%); }
::-webkit-scrollbar-corner { background: var(--dark); }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--white); }

.noscript-bar {
  background: var(--black); color: var(--white); padding: 16px 24px;
  font-size: 14px; line-height: 1.7; text-align: center;
}
.noscript-bar a { color: var(--red2); font-weight: 600; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 14px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo img { height: 120px; width: auto; display: block; filter: brightness(0); }
.nav-right { display: flex; align-items: center; gap: 22px; }
/* El desplegable de idioma lo dibuja y lo estila header.js. */
.nav-lang { font-size: 11px; letter-spacing: 2px; font-weight: 600; }
.nav-back a {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 12px 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  white-space: nowrap;
}
.nav-back a:hover { background: var(--red2); transform: translateY(-1px); }

/* ── CABECERA ── */
.legal-head {
  background: var(--off);
  border-bottom: 1px solid var(--light);
  padding: 70px 30px 60px;
  text-align: center;
}
.legal-head .label {
  display: block;
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 16px;
}
.legal-head h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5.5vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.legal-head h1 em { font-style: italic; color: var(--red); font-weight: 600; }
.legal-head .updated {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray);
  text-transform: uppercase;
}

/* ── CONTENIDO ── */
.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 30px 90px;
}

.legal-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  margin: 52px 0 6px;
  padding-top: 34px;
  border-top: 1px solid var(--light);
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 {
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin: 32px 0 10px;
}
.legal-body p { font-size: 15px; line-height: 1.85; color: #3c3936; margin-top: 14px; }
.legal-body ul, .legal-body ol { margin: 14px 0 0 22px; }
.legal-body li { font-size: 15px; line-height: 1.85; color: #3c3936; margin-bottom: 9px; }
.legal-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--red2); }
.legal-body strong { font-weight: 600; color: var(--black); }

/* Bloque de datos identificativos */
.legal-data {
  background: var(--off);
  border-left: 3px solid var(--red);
  padding: 26px 28px;
  margin-top: 22px;
}
.legal-data p { margin-top: 8px; font-size: 14.5px; }
.legal-data p:first-child { margin-top: 0; }

/* Tablas de cookies / plazos */
.legal-table-wrap { overflow-x: auto; margin-top: 20px; }
table.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.legal-table th, table.legal-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--light);
  vertical-align: top;
  line-height: 1.6;
}
table.legal-table th {
  font-size: 9.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  white-space: nowrap;
}
table.legal-table td { color: #3c3936; }
table.legal-table tr:last-child td { border-bottom: none; }
table.legal-table code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--light);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Botón para reabrir el panel de cookies desde el texto */
.legal-cta {
  margin-top: 26px;
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 26px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.legal-cta:hover { background: var(--red2); transform: translateY(-1px); }
.legal-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 3px solid var(--red);
  padding: 60px 80px 34px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: center;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-nav a, .footer-nav button {
  color: rgba(255,255,255,0.62);
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}
.footer-nav a:hover, .footer-nav button:hover { color: var(--red); }
.footer-legal-bottom {
  padding-top: 24px;
  text-align: center;
}
.footer-legal-bottom p { font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-credit {
  text-align: center;
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
}
.footer-credit a { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; }
.footer-credit img { height: 18px; width: auto; opacity: 0.85; transition: opacity 0.3s; }
.footer-credit a:hover img { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 10px 24px; }
  .nav-logo img { height: 88px; }
  .nav-right { gap: 12px; }
  .nav-back a { padding: 10px 14px; font-size: 9.5px; letter-spacing: 1px; }
  .legal-head { padding: 50px 24px 44px; }
  .legal-body { padding: 52px 24px 70px; }
  footer { padding: 50px 26px 28px; }
}
@media (max-width: 520px) {
  .nav-logo img { height: 83px; }
  .legal-body h2 { font-size: 21px; margin-top: 40px; padding-top: 28px; }
  .legal-body p, .legal-body li { font-size: 14.5px; }
  .legal-data { padding: 20px 20px; }
}

@media print {
  nav, footer, .legal-cta { display: none; }
  body { color: #000; }
  .legal-head { background: none; border-bottom: 1px solid #000; }
}
