/* ═══════════════════════════════════════════════════════════
   LEGAL — общие стили для страниц /pages/legal/*.html
   (контакты, terms, privacy, AML/KYC, FAQ, provably-fair,
   responsible-gaming)
═══════════════════════════════════════════════════════════ */

.legal-page { max-width: 820px; margin: 32px auto; padding: 0 24px; }

.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-mute); font-size: 13px; text-decoration: none;
  margin-bottom: 18px;
}
.legal-back:hover { color: var(--accent); }

.legal-title {
  font-size: 28px; font-weight: 900;
  color: var(--text); letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.legal-sub {
  font-size: 13px; color: var(--text-mute);
  margin-bottom: 26px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 14px;
  padding: 28px 30px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.legal-card p { margin: 0 0 14px; }
.legal-card p:last-child { margin: 0; }
.legal-card a { color: var(--accent); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-card strong { color: var(--text); font-weight: 700; }

.legal-card h2 {
  font-size: 17px; font-weight: 800; color: var(--text);
  margin: 28px 0 12px; letter-spacing: -0.2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h2 .num {
  display: inline-block; min-width: 26px;
  color: var(--accent); font-weight: 900; margin-right: 4px;
}
.legal-card h3 {
  font-size: 14px; font-weight: 800; color: var(--text);
  margin: 18px 0 8px; letter-spacing: -0.1px;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 14px; padding-left: 20px;
  list-style: none;
}
.legal-card ul li,
.legal-card ol li {
  position: relative; padding-left: 6px; margin-bottom: 6px;
}
.legal-card ul li::before {
  content: ''; position: absolute; left: -14px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.55);
}
.legal-card ol { counter-reset: legal-ol; }
.legal-card ol li::before {
  counter-increment: legal-ol;
  content: counter(legal-ol) '.';
  position: absolute; left: -20px; top: 0;
  color: var(--accent); font-weight: 800;
}

.legal-card .lead {
  font-size: 13px; color: var(--text-mute); font-style: italic;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 0 8px 8px 0;
  margin: 0 0 18px;
}

/* ── Контакты / responsible-gaming — компактный card-padding ── */
.legal-card--compact { padding: 24px; }

/* ── Provably-fair: акцентные маркеры списка ── */
.legal-card--pf ul {
  display: flex; flex-direction: column; gap: 12px;
}
.legal-card--pf ul li::before {
  left: -16px; top: 9px;
  width: 7px; height: 7px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

/* ── FAQ-аккордеон (legal/faq.html) ── */
.legal-card--faq {
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  line-height: 1.65;
}
.faq-item {
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.10);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s;
}
.faq-item[open] {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.32);
}
.faq-q {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 700;
  color: var(--text);
  transition: color 0.15s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-item[open] .faq-q { color: var(--accent); }
.faq-chev {
  margin-left: auto; flex-shrink: 0;
  color: var(--text-mute);
  transition: transform 0.25s, color 0.18s;
}
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  padding: 0 18px 14px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}
.faq-a a { color: var(--accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }
