/* ─── LAMA Legal pages (Privacy + Terms) ─── */

.legal-page {
  max-width: 1100px;
  margin: 80px auto 60px;
  padding: 0 24px;
  color: var(--text, #fff);
}

/* Hero */
.legal-hero {
  text-align: center;
  padding: 48px 0 32px;
}
.legal-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #60a5fa;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.25);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
  background: linear-gradient(180deg, #fff 0%, #c7c7c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-lead {
  font-size: 17px;
  color: var(--text-muted, #71717A);
  max-width: 600px;
  margin: 0 auto 18px;
  line-height: 1.5;
}
.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted, #71717A);
  font-weight: 600;
}
.legal-meta-dot { opacity: 0.5; }

/* Key points (3 cards under hero) */
.legal-keypoints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 8px 0 48px;
}
.kp {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(20,20,20,0.7) 0%, rgba(10,10,10,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.kp:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}
.kp-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kp-icon.green  { background: rgba(16,185,129,0.14); color: #34d399; box-shadow: inset 0 0 0 1px rgba(16,185,129,0.22); }
.kp-icon.blue   { background: rgba(37,99,235,0.14); color: #60a5fa; box-shadow: inset 0 0 0 1px rgba(37,99,235,0.22); }
.kp-icon.purple { background: rgba(139,92,246,0.14); color: #a78bfa; box-shadow: inset 0 0 0 1px rgba(139,92,246,0.22); }
.kp-icon svg { stroke: currentColor; }
.kp-text { min-width: 0; }
.kp-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #fff);
  margin-bottom: 4px;
}
.kp-desc {
  font-size: 12.5px;
  color: var(--text-muted, #71717A);
  line-height: 1.5;
}

/* Layout: TOC + content */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.legal-toc {
  position: sticky;
  top: 90px;
  align-self: flex-start;
}
.legal-toc-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted, #71717A);
  margin-bottom: 12px;
  padding-left: 12px;
}
.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #71717A);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: color 0.18s, border-color 0.18s, background 0.22s;
}
.legal-toc a:hover {
  color: var(--text, #fff);
  background: rgba(255,255,255,0.03);
}
.legal-toc a.active {
  color: #60a5fa;
  border-left-color: #2563EB;
  background: rgba(37,99,235,0.08);
}

/* Content */
.legal-content { min-width: 0; }
.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  scroll-margin-top: 90px;
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #fff);
  margin: 0 0 14px;
}
.legal-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.22);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.legal-section p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-soft, #94a3b8);
  margin: 0 0 12px;
}
.legal-section p strong { color: var(--text, #fff); font-weight: 700; }
.legal-section a {
  color: #60a5fa;
  text-decoration: none;
  border-bottom: 1px dashed rgba(96,165,250,0.4);
  transition: color 0.18s, border-color 0.18s;
}
.legal-section a:hover {
  color: #93c5fd;
  border-bottom-color: rgba(147,197,253,0.7);
}
.legal-section code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #93c5fd;
}

/* Lists */
.legal-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.legal-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft, #94a3b8);
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.legal-list strong { color: var(--text, #fff); font-weight: 700; }

.legal-list-cross li::before {
  content: "✕";
  width: auto; height: auto;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
  top: 7px;
  left: 6px;
}

/* Cards inside section (for "what we collect") */
.legal-card {
  background: rgba(20,20,20,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 10px;
}
.legal-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.legal-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Note */
.legal-note {
  font-size: 12.5px;
  color: var(--text-muted, #71717A);
  font-style: italic;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(96,165,250,0.5);
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
}

/* Contact button */
.legal-contact {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff !important;
  border: none !important;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(37,99,235,0.32), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: filter 0.18s, transform 0.15s;
}
.legal-contact:hover { filter: brightness(1.08); border-color: transparent; }
.legal-contact:active { transform: scale(0.98); }
.legal-contact svg { stroke: currentColor; }

/* Footnote nav */
.legal-footnote {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: right;
}
.legal-footnote a {
  color: var(--text-muted, #71717A) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.18s;
}
.legal-footnote a:hover { color: #60a5fa !important; }

/* Mobile */
@media (max-width: 900px) {
  .legal-page { margin: 60px auto 40px; padding: 0 16px; }
  .legal-hero { padding: 24px 0 16px; }
  .legal-keypoints { grid-template-columns: 1fr; gap: 8px; margin-bottom: 28px; }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .legal-toc {
    position: static;
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 18px;
  }
  .legal-toc nav { max-height: 220px; overflow-y: auto; }
  .legal-toc a { padding: 7px 10px; font-size: 12.5px; }
  .legal-section { padding: 22px 0; }
  .legal-section h2 { font-size: 18px; gap: 10px; }
  .legal-section p { font-size: 14px; }
}
