
/* =========================================================
   PÁGINAS LEGALES · Martha Saldaña
   ========================================================= */

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 8%, rgba(14, 177, 251, 0.10), transparent 30rem),
    radial-gradient(circle at 10% 30%, rgba(121, 12, 244, 0.08), transparent 28rem),
    #080b12;
  color: #f5f7fb;
}

.legal-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 48px;
  color: #9fdcff;
  text-decoration: none;
  font-size: 0.95rem;
}

.legal-back:hover { text-decoration: underline; }

.legal-header {
  padding-bottom: 30px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.legal-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  color: #9fdcff;
}

.legal-header h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.02;
}

.legal-updated {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: .9rem;
}

.legal-content {
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}

.legal-content section { margin: 0 0 38px; }

.legal-content h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.legal-content h3 {
  margin: 24px 0 10px;
  color: #fff;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content ul { margin: 0 0 14px; }

.legal-content ul { padding-left: 1.3rem; }

.legal-content a { color: #9fdcff; }

.legal-note {
  padding: 20px 22px;
  border: 1px solid rgba(159,220,255,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: .92rem;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: left;
  vertical-align: top;
}

.legal-table th { color: #fff; }

.legal-footer {
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.58);
  font-size: .9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 22px auto 8px;
}

.footer-legal a {
  color: inherit;
  font-size: .88rem;
  text-decoration: none;
  opacity: .72;
}

.footer-legal a:hover { opacity: 1; }

@media (max-width: 560px) {
  .legal-shell {
    width: min(100% - 28px, 920px);
    padding-top: 30px;
  }

  .legal-back { margin-bottom: 34px; }
}

/* Footer legal · tres posiciones */
.footer-legal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 760px);
  margin: 22px auto 8px;
  gap: 18px;
}
.footer-legal a,
.footer-legal .cookie-settings-link {
  margin: 0; padding: 0; color: inherit; font: inherit;
  font-size: .88rem; line-height: 1.4; text-decoration: none; opacity: .72;
}
.footer-legal a:hover,
.footer-legal .cookie-settings-link:hover { opacity: 1; }
.footer-legal-left { text-align: left; }
.footer-legal-center { justify-self: center; text-align: center; }
.footer-legal-right { text-align: right; }
@media (max-width: 420px) {
  .footer-legal { gap: 10px; }
  .footer-legal a, .footer-legal .cookie-settings-link { font-size: .78rem; }
}


/* =========================================================
   FOOTER LEGAL · discreto y centrado
   ========================================================= */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 22px auto 8px;
  gap: 6px;
}

.footer-legal a,
.footer-legal .cookie-settings-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.38);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal .cookie-settings-link:hover {
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.footer-legal a:not(:last-child)::after,
.footer-legal .cookie-settings-link::after {
  content: "·";
  display: inline-block;
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.footer-legal-left,
.footer-legal-center,
.footer-legal-right {
  justify-self: auto;
  text-align: center;
}

@media (max-width: 420px) {
  .footer-legal {
    gap: 5px;
  }

  .footer-legal a,
  .footer-legal .cookie-settings-link {
    font-size: 0.68rem;
  }

  .footer-legal a:not(:last-child)::after,
  .footer-legal .cookie-settings-link::after {
    margin-left: 5px;
  }
}
