/*
 * RSL Legal pages — shared styles
 * Used by: aviso-legal, politica-privacidad, politica-cookies
 *          legal-notice, privacy-policy, cookie-policy
 *          mentions-legales, politique-confidentialite, politique-cookies
 */

/* site.css hides body for the jpreLoader preloader; legal pages don't use it */
body { display: block !important; }

/* Evita que el fondo del body se cuele entre .legal-body y el footer */
footer { background: #0d0d0d; }

/* ── Hero ─────────────────────────────────────────────────────── */
.legal-hero {
  background: #0d0d0d;
  border-bottom: 2px solid #0398b3;
  padding: 5.5rem 0 2.5rem;
  text-align: center;
}
.legal-hero h2 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
}
.legal-hero__sub {
  font-size: 0.85rem;
  color: #0398b3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Body wrapper ─────────────────────────────────────────────── */
.legal-body {
  background: #fff;
  padding: 3rem 0 5rem;
}

/* ── Headings ─────────────────────────────────────────────────── */
.legal-body h3 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  color: #0398b3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2.8rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}
.legal-body h3:first-child { margin-top: 0; }

.legal-body h4 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  color: #222;
  font-weight: 700;
  margin: 1.6rem 0 0.4rem;
}

/* ── Text ─────────────────────────────────────────────────────── */
.legal-body p {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}
.legal-body ul {
  margin: 0.4rem 0 1rem 1.4rem;
  list-style: disc;
}
.legal-body li {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 0.3rem;
}
.legal-body a           { color: #0398b3; }
.legal-body a:hover     { color: #026e8a; }

/* ── Highlight box (privacy policy controller block) ──────────── */
.legal-notice-box {
  background: #f5f5f5;
  border-left: 3px solid #0398b3;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.7;
}
.legal-notice-box strong { color: #222; }

/* ── Cookie table ─────────────────────────────────────────────── */
.cookie-table-wrap  { overflow-x: auto; margin: 1rem 0 1.5rem; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 540px;
}
.cookie-table th {
  background: #0398b3;
  color: #fff;
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cookie-table td {
  padding: 0.65rem 0.9rem;
  color: #444;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  line-height: 1.5;
}
.cookie-table tr:nth-child(even) td { background: #f9f9f9; }
.cookie-table .tag-inactive {
  display: inline-block;
  background: #e0e0e0;
  color: #777;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Browser list (cookie policy) ────────────────────────────── */
.browser-list {
  margin: 0.4rem 0 1rem 1.4rem;
  list-style: none;
  padding: 0;
}
.browser-list li              { margin-bottom: 0.4rem; }
.browser-list li::before {
  content: '›';
  color: #0398b3;
  margin-right: 0.5rem;
  font-weight: 700;
}

/* ── Last updated line ────────────────────────────────────────── */
.legal-updated {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid #ddd;
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}

/* Nav fijo móvil: 67px logo + 12px padding + 2px border = 81px.
   padding-top: 5.5rem (88px) deja solo 7px → título casi tapado.
   6.5rem (104px) da 23px de margen cómodo. */
@media only screen and (max-width: 40em) {
  .legal-hero {
    padding-top: 6.5rem;
  }
}
