.legal-page { min-height: 100vh; background: #f7f9fc; color: #172033; }
.legal-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e4e9f2; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.legal-nav { width: min(1180px, calc(100% - 32px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-logo { display: inline-flex; align-items: center; gap: 10px; color: #172033; text-decoration: none; font-size: 1.08rem; }
.legal-logo img { width: 34px; height: 34px; border-radius: 9px; }
.legal-nav-actions { display: flex; align-items: center; gap: 10px; }
.legal-nav-actions a, .legal-back { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.legal-back { border: 1px solid #d5dce8; background: #fff; color: #344054; cursor: pointer; }
.legal-shell { width: min(1180px, calc(100% - 32px)); margin: 40px auto 64px; display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 40px; align-items: start; }
.legal-sidebar { position: sticky; top: 104px; }
.legal-sidebar-label { margin: 0 0 12px; color: #667085; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-toc { display: grid; gap: 3px; max-height: calc(100vh - 175px); overflow: auto; padding-right: 8px; }
.legal-toc a { padding: 7px 10px; border-left: 2px solid #e4e9f2; color: #667085; font-size: .86rem; line-height: 1.3; text-decoration: none; }
.legal-toc a:hover, .legal-toc a:focus-visible { border-color: #155eef; color: #155eef; background: #edf4ff; }
.legal-document { padding: clamp(24px, 5vw, 56px); border: 1px solid #e4e9f2; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(30,52,89,.08); }
.legal-eyebrow { margin: 0 0 10px; color: #155eef; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.legal-document h1 { margin: 0; color: #101828; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; }
.legal-meta { margin: 14px 0 34px; padding-bottom: 24px; border-bottom: 1px solid #e4e9f2; color: #667085; }
.legal-document h2 { margin: 38px 0 12px; scroll-margin-top: 100px; color: #172033; font-size: 1.28rem; }
.legal-document p, .legal-document li { color: #475467; line-height: 1.75; }
.legal-document li + li { margin-top: 8px; }
.legal-document a { color: #155eef; text-underline-offset: 3px; }
.legal-switch { margin-top: 42px; padding: 20px; border-radius: 14px; background: #f1f6ff; color: #344054; }
.legal-switch a { font-weight: 800; }
.legal-footer { padding: 28px 16px; border-top: 1px solid #e4e9f2; background: #fff; color: #667085; text-align: center; }
.legal-footer a { color: #475467; }
@media (max-width: 860px) {
  .legal-shell { grid-template-columns: minmax(0, 760px); margin-top: 24px; }
  .legal-sidebar { position: static; padding: 16px; border: 1px solid #e4e9f2; border-radius: 14px; background: #fff; }
  .legal-toc { display: flex; overflow-x: auto; max-height: none; }
  .legal-toc a { min-width: max-content; border-left: 0; border-bottom: 2px solid #e4e9f2; }
}
@media (max-width: 560px) {
  .legal-nav { width: min(100% - 24px, 1180px); min-height: 64px; }
  .legal-shell { width: min(100% - 24px, 1180px); gap: 16px; }
  .legal-document { padding: 24px 20px; border-radius: 16px; }
}
