/* =========================
   G-Shark | LEGAL PAGES THEME
   Archivo sugerido: legal.css
========================= */

/* ===== BASE & THEME ===== */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
:root{
  --bg-top:#0D1C2F; --bg-mid:#142A44; --bg-bot:#1B3B5C;
  --accent:#00C2D1; --accent-2:#22E3F0;
  --text-main:#FFFFFF; --text-soft:#B0C7E0; --text-dim:#cfe0f3;
  --glass:rgba(255,255,255,.04); --glass-border:rgba(255,255,255,.10);
  --shadow:rgba(0,0,0,.28);
  --success:#1ec28b; --warning:#f5a524; --danger:#ff6b6b;
}
body{
  font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
  color:var(--text-main);
  line-height:1.75;
  overflow-x:hidden;
  background:
    radial-gradient(120% 130% at 50% 40%, rgba(0,0,0,.04) 0%, rgba(0,0,0,.18) 100%),
    linear-gradient(to bottom,#113251 0%,var(--bg-top) 6%,#112b45 12%,#122f4d 22%,#143357 34%,var(--bg-mid) 46%,#16365c 58%,#173a61 68%,#193e66 78%,var(--bg-bot) 88%,#15324e 100%);
  background-attachment:fixed;
}

/* =========================
   HERO / HEADER (sencillo)
========================= */
.hero-legal{
  padding:44px 24px 18px;
  text-align:center;
  background:radial-gradient(900px 380px at 50% -90px, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 70%);
}
.hero-legal .logo{
  height:140px; width:auto; display:block; margin:0 auto 10px;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.25));
}
.hero-legal h1{
  font-size:clamp(1.8rem,1.3rem + 1.8vw,2.6rem);
  letter-spacing:.2px;
  margin-top:6px;
}
.hero-legal p.meta{
  color:var(--text-soft);
  margin-top:6px;
}

/* =========================
   MAIN WRAPPER
========================= */
.legal-main{
  max-width:960px;
  margin:0 auto;
  padding:30px 24px 64px;
}

/* Card sutil de contenido para mejorar contraste/legibilidad */
.legal-card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--glass-border);
  border-radius:18px;
  box-shadow:0 12px 28px var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  padding:28px clamp(18px,2.5vw,32px);
}

/* =========================
   TYPOGRAPHY
========================= */
h1,h2,h3,h4{font-weight:700; line-height:1.25}
h2{
  font-size:clamp(1.25rem,1rem + .9vw,1.6rem);
  margin:28px 0 12px;
  text-align:center;
  color:#eaf6ff;
}
h3{
  font-size:clamp(1.05rem,1rem + .5vw,1.25rem);
  margin:22px 0 10px;
}
h4{ font-size:1.05rem; margin:14px 0 8px; color:#eaf6ff }

p{ color:var(--text-dim); margin:10px 0 14px; }

a{ color:var(--accent-2); text-decoration:none; border-bottom:1px dashed rgba(34,227,240,.35); transition:color .25s,border-color .25s }
a:hover{ color:#b9fbff; border-color:rgba(255,255,255,.6) }

ul,ol{ margin:10px 0 16px 1.25rem; color:var(--text-dim) }
li{ margin:.35rem 0 }
.list{ list-style:none; margin:10px 0 16px 0; padding:0 }
.list li{
  display:grid; grid-template-columns:14px 1fr; gap:10px; align-items:start;
  padding:8px 0; border-top:1px solid rgba(255,255,255,.06)
}
.list li:first-child{ border-top:none }
.list li::before{
  content:""; width:10px;height:10px; margin-top:.35em; transform:rotate(45deg);
  border:2px solid var(--accent); border-left:none; border-top:none;
  box-shadow:0 0 0 2px rgba(0,194,209,.14) inset;
}

/* Citas / bloques */
blockquote{
  margin:16px 0; padding:14px 18px;
  border-left:3px solid var(--accent);
  background:rgba(255,255,255,.04);
  color:#eaf6ff; border-radius:8px;
}

/* Avisos */
.note, .warning, .danger, .success{
  margin:16px 0; padding:12px 14px; border-radius:12px;
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,.04);
}
.note{ border-color:rgba(255,255,255,.14); }
.warning{ border-color:rgba(245,165,36,.5); background:rgba(245,165,36,.12) }
.danger{ border-color:rgba(255,107,107,.5); background:rgba(255,107,107,.12) }
.success{ border-color:rgba(30,194,139,.5); background:rgba(30,194,139,.12) }

/* Details / Summary (FAQ legal) */
details{
  margin:12px 0; border:1px solid var(--glass-border); border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  overflow:hidden;
}
summary{
  cursor:pointer; padding:14px 16px; font-weight:700; list-style:none; color:#eaf6ff;
  display:flex; align-items:center; gap:10px;
}
summary::-webkit-details-marker{display:none}
details[open] summary{ background:rgba(255,255,255,.04) }
details > div{ padding:14px 16px; color:var(--text-dim) }

/* Tablas */
table{
  width:100%; border-collapse:collapse; margin:16px 0; font-size:.98rem;
  background:rgba(255,255,255,.03); border:1px solid var(--glass-border); border-radius:12px; overflow:hidden
}
thead th{ text-align:left; color:#eaf6ff; background:rgba(0,194,209,.08) }
th,td{ padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.06) }
tbody tr:hover{ background:rgba(255,255,255,.04) }

/* Código inline */
code,kbd{
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.92em; background:rgba(255,255,255,.06); color:#d9faff;
  padding:.12em .38em; border-radius:6px; border:1px solid var(--glass-border)
}

/* =========================
   FOOTER + ENLACES LEGALES
========================= */
footer{ padding:34px 20px; text-align:center; color:var(--text-soft) }
.footer-legal{
  margin-top:18px; display:flex; justify-content:center; gap:14px; flex-wrap:wrap
}
.footer-legal .legal-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; font-size:.92rem; font-weight:600;
  color:var(--text-soft); text-decoration:none;
  background:rgba(13,28,47,.45);
  border:1px solid var(--glass-border); border-radius:999px;
  box-shadow:0 8px 20px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.footer-legal .legal-btn:hover{
  color:#e7fbff; transform:translateY(-2px);
  background:rgba(0,194,209,.10); border-color:rgba(0,194,209,.35);
  box-shadow:0 12px 28px rgba(0,0,0,.25);
}
.footer-legal .legal-btn:focus-visible{
  outline:none; box-shadow:0 0 0 4px rgba(0,194,209,.18)
}

/* =========================
   UTILS
========================= */
.container-narrow{ max-width:760px; margin:0 auto }
.center{text-align:center}
.mt-8{margin-top:8px} .mt-12{margin-top:12px} .mt-16{margin-top:16px} .mt-24{margin-top:24px}
.mb-8{margin-bottom:8px} .mb-12{margin-bottom:12px} .mb-16{margin-bottom:16px} .mb-24{margin-bottom:24px}

/* =========================
   REVEAL ON SCROLL (opcional)
========================= */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s, transform .6s}
.reveal.visible{opacity:1; transform:none}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:992px){
  .hero-legal .logo{height:120px}
}
@media (max-width:768px){
  .legal-main{ padding:22px 18px 56px }
  .hero-legal{ padding:32px 16px 14px }
}

/* =========================
   PRINT (mejora legibilidad)
========================= */
@media print{
  body{ background:#fff; color:#000 }
  .hero-legal, footer{ display:none }
  .legal-main{ max-width:100%; padding:0; }
  .legal-card{ box-shadow:none; border:1px solid #ddd; background:#fff; color:#000 }
  a{ color:#000; border:none; text-decoration:underline }
}