/* ============================================================
   Legal pages (Privacy Policy, Terms of Service)
   ============================================================ */

body[data-page="legal"] .legal-hero {
  padding: 90px 0 50px;
}

.legal-section {
  padding: 60px 0 100px;
}

/* Table of contents */
.legal-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid #e2e8f0;
  padding-left: 20px;
}

.legal-toc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 10px;
}

.legal-toc a {
  font-size: 0.88rem;
  color: #475569;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s;
}

.legal-toc a:hover {
  color: #1565c0;
}

/* Article content */
.legal-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
  max-width: 720px;
}

.legal-intro {
  font-size: 1.08rem;
  color: #475569;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 44px;
  margin-bottom: 14px;
  scroll-margin-top: 100px;
}

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

.legal-content h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 1.3rem;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #1565c0;
  text-decoration: underline;
  text-decoration-color: rgba(21, 101, 192, 0.3);
}

.legal-content a:hover {
  text-decoration-color: #1565c0;
}

.legal-content code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.legal-contact-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  line-height: 1.9;
}

.legal-contact-block a {
  color: #1565c0;
}

@media (max-width: 991.98px) {
  .legal-toc {
    display: none;
  }
}
