html.jse-legal-open { overflow: hidden; }
.jse-legal-dialog { width: min(850px, calc(100% - 32px)); max-height: 85vh; max-height: 85dvh; padding: 0; border: 1px solid #dce2e8; border-radius: 20px; background: #fff; color: #263440; box-shadow: 0 32px 100px #0006; overscroll-behavior: contain; }
.jse-legal-dialog:not([open]) { display: none; }
.jse-legal-dialog::backdrop { background: #07131dcc; backdrop-filter: blur(5px); }
.jse-legal-heading { position: sticky; top: 0; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 22px 30px; background: #13212b; color: #fff; z-index: 1; }
.jse-legal-heading h2 { color: #fff; font-size: clamp(1.2rem, 3vw, 1.7rem); margin: 0; overflow-wrap: anywhere; }
.jse-legal-heading button { flex-shrink: 0; min-height: 44px; border: 1px solid #6d7b86; border-radius: 8px; color: #fff; background: transparent; padding: 8px 12px; font: inherit; cursor: pointer; }
.jse-legal-heading button span { font-size: 1.4rem; margin-left: 8px; }
.jse-legal-heading button:focus-visible { outline: 3px solid #9fc31a; outline-offset: 3px; }
.jse-legal-copy { padding: 30px; line-height: 1.8; overflow-wrap: anywhere; font-size: 1rem; }
.jse-legal-copy :is(h2,h3,h4) { color: #13212b; line-height: 1.3; margin: 1.5em 0 .6em; }
.jse-legal-copy :is(ul,ol) { padding-left: 24px; margin-bottom: 1em; }
.jse-legal-copy ul { list-style: disc; }
.jse-legal-copy ol { list-style: decimal; }
.jse-legal-copy a { color: #9fc31a; text-decoration: underline; text-underline-offset: 3px; }
.jse-legal-page { max-width: 900px; }
.jse-legal-page .jse-legal-copy { padding: 0; }
@media(max-width: 540px) {
 .jse-legal-heading { padding: 16px; gap: 10px; }
 .jse-legal-heading button { font-size: .8rem; }
 .jse-legal-copy { padding: 22px 18px; }
 .jse-legal-dialog { border-radius: 14px; }
}
