.draft-banner{background:#3a2200;color:#ffe7bf;border:2px solid #e0a100;border-radius:12px;padding:.8rem 1rem;font-weight:700;margin:0 0 1rem}
.terms-dialog{position:fixed;inset:0;z-index:80;display:flex;justify-content:center;align-items:stretch;background:rgba(0,0,0,.72);padding:1rem}
.terms-panel{background:var(--bg,#000620);color:var(--txt,#eaf6ff);width:min(100%,46rem);max-height:100%;min-height:0;align-self:stretch;display:flex;flex-direction:column;gap:.75rem;border:1px solid var(--line,#1c2a5c);border-radius:16px;padding:1rem 1rem .5rem;overflow:hidden}
.terms-panel h2,.draft-banner,.terms-panel > p,.terms-actions,.terms-panel .chk{flex:none}
.terms-panel h2{font-size:clamp(1.35rem,3vw,1.8rem);margin:0}
.terms-scroll{overflow:auto;flex:1 1 0;min-height:0;border:1px solid var(--line,#1c2a5c);border-radius:12px;padding:1rem;background:var(--bg2,#050c2c);font-size:1rem;line-height:1.55;overflow-wrap:anywhere}
.terms-scroll h2,.terms-scroll h3{font-size:1.15rem}
.terms-scroll p,.terms-scroll li{overflow-wrap:anywhere}
.terms-actions{display:flex;flex:none;flex-wrap:wrap;gap:.75rem;align-items:center;background:var(--bg,#000620);padding:.25rem 0 .75rem}
.terms-dialog button:disabled,.terms-dialog input:disabled{cursor:not-allowed;opacity:.55}
.terms-dialog :focus-visible{outline:3px solid var(--cyan,#3ff3ff);outline-offset:2px}
.terms-panel .chk{display:flex;flex:none;align-items:flex-start;gap:.7rem;font-weight:400}
.terms-panel .chk input{margin-top:.35rem;flex:none;width:1.15rem;height:1.15rem}
.terms-panel .chk span{min-width:0;line-height:1.45}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.terms-page pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:var(--bg2,#050c2c);border:1px solid var(--line,#1c2a5c);border-radius:12px;padding:1rem}
@media (max-width:640px){
  .terms-dialog{padding:0}
  .terms-panel{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0;gap:.45rem;padding:.6rem .7rem .4rem}
  .draft-banner{padding:.55rem .7rem;margin:0}
}
@media print{
  .terms-dialog,header,.burger,nav,footer{display:none !important}
  .terms-page pre{border:0}
}
