/* ── PAGE HEADER OVERRIDES (legal-specific padding and h1 size) ── */
.page-header { padding: 64px 40px 72px; }
.page-header h1 {
  font-size: clamp(26px, 4vw, 42px); line-height: 1.15;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.page-header .updated {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: rgba(255,255,255,.45); font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 6px 14px; border-radius: 20px;
}
.page-header .updated svg { flex-shrink: 0; }

/* ── MAIN LAYOUT ── */
.legal-wrap { background: var(--bg); padding: 56px 40px 88px; }
.legal-layout {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 250px 1fr; gap: 56px;
  align-items: start;
}

/* ── SIDEBAR CONTAINER ── */
.legal-sidebar {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - 110px); overflow-y: auto;
}

/* ── CONTENT ── */
.legal-content { display: flex; flex-direction: column; gap: 36px; }

.legal-section {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 28px 32px;
}
.legal-section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.legal-num {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  background: #eef3fe; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.legal-section h2 { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }

.legal-body { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.legal-body p { margin-bottom: 12px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { list-style: none; margin: 10px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.legal-body li { display: flex; align-items: flex-start; gap: 10px; }
.legal-body a { color: var(--blue); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--navy); font-weight: 700; }

.num-tag {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--blue);
  background: #eef3fe; border-radius: 6px;
  padding: 2px 6px; margin-right: 8px;
  flex-shrink: 0; line-height: 1.5;
}
.legal-body li .num-tag { margin-top: 1px; }
.legal-body li > span.li-text { flex: 1; }
.legal-body .all-caps { font-size: 12.5px; letter-spacing: .01em; }

.subsection-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.subsection-label + .subsection-label,
p + .subsection-label { margin-top: 18px; }

/* ── CTA ── */
.cta-wrap {
  background: var(--navy); padding: 64px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-wrap::after {
  content: ''; position: absolute; bottom: -150px; right: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,110,245,.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { max-width: 520px; }
.cta-wrap h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--white); margin-bottom: 12px; letter-spacing: -.02em; }
.cta-wrap p { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 26px; line-height: 1.65; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-header { padding: 48px 20px 56px; }
  .legal-wrap { padding: 40px 20px 64px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; max-height: none; }
  .sidebar-label { display: none; }
  .legal-sidebar .sidebar-link { background: var(--white); border: 1px solid var(--border); }
  .sidebar-help { display: none; }
  .legal-section { padding: 22px 20px; }
  .cta-wrap { padding: 48px 20px; }
}
