/* ── LEGAL PAGES ── */
.legal-body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: #cbd5e1;
  padding-top: 72px;
}

/* ── LAYOUT ── */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 1.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* ── SIDEBAR TOC ── */
.legal-toc {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.toc-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  margin-bottom: 0.75rem;
}

.toc-link {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  color: #64748b;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 0 6px 6px 0;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.toc-link:hover { color: #e2e8f0; background: rgba(255,255,255,0.04); }
.toc-link.active {
  color: #a5b4fc;
  border-left-color: #6366f1;
  background: rgba(99,102,241,0.08);
}

.toc-gdpr-badge {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #6ee7b7;
}

/* ── HEADER ── */
.legal-header {}

.legal-intro-box {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-top: 1.5rem;
}

/* ── SECTIONS ── */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.legal-h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #94a3b8;
}

/* ── LISTS ── */
.legal-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}
.legal-list li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.legal-list li strong { color: #cbd5e1; }

/* ── DATA TABLE ── */
.data-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.85rem;
}
.data-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.data-row:last-child { border-bottom: none; }
.data-row.header {
  background: rgba(99,102,241,0.08);
  font-weight: 700;
  color: #a5b4fc;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.data-row span {
  padding: 12px 16px;
  color: #94a3b8;
  border-right: 1px solid var(--border);
  line-height: 1.5;
}
.data-row span:last-child { border-right: none; }
.data-row.header span { color: #a5b4fc; }

/* ── LINKS ── */
.legal-link {
  color: #a5b4fc;
  text-decoration: none;
  border-bottom: 1px dashed rgba(165,180,252,0.4);
  transition: color 0.2s;
}
.legal-link:hover { color: #6366f1; }

/* ── CONTACT BOX ── */
.legal-contact-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* ── RIGHTS GRID ── */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.right-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.right-item:hover { border-color: rgba(99,102,241,0.3); }
.right-icon {
  width: 32px; height: 32px;
  background: rgba(99,102,241,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #a5b4fc;
  flex-shrink: 0;
}
.right-item strong { font-size: 0.85rem; color: #e2e8f0; display: block; margin-bottom: 4px; }

/* ── FOOTER ── */
.legal-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}
.legal-footer-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.legal-footer-link:hover { color: #e2e8f0; }
.legal-footer-link.active { color: #a5b4fc; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  .toc-heading { width: 100%; }
  .toc-link { border-left: none; border-radius: 8px; font-size: 0.78rem; padding: 4px 10px; }
  .toc-link.active { border-left: none; }
  .toc-gdpr-badge { width: 100%; }
  .rights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .data-row { grid-template-columns: 1fr; }
  .data-row span { border-right: none; border-bottom: 1px solid var(--border); }
  .data-row span:last-child { border-bottom: none; }
}
