.legal-document {max-width:900px;margin:2rem auto;line-height:1.7}
.legal-document h3,.legal-scroll h3 {margin:1.5rem 0 .65rem;font-size:1.1rem}
.legal-disclosure {font-size:.875rem;line-height:1.65;color:#888888;border-top:1px solid #777;padding-top:1rem;margin-top:1.5rem}
.legal-modal {box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;background:#161616;color:#f5f5f5;border:1px solid #777;border-radius:12px}
.legal-modal[open] {display:flex;flex-direction:column}
.legal-modal::backdrop {background:rgb(0 0 0 / 80%)}
.legal-modal header {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem;border-bottom:1px solid #555;flex-shrink:0}
.legal-modal header h2 {margin:0;font-size:clamp(1rem,4vw,1.4rem);letter-spacing:.04em}
.legal-modal header button {background:transparent;border:1px solid #888;color:#fff;font-size:1.5rem;cursor:pointer;min-width:44px;min-height:44px}
.legal-scroll {overflow-y:auto;min-height:0;max-height:38dvh;padding:0 1.25rem 1.25rem;line-height:1.65;scrollbar-gutter:stable}
.legal-modal-actions {padding:1rem 1.25rem;border-top:1px solid #555;overflow-y:auto;flex-shrink:0;max-height:35dvh}
.billing-form .legal-accept {display:flex;align-items:flex-start;gap:.65rem;line-height:1.5;font-size:.95rem}
.billing-form .legal-accept input[type=checkbox] {width:20px;height:20px;flex-shrink:0;margin-top:3px;padding:0;appearance:auto}
.legal-modal button:disabled {opacity:.5;cursor:not-allowed}
.legal-modal :focus-visible {outline:2px solid #fff;outline-offset:3px}
