/* Keep document-frame text and pointer coordinates independent of editor zoom. */
body:has(.desktop-legal[open]) { zoom:1; overflow:hidden; }
.desktop-legal { box-sizing:border-box; width:min(640px,calc(100vw - 32px)); max-width:calc(100vw - 32px); height:min(620px,calc(100dvh - 48px)); max-height:calc(100dvh - 48px); padding:20px; color:#d5d8df; background:#202228; border:1px solid #42454e; border-radius:12px; font:14px/1.5 system-ui,sans-serif; overflow:hidden; }
.desktop-legal[open] { display:flex; flex-direction:column; gap:12px; }
.desktop-legal::backdrop { background:#0b0d11b3; }
.desktop-legal h1 { font-size:18px; font-weight:600; margin:0; flex-shrink:0; }
.desktop-legal iframe { display:block; width:100%; min-height:100px; flex:1 1 auto; background:#191b20; border:1px solid #343740; border-radius:6px; }
.desktop-legal p { font:inherit; color:inherit; margin:0; flex-shrink:0; }
.desktop-legal .desktop-legal-assent { font-size:12px; color:#b5b8c0; }
.desktop-legal button { font:inherit; padding:7px 16px; cursor:pointer; border:1px solid #484c56; border-radius:6px; }
.desktop-legal [data-accept] { background:#416bba; border-color:#6488ce; color:#fff; }
.desktop-legal button:disabled { opacity:.5; cursor:default; }
.desktop-legal-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-shrink:0; }
.desktop-legal-actions { display:flex; gap:8px; }
.desktop-legal [role=status] { font-size:12px; color:#aeb3be; }
.desktop-legal [role=status]:empty { display:none; }
.desktop-legal details { position:relative; font-size:12px; }
.desktop-legal summary { cursor:pointer; color:#aeb3be; }
.desktop-legal-tools { position:absolute; bottom:28px; left:0; width:270px; padding:12px; border:1px solid #484c56; border-radius:8px; background:#252830; box-shadow:0 8px 28px #0008; display:grid; gap:10px; }
.desktop-legal :focus-visible { outline:2px solid #9abaff; outline-offset:3px; }
@media(max-height:550px) { .desktop-legal { padding:14px; gap:8px; height:calc(100dvh - 24px); max-height:calc(100dvh - 24px); } }
