/* ============================================================
   VALIDORA — Legal page styles (terms, privacy, refund)
   ============================================================ */

.legal-hero {
  padding: 140px 0 40px;
  position: relative;
  overflow: hidden;
}
.legal-hero .glow-violet { width: 600px; height: 400px; top: -100px; left: 50%; transform: translateX(-50%); opacity: 0.35; }

.legal-hero h1 {
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: white;
}
.legal-hero .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.legal-hero .friendly {
  font-size: 18px;
  color: var(--text-body);
  margin-top: 14px;
  letter-spacing: -0.005em;
  max-width: 540px;
}
.legal-hero .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.55), transparent);
  margin-top: 32px;
  max-width: 100%;
}

/* Layout */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  position: relative;
}
.legal-layout.no-side {
  grid-template-columns: 1fr;
  max-width: 720px;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-sidebar { position: relative !important; top: 0 !important; max-height: none !important; }
}

.legal-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.legal-sidebar .sb-title {
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-left: 12px;
}
.legal-sidebar ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: legal-toc;
}
.legal-sidebar a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1.4;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}
.legal-sidebar a::before {
  counter-increment: legal-toc;
  content: counter(legal-toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  padding-top: 2px;
}
.legal-sidebar a:hover { color: var(--text-body); background: rgba(255,255,255,0.02); }
.legal-sidebar a.active {
  color: var(--violet-light);
  background: rgba(124, 58, 237, 0.08);
  border-left-color: var(--violet-light);
}
.legal-sidebar a.active::before { color: var(--violet-light); }

/* Content */
.legal-content {
  color: #D1D5DB;
  font-size: 15.5px;
  line-height: 1.75;
  letter-spacing: -0.003em;
}
.legal-content section {
  padding: 0 0 40px;
  scroll-margin-top: 100px;
}
.legal-content h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  margin-top: 8px;
  line-height: 1.25;
}
.sec-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--violet-light);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 999px;
  flex-shrink: 0;
}
.legal-content p { margin-bottom: 16px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-content ul li {
  position: relative;
  padding-left: 22px;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px; height: 6px;
  background: var(--violet-light);
  border-radius: 50%;
  opacity: 0.7;
}
.legal-content ul li strong { color: white; font-weight: 500; }
.legal-content a { color: var(--violet-light); border-bottom: 1px dashed rgba(167,139,250,0.4); padding-bottom: 1px; }
.legal-content a:hover { color: #C4B5FD; }

.legal-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  color: #E9D5FF;
}

/* Special blocks for refund policy */
.callout {
  margin: 20px 0;
  padding: 18px 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  border-left: 3px solid var(--violet-light);
}
.callout.green { border-left-color: var(--emerald); background: rgba(16, 185, 129, 0.04); border-color: rgba(16,185,129,0.12); }
.callout.amber { border-left-color: var(--amber); background: rgba(245, 158, 11, 0.04); border-color: rgba(245,158,11,0.14); }
.callout p { color: white; font-size: 15px; line-height: 1.55; margin: 0; }
.callout .meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.callout .meta span::before { content: '•'; color: var(--text-dim); margin-right: 8px; }

.info-banner {
  padding: 14px 18px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  font-size: 14px;
  color: #DDD6FE;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.info-banner svg { color: var(--violet-light); flex-shrink: 0; }

.steps-numbered {
  list-style: none;
  counter-reset: stp;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin-bottom: 16px;
}
.steps-numbered li {
  counter-increment: stp;
  padding: 14px 18px 14px 56px;
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  color: var(--text-body);
  font-size: 14.5px;
}
.steps-numbered li::before {
  content: counter(stp);
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  color: var(--violet-light);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid rgba(124,58,237,0.3);
}
.steps-numbered li::before { padding-left: 0; }
.steps-numbered li strong { color: white; font-weight: 500; }
