/* Адаптация к теме (для светлого сайта) */
.bg-dark {
  background-color: var(--light-card) !important;
  color: var(--text-dark) !important;
}

/* Типографика для юридического документа */
.terms-content {
  line-height: 1.8;
  color: var(--text-primary);
}

.terms-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.terms-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

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

.terms-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.terms-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

.terms-content ul li,
.terms-content ol li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.terms-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.last-updated {
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.important-notice {
  padding: 1.5rem;
  background: rgba(var(--primary-rgb, 255, 107, 53), 0.1);
  border-left: 4px solid var(--primary);
  margin: 2rem 0;
  border-radius: 4px;
}

.important-notice p {
  margin: 0;
  color: var(--text-primary);
}

/* Таблицы для юридических документов */
.terms-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.terms-table th,
.terms-table td {
  padding: 0.75rem;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
  color: var(--text-secondary);
}

.terms-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  text-align: left;
}