.legal-dialog{box-sizing:border-box;width:min(808px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #c0c2e4;border-radius:12px;color:#040444;background:#fff;font:17px/1.7 'DM Sans',sans-serif;overflow:auto}
.legal-dialog::backdrop{background:rgba(4,4,68,.65)}
.legal-dialog-head{position:sticky;top:0;background:#fff;border-bottom:1px solid #ddd;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px}
.legal-dialog-head h2{font:400 clamp(28px,5vw,40px)/1.15 'Instrument Serif',Georgia,serif;margin:0}
.legal-dialog-head button{font:inherit;color:#040444;background:#f4f1ec;border:1px solid #757982;border-radius:6px;padding:8px 16px;cursor:pointer}
.legal-dialog-copy{padding:8px 24px 32px;overflow-wrap:anywhere}
.legal-dialog-copy h3{font-size:22px;line-height:1.3;margin:30px 0 12px}
.legal-dialog-copy .modal-meta{font-size:14px;color:#464b55}
.legal-dialog a{color:#5b37e0;text-underline-offset:3px}
.legal-dialog :focus-visible{outline:2px solid #8665fc;outline-offset:3px}
