* { box-sizing: border-box; }
html { min-width: 320px; background: #000; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #000; color: var(--sx-text-muted); font: 13px/1.75 "Onest", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.legal-topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 24px; border-bottom: 1px solid #171717; background: rgba(0, 0, 0, .95); backdrop-filter: blur(16px); }
.legal-brand { color: #eee; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; color: var(--sx-text-muted); font-size: 11px; transition: color 130ms ease; }
.legal-back:hover { color: #fff; }
.legal-shell { display: grid; grid-template-columns: 185px minmax(0, 720px); gap: 45px; width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 90px; }
.legal-aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 4px; }
.legal-aside span { margin: 0 9px 8px; color: var(--sx-text-muted); font: 9px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.legal-aside a { min-height: 37px; padding: 8px 10px; border-radius: 10px; color: var(--sx-text-muted); font-size: 11px; }
.legal-aside a:hover, .legal-aside a[aria-current="page"] { box-shadow: inset 2px 0 #f2f2f2; background: #080808; color: #eee; }
.legal-document { min-width: 0; opacity: 0; transform: translateY(8px); animation: legal-in .35s ease forwards; }
.legal-header { margin-bottom: 35px; }
.legal-kicker { color: var(--sx-text-muted); font: 9px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.legal-header h1 { margin: 8px 0 9px; color: #f3f3f3; font-size: clamp(28px, 5vw, 42px); line-height: 1.08; letter-spacing: -.05em; }
.legal-header h1::after { display: block; width: 34px; height: 2px; margin-top: 13px; background: #f2f2f2; content: ""; }
.legal-header p { margin: 0; color: var(--sx-text-muted); font-size: 11px; }
.legal-section { padding: 25px 0; border-top: 1px solid #171717; }
.legal-section h2 { margin: 0 0 12px; color: #d7d7d7; font-size: 15px; line-height: 1.3; letter-spacing: -.025em; }
.legal-section h3 { margin: 20px 0 8px; color: #bdbdbd; font-size: 12px; }
.legal-section p, .legal-section ul, .legal-section ol { margin: 0 0 12px; }
.legal-section p:last-child, .legal-section ul:last-child, .legal-section ol:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol { padding-left: 18px; }
.legal-section li { margin: 5px 0; padding-left: 3px; }
.legal-section strong { color: #c8c8c8; font-weight: 600; }
.legal-note { margin: 4px 0 25px; padding: 13px 0 13px 16px; border: 0; border-left: 2px solid #777; background: transparent; color: var(--sx-text-muted); font-size: 11px; }
.document-index { display: grid; gap: 8px; }
.document-index a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; padding: 17px 2px; border-top: 1px solid #242424; background: transparent; transition: border-color 140ms ease, transform 140ms ease; }
.document-index a:hover { border-color: #777; transform: translateX(3px); }
.document-index strong, .document-index small { display: block; }
.document-index strong { color: #d3d3d3; font-size: 13px; }
.document-index small { margin-top: 4px; color: var(--sx-text-muted); font-size: 10px; }
.document-index i { color: #aaa; font-style: normal; }
.legal-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #242424; color: var(--sx-text-muted); font-size: 9px; }
@keyframes legal-in { to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .legal-shell { display: block; width: min(680px, calc(100% - 28px)); padding-top: 35px; }
  .legal-aside { position: static; display: flex; margin-bottom: 30px; overflow-x: auto; }
  .legal-aside span { display: none; }
  .legal-aside a { min-width: max-content; }
}
@media (max-width: 480px) {
  .legal-topbar { padding: 0 15px; }
  .legal-header h1 { font-size: 31px; }
}
