.ym-legal-first-overlay{position:fixed;inset:0;background:#15302bdc;z-index:2147483646;display:grid;place-items:center;padding:12px;overflow:auto}.ym-legal-first-panel{background:#fff;color:#203d36;max-width:740px;width:100%;max-height:92vh;overflow:auto;padding:24px;border-radius:16px;box-sizing:border-box;box-shadow:0 18px 90px #0005}.ym-legal-first-panel h2{margin:0 0 12px;font-size:22px}.ym-legal-first-panel p{line-height:1.5}.ym-legal-first-doc{border:1px solid #dce9e5;border-radius:10px;padding:12px;margin:10px 0}.ym-legal-first-panel details pre{max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.45}.ym-legal-first-panel summary{font-weight:700;cursor:pointer}.ym-legal-first-panel label{display:block;margin:8px 0}.ym-legal-first-panel fieldset{border:0;padding:4px 0}.ym-legal-first-panel button{background:#168b72;color:#fff;border:0;padding:11px 18px;border-radius:9px;cursor:pointer;margin:8px 8px 0 0}.ym-legal-first-panel button:disabled{opacity:.5}.ym-legal-first-panel .ym-legal-exit{background:#e8eeeb;color:#31564b}.ym-legal-first-error{color:#b03737}.ym-platform-crm-status{padding:9px 12px;background:#f5faf8;border:1px solid #e0ece8;border-radius:9px;margin:7px 0;font-size:12px;display:grid;gap:5px}.ym-platform-state{color:#197b63}.ym-platform-state.state-blocked,.ym-platform-state.state-disabled{color:#b13f40}.ym-platform-state.state-grace,.ym-platform-state.state-due,.ym-platform-state.state-scheduled{color:#b36d24}.ym-platform-state.state-trial{color:#9c7418}.ym-platform-consents{display:grid;gap:3px}.ym-platform-consents .yes{color:#197b63}.ym-platform-consents .no{color:#6b7773}
/* Compact brand-styled legal onboarding; isolate from application-wide form rules. */
.ym-legal-first-overlay{padding:16px!important;background:rgba(22,49,43,.66)!important;backdrop-filter:blur(3px);}
.ym-legal-first-panel{width:min(100%,650px)!important;max-width:650px!important;max-height:calc(100dvh - 32px)!important;padding:24px!important;border-radius:20px!important;overflow:auto!important;box-sizing:border-box!important;font-size:14px!important;}
.ym-legal-first-panel h2{font-size:22px!important;line-height:1.3!important;margin:0 0 8px!important;color:#203d36!important;letter-spacing:-.025em}
.ym-legal-first-panel>p{font-size:14px!important;color:#61736e!important;line-height:1.5!important;margin:0 0 14px!important;}
.ym-legal-first-panel form{display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;padding:0!important;}
.ym-legal-first-panel .ym-legal-first-doc{margin:0!important;padding:11px 13px!important;border:1px solid #dce9e5!important;border-radius:12px!important;background:#f9fcfb!important}
.ym-legal-first-panel details{margin:0!important;padding:0!important;}
.ym-legal-first-panel summary{font-size:13px!important;font-weight:700!important;line-height:1.4!important;color:#246858!important;cursor:pointer!important;}
.ym-legal-first-panel details pre{border:1px solid #e2ece8;border-radius:8px;background:#fff;padding:12px;margin:9px 0 4px!important;max-height:190px!important;font-size:13px!important;line-height:1.52!important;}
.ym-legal-first-panel label.ym-legal-choice{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;margin:8px 0 0!important;padding:0!important;font-size:13px!important;line-height:1.4!important;font-weight:500!important;color:#344f47!important;cursor:pointer!important;min-width:0!important;width:auto!important;text-align:left!important;}
.ym-legal-first-panel label.ym-legal-choice span{display:inline!important;line-height:1.4!important;font-size:13px!important;color:inherit!important;font-weight:500!important}
.ym-legal-first-panel input.ym-legal-check{appearance:none!important;-webkit-appearance:none!important;display:inline-grid!important;place-content:center!important;box-sizing:border-box!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;margin:0!important;padding:0!important;border:1.5px solid #a5c4ba!important;border-radius:5px!important;background:#fff!important;box-shadow:none!important;outline:none!important;cursor:pointer!important;vertical-align:middle!important;position:static!important;opacity:1!important;transform:none!important;}
.ym-legal-first-panel input.ym-legal-check:checked{background:#1b9d85!important;border-color:#1b9d85!important}
.ym-legal-first-panel input.ym-legal-check:checked::before{content:""!important;display:block!important;width:8px!important;height:4px!important;border-left:2px solid white!important;border-bottom:2px solid white!important;transform:rotate(-45deg) translateY(-1px)!important;}
.ym-legal-first-panel input.ym-legal-check:focus-visible{outline:2px solid #249b88!important;outline-offset:3px!important}
.ym-legal-first-panel fieldset.ym-legal-options{border:0!important;display:flex!important;flex-wrap:wrap!important;gap:8px 20px!important;padding:0!important;margin:7px 0 0!important;min-width:0!important}
.ym-legal-first-panel fieldset.ym-legal-options legend{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.ym-legal-first-panel fieldset.ym-legal-options label.ym-legal-choice{margin:0!important;min-height:32px!important}
.ym-legal-first-panel .ym-legal-authority{padding:9px 12px!important;background:#eef6f3!important;border-radius:10px!important;border:1px solid #dce9e5!important}
.ym-legal-first-panel .ym-legal-first-error:empty{display:none!important}
.ym-legal-first-panel .ym-legal-first-error{font-size:13px!important;margin:0!important}
.ym-legal-first-panel .ym-legal-footer{position:sticky!important;bottom:-24px!important;background:#fff!important;padding:12px 0 8px!important;margin-top:2px!important;display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important;border-top:1px solid #e4ece8!important;z-index:1}
.ym-legal-first-panel .ym-legal-footer button{margin:0!important;padding:10px 16px!important;min-height:40px!important;width:auto!important;font-size:13px!important;line-height:1.25!important;font-weight:700!important;border-radius:10px!important;background:linear-gradient(110deg,#1a9d87,#37b8b1)!important;color:white!important;}
.ym-legal-first-panel .ym-legal-footer .ym-legal-exit{background:#edf4f1!important;color:#416459!important}
@media(max-width:540px){.ym-legal-first-overlay{padding:8px!important}.ym-legal-first-panel{max-height:calc(100dvh - 16px)!important;padding:16px!important;border-radius:14px!important}.ym-legal-first-panel h2{font-size:19px!important}.ym-legal-first-panel .ym-legal-footer{bottom:-16px!important}.ym-legal-first-panel .ym-legal-footer button:first-child{flex:1!important}}


.ym-legal-first-panel .ym-legal-hint{font-size:12px!important;line-height:1.45!important;color:#61736e!important;margin:6px 0 0 27px!important}
.ym-legal-first-panel .ym-legal-authority{align-items:flex-start!important;gap:9px!important;padding:11px 12px!important}
.ym-legal-first-panel .ym-legal-authority-hint{display:block!important;margin-top:4px!important;color:#61736e!important;font-size:12px!important;line-height:1.45!important;font-weight:400!important}
.ym-legal-first-panel .ym-legal-footer button:disabled{opacity:.45!important;cursor:not-allowed!important}
