/* ── COOKIE BANNER ──────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #0d0d1f;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 40px rgba(0,0,0,.6);
  animation: slideUp .35s ease;
}

#cookie-banner.cb-hide {
  animation: slideDown .35s ease forwards;
}

@keyframes slideUp   { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(0); }    to { transform: translateY(100%); } }

.cb-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.cb-text { flex: 1; min-width: 260px; }
.cb-text strong { font-size: 15px; display: block; margin-bottom: 4px; }
.cb-text p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.cb-link { font-size: 12px; color: var(--gold); text-decoration: none; margin-top: 4px; display: inline-block; }
.cb-link:hover { text-decoration: underline; }

.cb-actions {
  display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0;
}

.cb-btn {
  padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s; white-space: nowrap;
}

.cb-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.cb-btn-ghost:hover { border-color: var(--text); color: var(--text); }

.cb-btn-primary {
  background: var(--gold);
  color: #000;
}
.cb-btn-primary:hover { background: var(--gold2); }

/* ── COOKIE MODAL ───────────────────────────────────────── */
#cookie-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}

.cm-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}

.cm-box {
  position: relative; z-index: 1;
  background: #0e0e1c;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%; max-width: 520px;
  margin: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.cm-box h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: .04em;
  margin-bottom: 24px;
}

.cm-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cm-row:last-of-type { border-bottom: none; }
.cm-row > div:first-child { flex: 1; }
.cm-row strong { font-size: 14px; display: block; margin-bottom: 4px; }
.cm-row p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

.cm-toggle {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.cm-toggle-on { background: rgba(0,184,148,.15); color: var(--green); }
.cm-disabled { opacity: .6; pointer-events: none; }

/* Toggle switch */
.cm-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cm-switch input { opacity: 0; width: 0; height: 0; }
.cm-slider {
  position: absolute; inset: 0;
  background: var(--border); border-radius: 24px;
  cursor: pointer; transition: .25s;
}
.cm-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; left: 3px; bottom: 3px;
  transition: .25s;
}
.cm-switch input:checked + .cm-slider { background: var(--gold); }
.cm-switch input:checked + .cm-slider::before { transform: translateX(20px); }

.cm-footer {
  display: flex; justify-content: flex-end;
  gap: 10px; margin-top: 24px;
}

/* ── INTERLINK BLOCK ────────────────────────────────────── */
.interlink-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 40px;
}

.interlink-block h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: .05em;
  margin-bottom: 16px; color: var(--muted);
  text-transform: uppercase;
}

.interlink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.interlink-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px; font-weight: 500;
  transition: border-color .2s, color .2s;
}
.interlink-card:hover { border-color: rgba(201,151,58,.35); color: var(--gold); }
.interlink-card .il-icon { font-size: 18px; flex-shrink: 0; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .bc-sep { color: var(--border); }
.breadcrumb .bc-current { color: var(--text); }

/* ── LEGAL PAGES ────────────────────────────────────────── */
.legal-content {
  max-width: 740px;
  line-height: 1.85;
}

.legal-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: .04em;
  margin: 36px 0 12px;
  color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.legal-content a { color: var(--gold); }
.legal-content strong { color: var(--text); }

.legal-content ul {
  color: var(--muted);
  padding-left: 20px;
  margin-bottom: 14px;
  line-height: 2;
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
  font-size: 14px;
}

.legal-toc h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: .06em;
  margin-bottom: 12px; color: var(--muted);
}

.legal-toc ol {
  padding-left: 18px;
  line-height: 2;
}

.legal-toc a { color: var(--gold); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* ── ABOUT PAGE ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative; overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.about-card .ac-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.about-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: .04em; margin-bottom: 8px; }
.about-card p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }

@media (max-width: 600px) {
  .cb-inner { flex-direction: column; }
  .cb-actions { width: 100%; justify-content: stretch; }
  .cb-btn { flex: 1; text-align: center; }
  .interlink-grid { grid-template-columns: 1fr 1fr; }
}
