/* ============================================
   WESITE - Legal & Text Pages Styles
   ============================================ */

.legal-page {
  background-color: #f8fafc;
  color: #334155;
  padding-top: 100px;
}

.legal-header {
  background: var(--primary-color, #1e3a5f);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.legal-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.legal-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.legal-content {
  max-width: 800px;
  margin: -40px auto 100px;
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.legal-content h2 {
  color: #0f172a;
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 700;
}

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

.legal-content h3 {
  color: #1e293b;
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
}

.legal-content p {
  line-height: 1.8;
  margin-bottom: 24px;
  color: #475569;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
  color: #475569;
}

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

.legal-content strong {
  color: #0f172a;
}

.legal-content a {
  color: var(--accent-color, #3b82f6);
  text-decoration: none;
}

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

/* FAQ Specific Styles */
.faq-container {
  margin-top: 40px;
}

.faq-item-legal {
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 0;
}

.faq-item-legal:last-child {
  border-bottom: none;
}

.faq-question-legal {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question-legal svg {
  transition: transform 0.3s ease;
  color: #64748b;
}

.faq-answer-legal {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  color: #475569;
  line-height: 1.7;
}

.faq-item-legal.active .faq-answer-legal {
  max-height: 500px; /* Arbitrary large number */
  margin-top: 16px;
}

.faq-item-legal.active .faq-question-legal svg {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .legal-content {
    margin: 0 auto 60px;
    padding: 30px 20px;
    border-radius: 0;
  }
  .legal-header h1 {
    font-size: 32px;
  }
}
