/* ══════════════════════════════════════════════════════════════════
   legal.css — CSS compartido por privacidad.php, legal.php y cookies.php
   ══════════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero { padding: 140px 0 72px; background: var(--dark); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 15% 60%, rgba(18,227,188,.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 20px;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); display: block; }
.hero h1 { font-size: clamp(2.2rem,4vw,3.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; color: var(--white); margin-bottom: 16px; }
.hero-meta { font-size: .82rem; color: rgba(255,255,255,.35); display: flex; gap: 24px; flex-wrap: wrap; }
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ── LAYOUT ── */
.legal-wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 72px 0 112px; align-items: start; }

/* ── ÍNDICE LATERAL ── */
.legal-index { position: sticky; top: 110px; }
.legal-index-title { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-bottom: 16px; }
.legal-index ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-index ul a { font-size: .8rem; color: rgba(9,16,14,.5); display: block; padding: 7px 12px; border-radius: var(--r-sm); transition: all .2s; line-height: 1.4; }
.legal-index ul a:hover { color: var(--ink); background: var(--off); }
.legal-index ul a.active { color: var(--mint-dim); background: var(--mint-pale); font-weight: 600; }

/* ── CONTENIDO LEGAL ── */
.legal-content { min-width: 0; }
.legal-section { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-section-num { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-dim); margin-bottom: 12px; }
.legal-section-num::before { content: ''; width: 20px; height: 2px; background: var(--mint); display: block; }
.legal-section h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-bottom: 20px; line-height: 1.2; }
.legal-section h3 { font-size: 1rem; font-weight: 800; color: var(--ink); margin: 28px 0 12px; letter-spacing: -.02em; }
.legal-section p { font-size: .9rem; color: var(--mid); line-height: 1.85; margin-bottom: 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section p a { color: var(--mint-dim); text-decoration: underline; transition: color .2s; }
.legal-section p a:hover { color: var(--mint); }
.legal-section strong { color: var(--ink); font-weight: 700; }

/* ── TABLA RESPONSABLE ── */
.info-card { background: var(--off); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 28px 32px; margin-bottom: 24px; }
.info-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-label { font-weight: 700; color: var(--ink); min-width: 150px; flex-shrink: 0; }
.info-value { color: var(--mid); }
.info-value a { color: var(--mint-dim); text-decoration: underline; }

/* ── LISTAS ── */
.legal-list { list-style: none; margin: 16px 0; }
.legal-list li { font-size: .9rem; color: var(--mid); line-height: 1.8; padding-left: 24px; position: relative; margin-bottom: 10px; }
.legal-list li:last-child { margin-bottom: 0; }
.legal-list li::before { content: '→'; color: var(--mint); font-weight: 700; position: absolute; left: 0; top: 0; line-height: 1.8; }

/* ── DERECHOS GRID ── */
.derechos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.derecho-item { background: var(--off); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; transition: border-color .2s; }
.derecho-item:hover { border-color: var(--mint); }
.derecho-item strong { display: block; font-size: .88rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.derecho-item span { font-size: .8rem; color: var(--mid); line-height: 1.6; }

/* ── AVISO ACTUALIZACIÓN ── */
.legal-notice { background: var(--mint-pale); border: 1.5px solid rgba(18,227,188,.25); border-radius: var(--r-md); padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; }
.legal-notice svg { width: 18px; height: 18px; stroke: var(--mint-dim); fill: none; stroke-width: 1.5; stroke-linecap: round; flex-shrink: 0; margin-top: 2px; }
.legal-notice p { font-size: .82rem; color: var(--mid); line-height: 1.7; margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .legal-wrap { padding: 0 24px; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-index { position: static; margin-bottom: 40px; padding: 20px; background: var(--off); border-radius: var(--r-md); }
}
@media (max-width: 600px) {
  .derechos-grid { grid-template-columns: 1fr; }
  .info-row { flex-direction: column; gap: 4px; }
}
