/* ═══════════════════════════════════════
   PÁGINAS LEGALES · privacidad, términos, reembolsos y cookies
   Comparten este archivo para que las cuatro se vean y se mantengan igual.
   Se carga antes de marca/marca.css.
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B1F2E;
  --accent: #2EC99A;
  --text: #F0EDE6;
  --text2: rgba(240,237,230,0.72);
  --text3: rgba(240,237,230,0.55);
  --border: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.03);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif; line-height: 1.7; overflow-x: hidden;
}

body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(11,31,46,0.92); backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo { display: block; }
.nav-cta {
  background: var(--accent); color: #0B1F2E; padding: 7px 18px; border-radius: 30px;
  font-weight: 500; font-size: 13px; text-decoration: none; transition: opacity 0.2s;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 8rem 2.5rem 4rem; }
.back { display: inline-block; font-size: 13px; color: var(--text2); text-decoration: none; margin-bottom: 2rem; transition: color 0.2s; }
.eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }

h1 { font-family: 'Playfair Display', serif; font-size: clamp(30px, 5vw, 44px); font-weight: 700; line-height: 1.15; margin-bottom: 0.75rem; }
.meta { font-size: 13px; color: var(--text3); margin-bottom: 2rem; }

h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(20px, 3vw, 25px);
  font-weight: 700; line-height: 1.3; margin: 2.75rem 0 0.75rem;
  scroll-margin-top: 90px;
}
h3 { font-size: 16px; font-weight: 600; margin: 1.5rem 0 0.4rem; color: var(--text); }

p { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 1rem; }
p strong, li strong, td strong { color: var(--text); font-weight: 600; }
ul, ol { font-size: 15px; color: var(--text2); line-height: 1.8; margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.45rem; }
a { color: var(--accent); text-underline-offset: 2px; }

/* Resumen en lenguaje sencillo al inicio de cada política */
.resumen {
  background: rgba(46,201,154,0.07); border: 0.5px solid rgba(46,201,154,0.3);
  border-radius: 14px; padding: 1.3rem 1.5rem; margin: 0 0 2rem;
}
.resumen h2 { margin: 0 0 0.6rem; font-size: 19px; }
.resumen ul { margin-bottom: 0; }
.resumen li { color: var(--text); }

.box {
  background: var(--card); border: 0.5px solid var(--border);
  border-radius: 14px; padding: 1.3rem 1.5rem; margin: 1.25rem 0;
}
.box p:last-child { margin-bottom: 0; }

/* Índice de secciones */
.indice { margin: 0 0 2rem; }
.indice p { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); margin-bottom: 0.5rem; }
.indice ol { columns: 2; column-gap: 2rem; font-size: 14px; margin-left: 1.1rem; }
.indice li { margin-bottom: 0.3rem; break-inside: avoid; }

/* Tablas (cookies y almacenamiento) */
.tabla-wrap { overflow-x: auto; margin: 1.25rem 0; border: 0.5px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 0.5px solid var(--border); color: var(--text2); line-height: 1.6; }
th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); font-weight: 600; background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: 0; }
code { font-size: 13px; background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 5px; color: var(--text); }

.btn-linea {
  display: inline-block; margin-top: 0.25rem; padding: 10px 18px; border-radius: 30px;
  border: 1px solid var(--accent); background: transparent; color: var(--text);
  font: 600 14px 'DM Sans', sans-serif; cursor: pointer;
}
.estado { font-size: 14px; color: var(--accent); margin-top: 0.6rem; min-height: 1.5em; }

.otras-politicas { margin-top: 3rem; padding-top: 1.5rem; border-top: 0.5px solid var(--border); }
.otras-politicas p { font-size: 14px; }

footer { padding: 2.5rem; border-top: 0.5px solid var(--border); text-align: center; }
.footer-logo { justify-content: center; }
.footer-note { font-size: 12px; color: var(--text3); margin-top: 6px; }

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { opacity: 0.85; }
  .back:hover { color: var(--accent); }
  .btn-linea:hover { background: rgba(46,201,154,0.1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media (max-width: 700px) {
  body > nav { padding: 1rem 1.25rem; }
  .wrap { padding: 6.5rem 1.25rem 3rem; }
  .indice ol { columns: 1; }
  /* La tabla pasa a tarjetas: cada celda muestra su rótulo */
  .tabla-wrap { overflow: visible; border: 0; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border: 0.5px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 4px 0; background: var(--card); }
  td { border-bottom: 0; padding: 8px 14px; }
  td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 2px; }
  footer { padding: 2rem 1.25rem; }
}
@media print {
  body > nav, .skip-link, .back, .indice, footer { display: none !important; }
  body { background: #fff; color: #000; }
  p, li, td, th, .meta { color: #222 !important; }
  .wrap { padding: 0; }
}
