/* Base styling for legal document */
.card {
  color: #000 !important;
}

.card.bg-dark.text-light,
.card.bg-dark.text-light *,
.card.bg-dark.text-light .card-title,
.card.bg-dark.text-light .card-text {
  color: #fff !important;
}

.card.bg-light.text-dark,
.card.bg-light.text-dark * {
  color: #000 !important;
}

.bg-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.terms-section {
  margin-bottom: 3rem;
}

.terms-section h2 {
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.terms-section h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.terms-section p {
  line-height: 1.8;
  color: var(--text-secondary);
}

.terms-section ul,
.terms-section ol {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.terms-section ul li,
.terms-section ol li {
  margin-bottom: 0.75rem;
}

.update-notice {
  background: var(--dark-card);
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}

.important-notice {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

.subsection {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.terms-toc {
  background: var(--dark-card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 3rem;
}

.terms-toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.terms-toc ul li {
  margin-bottom: 0.5rem;
}

.terms-toc a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.terms-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .subsection {
    margin-left: 0.75rem;
  }
  
  .terms-section h2 {
    font-size: 1.5rem;
  }
  
  .terms-section h3 {
    font-size: 1.25rem;
  }
}