/* Rockly Net – страница документов (/terms). Общие стили – в base/layout. */

/* LAYOUT */
.page-wrapper {
  position: relative; z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* Header */
.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 36px; font-weight: 800;
  letter-spacing: -1.5px; margin-bottom: 8px;
  line-height: 1.15;
}

.page-header h1 .gradient {
  background: linear-gradient(135deg, #2F7DFF, #3FC1FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 15px; color: var(--text-secondary);
}

/* Tabs */
.doc-tabs {
  display: flex; gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 40px;
}

.doc-tab {
  flex: 1; padding: 12px;
  text-align: center;
  font-size: 14px; font-weight: 600;
  color: var(--text-dim);
  cursor: pointer; border: none; background: none;
  font-family: 'Outfit', sans-serif;
  border-radius: 8px;
  transition: all 0.2s;
}

.doc-tab:hover { color: var(--text-secondary); }

.doc-tab.active {
  background: var(--accent-glow);
  color: var(--accent);
}

/* Document */
.doc { display: none; }
.doc.active { display: block; animation: fadeIn 0.3s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.doc-meta {
  display: flex; gap: 20px;
  margin-bottom: 32px;
  font-size: 12px; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.doc-meta span {
  display: flex; align-items: center; gap: 6px;
}

/* Content styling */
.doc-content h2 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.5px;
  margin: 36px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

.doc-content h2:first-child {
  margin-top: 0; padding-top: 0; border-top: none;
}

.doc-content p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 16px;
}

.doc-content ul {
  padding-left: 20px; margin-bottom: 16px;
}

.doc-content li {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 6px;
}

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

.doc-content a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
  transition: border-color 0.2s;
}

.doc-content a:hover { border-color: var(--accent); }

.highlight-box {
  padding: 20px 24px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.highlight-box strong { color: var(--accent); }

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-dim); margin-bottom: 14px;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 6px;
}

.toc-list a {
  font-size: 13px; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s;
  display: flex; align-items: center; gap: 8px;
}

.toc-list a::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--text-dim);
  border-radius: 50%;
  flex-shrink: 0;
}

.toc-list a:hover { color: var(--accent); }
.toc-list a:hover::before { background: var(--accent); }

@media (min-width: 769px) {
  .page-wrapper { padding: 56px 40px 80px; }
}

@media (max-width: 768px) {
  .doc-tabs { flex-direction: column; }
}
