/**
 * MOD Mallorca — Legal pages
 * Tokens: aligned to Guille's mod.css (--mod-cyan #00e5ff, --mod-gold #c9a84c,
 *         --mod-gold-light #e8c96a, --mod-white #f0ede8, body bg #04141b)
 */

:root {
  --l-s2: 8px;  --l-s3: 12px; --l-s4: 16px; --l-s5: 20px;
  --l-s6: 24px; --l-s8: 32px; --l-s10: 40px; --l-s12: 48px; --l-s16: 64px;
  --l-r: 14px;
}

/* ── HERO ──────────────────────────────────────────────────── */
.legal-hero {
  background: linear-gradient(135deg, rgba(0,229,255,0.08) 0%, rgba(201,168,76,0.06) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: var(--l-s16) var(--l-s8) var(--l-s10);
  text-align: center;
}
.legal-hero__tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #00e5ff;
  border: 1px solid rgba(0,229,255,0.35); border-radius: 999px;
  padding: var(--l-s2) var(--l-s4); margin-bottom: var(--l-s5);
}
.legal-hero__tag--gold {
  color: #e8c96a;
  border-color: rgba(232,201,106,0.35);
}
.legal-hero__title {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.06em; color: #f0ede8; line-height: 1.1; margin-bottom: var(--l-s4);
}
.legal-hero__subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.45); }

/* ── CONTENT WRAPPER ───────────────────────────────────────── */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: var(--l-s12) var(--l-s8) var(--l-s16); }

/* ── SECTIONS ──────────────────────────────────────────────── */
.legal-section {
  margin-bottom: var(--l-s12);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: var(--l-s10);
}
.legal-section:last-child { border-bottom: none; }
.legal-section__num {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #00e5ff; margin-bottom: var(--l-s3);
}
.legal-section__title {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 0.05em; color: #f0ede8; margin-bottom: var(--l-s5);
}
.legal-section p { font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-bottom: var(--l-s4); }
.legal-section ul,
.legal-section ol { font-size: 0.9rem; color: rgba(255,255,255,0.72); padding-left: var(--l-s6); margin-bottom: var(--l-s4); }
.legal-section li { margin-bottom: var(--l-s2); }
.legal-section strong { color: rgba(255,255,255,0.92); }
.legal-section a { color: #00e5ff; text-decoration: underline; word-break: break-word; }
.legal-section a:hover { color: #00b8cc; }
.legal-section h3 { font-size: 0.95rem; color: #f0ede8; margin: var(--l-s5) 0 var(--l-s3); letter-spacing: 0.04em; }

/* ── INFO CARD ─────────────────────────────────────────────── */
.info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--l-r);
  padding: var(--l-s6); margin: var(--l-s5) 0;
  font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.8;
}
.info-card > strong {
  color: #e8c96a; display: block; margin-bottom: var(--l-s3);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.info-card p { margin-bottom: 4px; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.info-card p strong { color: rgba(255,255,255,0.92); display: inline; text-transform: none; letter-spacing: normal; font-size: inherit; }

/* ── HIGHLIGHT BOX ─────────────────────────────────────────── */
.highlight-box {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--l-r); padding: var(--l-s5) var(--l-s6); margin: var(--l-s5) 0;
}
.highlight-box p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 0; }
.highlight-box strong { color: #e8c96a; }

/* ── BANNER BOX ────────────────────────────────────────────── */
.banner-box {
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: var(--l-r); padding: var(--l-s5) var(--l-s6); margin: var(--l-s5) 0;
}
.banner-box p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 0; }

/* ── COOKIE TABLES ─────────────────────────────────────────── */
.cookie-table-wrap {
  overflow-x: auto; margin: var(--l-s5) 0;
  border-radius: var(--l-r); border: 1px solid rgba(255,255,255,0.08);
}
table.ct { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 560px; }
table.ct th {
  background: rgba(0,229,255,0.1); color: #00e5ff;
  text-align: left; padding: var(--l-s3) var(--l-s4); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid rgba(0,229,255,0.2);
}
table.ct td {
  padding: var(--l-s3) var(--l-s4); border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65); vertical-align: top;
}
table.ct tr:last-child td { border-bottom: none; }
table.ct td:first-child { font-family: monospace; font-size: 0.8rem; color: #e8c96a; white-space: nowrap; }
.badge-type { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.05em; }
.badge-type--tecnica  { background: rgba(0,229,255,0.15); color: #00e5ff; }
.badge-type--analitica { background: rgba(201,168,76,0.15); color: #e8c96a; }
.badge-type--marketing { background: rgba(231,76,60,0.15); color: #f1948a; }

/* ── CATEGORY GRID (terminos) ──────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--l-s4); margin: var(--l-s5) 0; }
.cat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--l-r); padding: var(--l-s5); }
.cat-card__name { font-family: "Bebas Neue", "Impact", sans-serif; font-size: 1rem; letter-spacing: 0.08em; color: #00e5ff; margin-bottom: var(--l-s2); }
.cat-card__desc { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ── MINI FOOTER ───────────────────────────────────────────── */
.footer-legal {
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: var(--l-s8); text-align: center;
}
.footer-legal__copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-bottom: var(--l-s3); }
.footer-legal__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--l-s3) var(--l-s6); }
.footer-legal__links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-legal__links a:hover,
.footer-legal__links a[aria-current="page"] { color: #00e5ff; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .legal-hero { padding: var(--l-s10) var(--l-s4) var(--l-s8); }
  .legal-wrap  { padding: var(--l-s8)  var(--l-s4) var(--l-s12); }
}
