/* === DoraBox — Legal Stylesheet (Privacy Policy & Terms of Service) === */
.legal-page {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.legal-page .navbar {
  background-color: #1D1B22;
}

/* Legal header — MUST be <header> or <div>, never <section> */
.legal-page .legal-header {
  background: linear-gradient(135deg, #1D1B22 0%, #3D2A36 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-page .legal-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 85, 61, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.legal-page .legal-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.legal-page .legal-header .legal-date {
  font-size: 0.95rem;
  color: #B0ADA5;
  position: relative;
  z-index: 1;
}

.legal-page .legal-header .legal-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.93rem;
  color: #E2553D;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}

.legal-page .legal-header .legal-back:hover {
  color: #C94A34;
}

/* TOC */
.legal-page .legal-toc {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.toc {
  background-color: #F9F7F3;
  border-radius: 12px;
  padding: 32px 36px;
}

.toc h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1D1B22;
  margin-bottom: 16px;
}

.toc ol {
  list-style-position: inside;
  columns: 2;
  column-gap: 32px;
}

.toc ol li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.toc ol li a {
  color: #6B6770;
  transition: color 0.2s ease;
}

.toc ol li a:hover {
  color: #E2553D;
}

/* Legal content */
.legal-page .legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.legal-page .legal-content section {
  margin-bottom: 48px;
}

.legal-page .legal-content section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1D1B22;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E5E0D9;
}

.legal-page .legal-content section p {
  font-size: 1rem;
  color: #3A3640;
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-page .legal-content section ul {
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-page .legal-content section ul li {
  font-size: 1rem;
  color: #3A3640;
  line-height: 1.85;
  margin-bottom: 6px;
}

.legal-page .legal-content section strong {
  color: #1D1B22;
  font-weight: 700;
}

/* === SCOPE ISOLATION — prevent homepage section styles from leaking into legal pages === */
.legal-page .legal-content section {
  background-color: transparent !important;
  color: #3A3640 !important;
}

/* Legal footer */
.legal-page .legal-footer {
  text-align: center;
  padding: 30px 24px;
  border-top: 1px solid #E5E0D9;
  background-color: #F9F7F3;
}

.legal-page .legal-footer p {
  font-size: 0.88rem;
  color: #6B6770;
  margin-bottom: 8px;
}

.legal-page .legal-footer a {
  color: #E2553D;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-page .legal-footer a:hover {
  color: #C94A34;
}

/* TOC responsive */
@media (max-width: 768px) {
  .legal-page .legal-header h1 {
    font-size: 1.8rem;
  }
  .toc ol {
    columns: 1;
  }
  .legal-page .legal-content section h2 {
    font-size: 1.2rem;
  }
}
