/* ============================================
   Legal Pages - Additional Styles
   ============================================ */

.legal-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.legal-content a {
  color: var(--color-secondary);
}

.legal-content strong {
  color: var(--color-text);
}

/* Table of Contents */
.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 24px 32px;
  margin-bottom: 40px;
}

.legal-toc h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.legal-toc li {
  margin-bottom: 6px;
}

.legal-toc a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.legal-toc a:hover {
  color: var(--color-secondary);
}

/* Contact box within legal pages */
.legal-contact {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 24px 28px;
  margin-top: 40px;
}

.legal-contact h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.legal-contact p {
  margin-bottom: 8px;
}

/* FAQ Styles (used on support page) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(114, 9, 183, 0.3);
}

.faq-question {
  width: 100%;
  background: var(--color-surface);
  border: none;
  color: var(--color-text);
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-family);
}

.faq-question:hover {
  background: var(--color-surface-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Support contact section */
.support-contact {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 48px 32px;
  max-width: 600px;
  margin: 60px auto 0;
}

.support-contact h3 {
  margin-bottom: 12px;
}

.support-contact p {
  margin-bottom: 24px;
}

.support-contact .btn {
  display: inline-flex;
}
