.header-brand-group{display:flex;align-items:center;gap:16px;min-width:0}
.age-badge{flex:none;display:inline-grid;place-items:center;min-width:46px;min-height:38px;padding:6px 8px;border:1px solid #e5b774;border-radius:9px;background:#30251c;color:#ffe0ad;font-size:16px;font-weight:800;line-height:1;cursor:pointer}
.risk-strip{display:flex;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid #3e3430;color:#dccfc5;font-size:12px;line-height:1.6}
.risk-strip>strong{flex:none;color:#ffe0ad;font-size:11px;letter-spacing:.08em}.risk-strip p{margin:0}.risk-strip button{flex:none}
.risk-strip button,.access-warning button,.legal-bar button,.legal-bar a{color:#e6d6ff;text-decoration:underline;text-underline-offset:3px;font:inherit;cursor:pointer}
.risk-strip button,.access-warning button,.legal-bar button{background:transparent;border:0;padding:0}
.access-warning{max-width:65ch;margin:16px 0 0!important;color:#c8c5d2;font-size:12px!important;line-height:1.65!important}
.simulation-warning{padding:12px 16px;margin:0;background:#211c27;color:#e3d9eb;font-size:12px;line-height:1.6;border-bottom:1px solid #534360}
.simulation-warning strong{display:block;color:#f0d7ff;font-size:11px;letter-spacing:.07em;margin-bottom:3px}
.demo-account .demo-account-disclosure{color:#d7cddd;font-size:12px;line-height:1.6}.legal-bar>span{font-size:14px;white-space:nowrap}
#legal-dialog{width:min(820px,calc(100% - 28px));max-width:820px;max-height:85dvh;padding:0;overflow:hidden;border:1px solid #5d516c;border-radius:16px;background:#11131b;color:#e4e5ec}
#legal-dialog .dialog-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;margin:0;border-bottom:1px solid #34303e;background:#191923}
#legal-heading{margin:0;font-size:13px;line-height:1.5}#legal-close{flex:none;min-height:40px;padding:8px;color:#fff;cursor:pointer}
#legal-content{max-height:calc(85dvh - 76px);overflow-y:auto;overscroll-behavior:contain;padding:24px 28px 32px;line-height:1.75;font-size:14px}
#legal-content h2{font-size:24px;line-height:1.3;margin:0 0 14px}#legal-content h3{font-size:17px;line-height:1.4;margin:28px 0 10px;color:#f2e8ff}
#legal-content p{font-size:14px;line-height:1.75;color:#d2d2dc;margin:12px 0}#legal-content .legal-date{font-size:12px;color:#bfb8cb}
#legal-content ul{padding-left:22px;margin:12px 0}#legal-content li{margin:12px 0}#legal-content a{color:#d9bdff;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
#legal-content .legal-highlight{padding:16px;border:1px solid #876544;border-radius:10px;background:#292018;color:#ffe0ad}
.age-badge:focus-visible,.risk-strip button:focus-visible,#legal-dialog a:focus-visible,#legal-close:focus-visible,.access-warning button:focus-visible{outline:2px solid #e5b774;outline-offset:4px}
@media(max-width:1000px){.header-row{grid-template-columns:minmax(0,1fr) auto}.header-row .system-status{display:none}.risk-strip{flex-wrap:wrap;gap:6px 14px}.risk-strip p{flex-basis:100%}}
@media(max-width:700px){.header-brand-group{gap:7px}.header-brand-group .brand-lockup .brand-logo{width:42px!important;height:38px!important}.header-brand-group .brand-lockup{gap:6px}.header-brand-group .brand-lockup strong{font-size:11px;letter-spacing:.05em}.header-brand-group .brand-lockup small{font-size:8px;letter-spacing:.07em}.age-badge{min-width:36px;min-height:34px;padding:5px;font-size:14px}.risk-strip{padding:12px 0}.simulation-warning{padding:10px 12px}#legal-content{padding:18px 18px 28px}#legal-content h2{font-size:21px}#legal-dialog .dialog-top{padding:12px 16px}}
