/* Páginas legales públicas — chrome alineado a la landing (sin alterar el texto legal). */

body.legal-page {
  background: var(--paper);
}

.topbar.topbar-legal {
  background: rgba(7, 14, 22, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding: 6.25rem 0 3rem;
}

.legal-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(31, 111, 120, 0.42), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(224, 138, 43, 0.22), transparent 52%),
    linear-gradient(165deg, #060d14 0%, #101d2c 46%, #0a181f 100%);
}

.legal-hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 88%);
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.legal-hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.legal-hero h1 {
  max-width: 42rem;
  margin: 0.35rem 0 0;
  font-size: 2.25rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal-hero .lede {
  margin-top: 0.85rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
}

.legal-hero .legal-meta {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
}

.legal-hero a {
  color: #ffc48a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-main {
  width: min(100% - 2rem, 48rem);
  margin: -1.25rem auto 0;
  padding: 0 0 4rem;
  position: relative;
  z-index: 2;
}

.doc {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.6rem;
}

@media (min-width: 640px) {
  .doc {
    padding: 1.75rem 2rem 2rem;
  }

  .legal-hero h1 {
    font-size: 2.75rem;
  }
}

.doc h2 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.doc h2:first-of-type { margin-top: 0; }

.doc p,
.doc li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.doc ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.85rem;
}

.doc li + li { margin-top: 0.35rem; }

.doc a {
  color: #0369a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc .mt-3 { margin-top: 0.75rem; }
.doc .mt-4 { margin-top: 1rem; }
.doc .text-xs { font-size: 0.75rem; }
.doc .text-slate-500 { color: #64748b; }

.toc {
  margin-bottom: 1.5rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.toc > p {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.toc a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
}

.toc a:hover { color: var(--teal); }

.legal-page .footer a { color: #fff; }
.legal-page .footer a:hover { color: var(--signal); }
