/* ===== Legal Pages Stylesheet ===== */
/* Shared by privacy.html and terms-of-service.html */

.legal-page {
  background: #faf8f5;
  color: #18181b;
}

.legal-page .site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #0d1f3c;
}

/* ===== Legal Hero ===== */
.legal-hero {
  background: #0d1f3c;
  color: #ffffff;
  padding: 140px 0 80px;
  text-align: center;
}

.legal-hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-hero p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.legal-hero .effective-date {
  display: inline-block;
  margin-top: 16px;
  background: rgba(242, 95, 76, 0.15);
  color: #f25f4c;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Legal Content Layout ===== */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

/* ===== Table of Contents ===== */
.toc {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 48px;
}

.toc h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d1f3c;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e4ebe4;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 6px;
}

.toc ol li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #334155;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.toc ol li a::before {
  content: counter(toc-counter) ".";
  font-weight: 700;
  color: #f25f4c;
  min-width: 28px;
}

.toc ol li a:hover {
  background: #fef2f0;
  color: #0d1f3c;
}

/* ===== Legal Section ===== */
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e4ebe4;
}

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

.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d1f3c;
  margin-bottom: 16px;
  padding-top: 8px;
}

.legal-section p {
  color: #3f3f46;
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 20px 24px;
  color: #3f3f46;
  line-height: 1.75;
}

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.legal-section strong {
  color: #18181b;
}

/* ===== Back to Top / Home ===== */
.legal-back {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e4ebe4;
}

.legal-back a {
  display: inline-block;
  padding: 14px 36px;
  background: #f25f4c;
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.2s;
}

.legal-back a:hover {
  background: #0d1f3c;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .legal-hero {
    padding: 110px 0 56px;
  }

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

  .legal-content {
    padding: 40px 20px 48px;
  }

  .toc {
    padding: 24px 20px;
  }

  .toc ol li a {
    font-size: 0.9rem;
  }

  .legal-section h2 {
    font-size: 1.2rem;
  }
}
