/* Защита от горизонтального скролла */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Адаптация к теме сайта */
.bg-light {
  background-color: var(--light-card) !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(0,0,0,0.1);
}

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

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

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

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

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

.terms-content p {
  margin-bottom: 1rem;
}

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

.terms-content li {
  margin-bottom: 0.75rem;
}

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

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

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

.table-responsive {
  margin: 2rem 0;
}

.table {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.1);
}

.table thead {
  background: var(--light-card);
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .terms-content h1 {
    font-size: 2rem;
  }
  
  .terms-content h2 {
    font-size: 1.5rem;
  }
}