/* ── LEGAL PAGES (Privacy Policy & Terms of Service) ── */

.legal-hero {
  background: #0f172a;
  padding: 60px 24px 52px;
  text-align: center;
}

.legal-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.legal-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}

.legal-hero p {
  font-size: .93rem;
  color: rgba(255,255,255,.5);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Layout ── */
.legal-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 28px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── TOC sidebar ── */
.legal-toc {
  position: sticky;
  top: 88px;
}

.legal-toc-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
  padding-left: 12px;
}

.legal-toc a {
  display: block;
  font-size: .82rem;
  color: #64748b;
  text-decoration: none;
  padding: 7px 12px;
  border-left: 2px solid #e2e8f0;
  border-radius: 0 6px 6px 0;
  transition: color .12s, border-color .12s, background .12s;
  line-height: 1.4;
}

.legal-toc a:hover {
  color: #2563eb;
  border-color: #93c5fd;
  background: #eff6ff;
}

.legal-updated {
  margin-top: 20px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: .75rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ── Content ── */
.legal-body { min-width: 0; }

.legal-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.025em;
  margin-bottom: 14px;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2 .sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-section h3 {
  font-size: .95rem;
  font-weight: 600;
  color: #1e293b;
  margin: 20px 0 8px;
}

.legal-section p {
  font-size: .915rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-section li {
  font-size: .915rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-highlight {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .875rem;
  color: #1e40af;
  line-height: 1.65;
  margin: 16px 0;
}

.legal-highlight strong { color: #1e3a8a; }

.legal-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  margin-top: 16px;
}

.legal-contact-card p {
  margin: 0;
  font-size: .875rem;
}

.legal-contact-card a {
  color: #2563eb;
  text-decoration: none;
}

.legal-contact-card a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 20px 60px;
  }

  .legal-toc { display: none; }
}
