/* ==== КАПСУЛА ВОКРУГ ТАБОВ ==== */
.legal-tabs-wrap {
  border: 1px solid rgba(0,0,0,.125);
  border-radius: 9999px;        
  background: #fff;
  padding: 6px 8px;            
  overflow: hidden;
}

.legal-tabs-wrap + .tab-content {
  margin-top: 14px;
}

/* ==== СТРОКА ВКЛАДОК ==== */
.legal-tabs {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;             
  justify-content: center;     
  align-content: center;       
  border: 0 !important;         
  margin: 0;
  padding: 4px 10px;           
  scrollbar-width: none;       
}

@media (max-width: 480px) {
  .legal-tabs {
    flex-wrap: wrap;           
    overflow: visible;          
    white-space: normal;        
    justify-content: center;   
    align-content: center;
    row-gap: .35rem;            
  }
}

.legal-tabs .nav-item { margin: 0; }

/* ==== КНОПКИ-ВКЛАДКИ ==== */
.legal-tabs .nav-link {
  font-size: .95rem;
  padding: .5rem 1rem;

  border: 0 !important;
  border-radius: 9999px !important; 
  background: transparent;
  font-weight: 600;
  line-height: 1;
  color: #0d6efd;

  transition: background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;         
}

@media (max-width: 480px) {
  .legal-tabs .nav-link { font-size: .875rem; }
}

.legal-tabs .nav-link:hover,
.legal-tabs .nav-link:focus {
  background: rgba(13,110,253,.08);
  outline: none;
}

.legal-tabs .nav-link.active {
  background: rgba(13,110,253,.12);
  color: #0d6efd;
  box-shadow: inset 0 0 0 2px rgba(13,110,253,.35);
  border: 0 !important;
  border-radius: 9999px !important;
}

/* ==== КОНТЕНТ ДОКОВ ==== */
.tab-content { background: transparent; }

.doc-shell {
  background: #fff;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .5rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
  overflow: hidden;
}

.doc-shell .doc,
.doc-shell .doc-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}

.doc-shell h1, .doc-shell h2 { margin-top: 1rem; }
.doc-shell ol { padding-left: 1.1rem; }
.doc-shell li { margin: .25rem 0; }
.doc-shell .muted,
.doc-shell .text-muted { color: #6c757d !important; }
.doc-shell * { word-wrap: break-word; }
