/* Base styles for legal document */
.legal-document {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  color: var(--text-primary);
}

.legal-document h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 1rem;
}

.legal-document h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.legal-document h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-document h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.legal-document p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-document ul,
.legal-document ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-document li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.legal-document strong {
  color: var(--primary-color);
  font-weight: 600;
}

.legal-notice {
  background: var(--card-bg);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.legal-notice p {
  margin-bottom: 0;
}

.update-date {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Adapt to theme */
@media (prefers-color-scheme: dark) {
  .legal-document {
    background: transparent;
  }
}

.section-number {
  color: var(--primary-color);
  font-weight: 700;
}

/* Table styles for legal documents */
.legal-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  color: var(--text-primary);
}

.legal-table th {
  background: var(--card-bg);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
}

.legal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.legal-table tr:hover {
  background: var(--card-bg);
}