/* ── LEGAL PAGES — dark theme ── */

.legal-main {
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: var(--bg-alt);
}
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-hero {
  text-align: center;
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.legal-meta {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}

.legal-body { display: flex; flex-direction: column; gap: 16px; }

.legal-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(99,102,241,0.25);
}
.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--indigo-mid);
  margin: 18px 0 8px;
}
.legal-section p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul { list-style: none; padding: 0; margin: 8px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.legal-section ul li {
  font-size: 0.91rem;
  line-height: 1.65;
  color: var(--text-soft);
  padding-left: 18px;
  position: relative;
}
.legal-section ul li::before {
  content: '•';
  position: absolute;
  left: 3px;
  color: var(--indigo-mid);
  font-weight: 700;
}

.legal-section ol {
  padding-left: 0;
  margin: 8px 0 10px;
  counter-reset: legal-counter;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.legal-section ol li {
  font-size: 0.91rem;
  line-height: 1.65;
  color: var(--text-soft);
  padding-left: 26px;
  position: relative;
  counter-increment: legal-counter;
  list-style: none;
}
.legal-section ol li::before {
  content: counter(legal-counter) '.';
  position: absolute;
  left: 0;
  color: var(--indigo-mid);
  font-weight: 700;
  font-size: 0.86rem;
}

.legal-section a {
  color: var(--indigo-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.legal-section a:hover { color: var(--sky); }

.legal-contact-card {
  background: rgba(99,102,241,0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 14px;
  border-left: 3px solid var(--indigo);
}
.legal-contact-card p { margin-bottom: 5px !important; color: var(--text) !important; }

@media (max-width: 600px) {
  .legal-section { padding: 22px 18px; }
  .legal-container { padding: 36px 14px 56px; }
  .legal-hero { padding: 36px 0 32px; }
}
