/* Estilos compartidos por las paginas legales (privacidad, eliminar-cuenta).
   Mismo lenguaje visual que la landing, pero sin el video de fondo: son
   paginas de lectura larga y no vale la pena costarle 1,3 MB a quien solo
   viene a leer la politica. */

:root {
  --orange: #F5751F;
  --navy:   #1B3A6B;
  --ink:    #ffffff;
  --bg:     #070B12;
  --panel:  rgba(15, 21, 32, .72);
  --line:   rgba(255, 255, 255, .12);
  --muted:  rgba(255, 255, 255, .66);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(27, 58, 107, .38) 0%, rgba(7, 11, 18, 0) 62%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Cabecera ---------- */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1.1rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.legal-header .brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
}
.legal-header .brand img { height: 38px; width: auto; display: block; }
.legal-header .brand span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 520px) { .legal-header .brand span { display: none; } }

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease;
}
.back-link:hover { color: var(--orange); }

/* ---------- Cuerpo ---------- */
.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.1rem, 5vw, 2rem) 5rem;
}

.legal-main h1 {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .005em;
}
.updated {
  margin-top: .85rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}
.lead {
  margin-top: 1.6rem;
  font-size: clamp(.98rem, 2.3vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, .88);
}

.legal-main h2 {
  margin-top: 3rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .01em;
}
.legal-main h3 {
  margin-top: 1.9rem;
  font-size: .96rem;
  font-weight: 600;
  color: var(--orange);
}
.legal-main p { margin-top: 1rem; color: rgba(255, 255, 255, .84); font-weight: 300; }
.legal-main ul, .legal-main ol { margin: 1rem 0 0 1.25rem; color: rgba(255, 255, 255, .84); font-weight: 300; }
.legal-main li { margin-top: .55rem; padding-left: .3rem; }
.legal-main li::marker { color: var(--orange); }
.legal-main strong { font-weight: 600; color: #fff; }
.legal-main a { color: var(--orange); text-decoration: none; border-bottom: 1px solid rgba(245, 117, 31, .4); }
.legal-main a:hover { border-bottom-color: var(--orange); }

/* ---------- Tabla de datos ---------- */
.tabla-wrap { margin-top: 1.4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 440px; }
th, td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th {
  background: rgba(27, 58, 107, .3);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
td { color: rgba(255, 255, 255, .82); font-weight: 300; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Avisos ---------- */
.nota {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: rgba(245, 117, 31, .08);
}
.nota p { margin-top: 0; }
.nota p + p { margin-top: .8rem; }

/* Marcador de dato que falta por confirmar. Salta a la vista a proposito:
   si llega a produccion sin llenar, se nota. */
.pend {
  color: var(--orange);
  font-weight: 600;
  border-bottom: 1px dashed var(--orange);
  cursor: help;
}

/* ---------- Canales de contacto ---------- */
.canales { margin-top: 1.6rem; display: grid; gap: .85rem; }
.canal {
  display: flex;
  align-items: center;
  gap: .95rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: #fff;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.canal:hover { border-color: var(--orange); transform: translateY(-2px); }
.canal svg { width: 22px; height: 22px; flex: none; color: var(--orange); }
.canal b { display: block; font-size: .92rem; font-weight: 600; }
.canal small { display: block; margin-top: .15rem; font-size: .78rem; font-weight: 300; color: var(--muted); }

/* ---------- Formulario ---------- */
.form-card {
  margin-top: 1.8rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.campo { margin-top: 1.25rem; }
.campo:first-child { margin-top: 0; }
.campo label {
  display: block;
  margin-bottom: .45rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.campo .ayuda {
  display: block;
  margin-top: .4rem;
  font-size: .76rem;
  font-weight: 300;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(7, 11, 18, .6);
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 300;
  transition: border-color .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { resize: vertical; min-height: 92px; }
select option { background: #0f1520; color: #fff; }

.fila { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .fila { grid-template-columns: 1fr; } }

.check { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.5rem; }
.check input { width: 18px; height: 18px; flex: none; margin-top: .22rem; accent-color: var(--orange); }
.check label {
  margin: 0;
  font-size: .85rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, .84);
}

.btn {
  margin-top: 1.7rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.error {
  margin-top: .9rem;
  padding: .7rem .95rem;
  border-radius: 10px;
  background: rgba(220, 60, 60, .14);
  border: 1px solid rgba(220, 60, 60, .4);
  font-size: .84rem;
  font-weight: 400;
  color: #ffb4b4;
}
.error[hidden] { display: none; }

/* ---------- Pie ---------- */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.1rem, 5vw, 3rem) 2.5rem;
  text-align: center;
}
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; }
.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.legal-footer a:hover { color: var(--orange); }
.legal-footer p { margin-top: 1.2rem; font-size: .72rem; font-weight: 300; color: rgba(255, 255, 255, .42); }

@media (prefers-reduced-motion: reduce) {
  .canal:hover, .btn:hover { transform: none; }
}
