.m31-legal-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid #dbe1e8;border-radius:16px;padding:28px;font:15px/1.7 system-ui;color:#253044}.m31-legal-dialog::backdrop{background:#17233899}.m31-legal-dialog h2{font-size:24px;line-height:1.4}.m31-legal-dialog h3{font-size:17px}.m31-legal-dialog label{display:block;margin:16px 0}.m31-legal-dialog section{border-bottom:1px solid #ddd;padding:12px 0}.legal-check{display:flex!important;align-items:flex-start;gap:10px}.legal-check input{width:20px;height:20px;flex:none;margin-top:3px}.m31-legal-dialog select,.m31-legal-editor select,.m31-legal-editor input,.m31-legal-editor textarea{box-sizing:border-box;display:block;width:100%;padding:12px;border:1px solid #cbd4df;border-radius:8px;font:inherit;margin:8px 0 16px}.m31-legal-dialog button,.m31-legal-editor button{min-height:44px;padding:10px 18px;border:1px solid #8392a6;border-radius:8px;background:#fff;font:inherit;cursor:pointer;margin:4px}.m31-legal-dialog button[type=submit]{background:#253c56;color:white}.m31-legal-dialog :focus-visible,.m31-legal-editor :focus-visible{outline:3px solid #578bd1;outline-offset:2px}.m31-legal-editor{max-width:1000px;margin:24px auto;padding:20px}.m31-legal-editor label{display:block}.legal-draft{background:#fff3d8;padding:14px;border-radius:8px}.legal-diff{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f8fb;padding:16px;max-height:400px;overflow:auto}@media(max-width:600px){.m31-legal-dialog{padding:20px}.m31-legal-editor{padding:12px;margin:12px auto}.m31-legal-editor .actions{display:grid;grid-template-columns:1fr}.m31-legal-editor button{margin:0 0 8px}}

.legal-profile{border:1px solid #dce2eb;border-radius:10px;padding:14px;margin:16px 0}.legal-profile summary{font-weight:650;cursor:pointer;min-height:32px}.legal-profile textarea{resize:vertical;min-height:68px}.m31-legal-editor dd{overflow-wrap:anywhere}.m31-legal-editor .legal-check input{display:inline-block;width:20px;margin:3px 0}.m31-legal-editor button:disabled{opacity:.55;cursor:default}

.m31-legal-editor{font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR","Noto Sans Thai",sans-serif;color:#303030;max-width:1100px;margin:0 auto;padding:16px}.m31-legal-editor h2{font-size:18px;line-height:1.4;margin:0 0 12px;font-weight:650}.m31-legal-editor label{font-size:13px;font-weight:500}.m31-legal-editor input,.m31-legal-editor select,.m31-legal-editor textarea{font:400 13px/1.5 inherit;padding:7px 10px;border:1px solid #8a8a8a;border-radius:7px;margin:5px 0 12px;min-height:34px;box-shadow:0 1px 0 #00000008}.m31-legal-editor [hidden]{display:none!important}.m31-legal-editor textarea{font-size:14px;font-weight:400;line-height:1.65}.m31-legal-editor button{font-size:13px;line-height:18px;font-weight:550;min-height:32px;padding:6px 12px;margin:0;border:1px solid #b5b5b5;border-radius:7px;box-shadow:0 1px 2px #0000000d}.m31-legal-editor .actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:12px 0}.m31-legal-editor [data-action=save]{background:#303030;color:#fff;border-color:#303030}.m31-legal-editor details{font-size:13px;margin:10px 0}.m31-legal-editor summary{cursor:pointer;min-height:28px}.m31-legal-editor .legal-draft{font-size:12px;padding:8px 10px;margin:8px 0 12px}.m31-legal-editor .legal-profile{padding:10px 12px;border-radius:8px}.m31-legal-editor [data-legal-rich]{min-width:0}.m31-legal-editor [data-legal-rich][inert]{opacity:.8}
