/* Общие стили страниц документов: consent.html, privacy.html */
:root {
  --bg: #0a0c0f;
  --surface: #111318;
  --surface2: #181c23;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.15);
  --border-accent: rgba(0,255,136,0.3);
  --accent: #00ff88;
  --accent-soft: rgba(0,255,136,0.1);
  --text: #e8eaf0;
  --text-dim: #9ca3af;
  --muted: #6b7280;
  --font-display: 'Tektur', sans-serif;
  --font-body: 'Golos Text', sans-serif;
  --font-mono: 'Golos Text', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  -webkit-user-select: none;
  user-select: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 100;
}

a { color: var(--accent); }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.back-link:hover { color: var(--accent); border-color: var(--accent); }


.doc-eyebrow {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  text-wrap: balance;
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}


.doc-card { margin-top: 40px; }
.doc-card p, .doc-card li { text-wrap: pretty; }
.doc-card p { margin-bottom: 18px; }
.doc-card p:last-child { margin-bottom: 0; }

.doc-card .lead {
  padding: 20px 22px;
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

.doc-card h2 {
  margin: 32px 0 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc-card h2:first-child { margin-top: 0; }

.doc-card ul {
  margin: 0 0 18px;
  list-style: none;
}
.doc-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
.doc-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}


@media (max-width: 600px) {
  body { font-size: 16px; }
  .page { padding: 24px 16px 56px; }
  .doc-card .lead { padding: 16px; }
}

.doc-meta { flex-direction: column; gap: 4px; }

/* Подвал документа — как на profit.ooo */
.doc-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.doc-footer .back-link { margin-bottom: 16px; }

/* Таблицы в документах: определения, перечни, реквизиты */
.doc-table-wrap {
  margin: 0 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.doc-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.doc-card th,
.doc-card td {
  padding: 12px 16px;
  border: 1px solid var(--border-bright);
  text-align: left;
  vertical-align: top;
  text-wrap: pretty;
}
.doc-card th {
  background: var(--surface2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.doc-card td { background: var(--surface); }
.doc-defs td:first-child {
  width: 34%;
  background: var(--surface2);
  font-weight: 600;
  color: var(--text);
}
.doc-card td[colspan] {
  background: var(--surface2);
  font-weight: 600;
}

@media (max-width: 600px) {
  .doc-card table { font-size: 14px; }
  .doc-card th,
  .doc-card td { padding: 10px 12px; }
  .doc-table-wrap { margin-left: -4px; margin-right: -4px; }
  .doc-defs td:first-child { width: 38%; }
}
