/* ─────────────────────────────────────────────────────────────
   LSniper · Legal pages (privacy, terms)
   Hereda tokens, atmósfera, header, footer, animaciones de landing.
   ───────────────────────────────────────────────────────────── */

@import url('/landing.css');

.legal-wrap {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 110px) clamp(22px, 5vw, 40px) clamp(70px, 8vw, 100px);
}

/* Eyebrow — hairline mono, matches .ld-eyebrow */
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-hi);
}
.legal-eyebrow::before,
.legal-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
}

/* Title — display serif, editorial-noir */
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 0 0 14px;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 60px rgba(124, 58, 237, 0.18);
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 48px;
}

/* Section headings — display serif w/ amber hairline accent */
.legal-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 400;
  color: var(--text);
  margin: 56px 0 16px;
  letter-spacing: -0.014em;
  line-height: 1.2;
  position: relative;
  padding-top: 22px;
}
.legal-wrap h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
}

.legal-wrap h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}

.legal-wrap p,
.legal-wrap li {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.legal-wrap ul,
.legal-wrap ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap strong { color: var(--text); font-weight: 500; }

.legal-wrap a {
  color: var(--amber-hi);
  text-decoration: underline;
  text-decoration-color: rgba(216, 180, 254, 0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.legal-wrap a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

.legal-wrap code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(192, 132, 252, 0.05);
  color: var(--amber-hi);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(192, 132, 252, 0.14);
}

/* TOC — liquid glass card with cursor spotlight */
.legal-toc {
  --mx: 50%; --my: 50%;
  position: relative;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(192, 132, 252, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.030) 0%, rgba(255, 255, 255, 0.012) 100%);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  margin: 0 0 48px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 50px -28px rgba(124, 58, 237, 0.45);
  transition: background 0.4s ease, box-shadow 0.45s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.legal-toc:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 0 0 1px rgba(192, 132, 252, 0.10) inset,
    0 24px 60px -28px rgba(124, 58, 237, 0.55);
}
.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-hi);
  margin: 0 0 12px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-toc li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  break-inside: avoid;
}
.legal-toc a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-toc a:hover { color: var(--amber-hi); }

/* Smooth anchor offset so headings clear the floating header */
.legal-wrap h2[id] { scroll-margin-top: 110px; }
