.terms-dialog:not([open]){display:none}
.terms-dialog{box-sizing:border-box;width:min(900px,calc(100% - 2rem));max-width:calc(100% - 2rem);max-height:85vh;max-height:85dvh;padding:0;border:1px solid #ccd4da;border-radius:1rem;background:#fff;color:#172c3b;overflow:hidden}
.terms-dialog[open]{display:flex;flex-direction:column}
.terms-dialog::backdrop{background:rgb(10 25 40 / .65)}
.terms-dialog header,.terms-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;flex:none}
.terms-dialog header{border-bottom:1px solid #ccd4da}
.terms-dialog header h2{font-size:1.3rem;margin:0}
.terms-dialog footer{justify-content:flex-end;border-top:1px solid #ccd4da}
.terms-dialog button{min-width:44px;min-height:44px;cursor:pointer}
.terms-dialog__content{padding:1rem 1.5rem;overflow:auto;overscroll-behavior:contain;min-height:0;font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
.terms-dialog__content h2,.terms-dialog__content h3,.terms-dialog__content h4{line-height:1.3}
.terms-dialog :focus-visible{outline:3px solid var(--color-primary,#245e91);outline-offset:3px}
body.terms-dialog-open{overflow:hidden}
@media(max-width:600px){.terms-dialog{width:calc(100% - 1rem);max-width:calc(100% - 1rem);max-height:94vh;max-height:94dvh}.terms-dialog header,.terms-dialog footer,.terms-dialog__content{padding:1rem}.terms-dialog__content{font-size:16px}}
