/* Legal Pages Styles */

.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--fg), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-date {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.legal-section h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--fg);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}

.legal-section h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}

.legal-section p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.legal-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.legal-section ul li strong {
  color: var(--fg);
}

.legal-section em {
  color: var(--muted);
  font-style: italic;
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal-section a:hover {
  opacity: 0.8;
}

/* Service Provider List */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.service-item {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 20px;
}

.service-item h4 {
  margin-bottom: 8px;
  color: var(--fg);
}

.service-item p {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.service-item a {
  font-size: 0.85rem;
}

/* Contact Info Box */
.contact-info {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.contact-info p {
  margin-bottom: 8px;
  color: var(--muted);
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: var(--fg);
}

/* Legal Footer Navigation */
.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.legal-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-footer .btn i {
  width: 18px;
  height: 18px;
}

/* Uppercase for emphasis sections */
.legal-section p.emphasis {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Nested lists */
.legal-section ul ul {
  margin-top: 12px;
  margin-bottom: 0;
}

.legal-section ul ul li::before {
  background: var(--muted);
  width: 4px;
  height: 4px;
}

/* Table of Contents (optional enhancement) */
.legal-toc {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}

.legal-toc h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--fg);
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-toc a {
  color: var(--muted);
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--primary);
}

/* Highlighted/Important Boxes */
.legal-important {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.legal-important p {
  color: var(--fg);
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-page {
    padding: 120px 0 60px;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

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

  .legal-section h3 {
    font-size: 1.05rem;
  }

  .legal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-footer .btn {
    justify-content: center;
  }

  .legal-toc ol {
    columns: 1;
  }

  .service-list {
    gap: 16px;
  }

  .service-item {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 0 8px;
  }

  .legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
  }

  .legal-section {
    margin-bottom: 32px;
  }

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

  .contact-info {
    padding: 16px;
  }
}
