.terms-link{border:0;background:none;color:#126b54;text-decoration:underline;font:inherit;padding:0;cursor:pointer}
#terms-dialog{box-sizing:border-box;width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #ced9d0;border-radius:20px;color:#183b30;background:#fafbf7;box-shadow:0 24px 80px #0005}
#terms-dialog[open]{display:flex;flex-direction:column}
#terms-dialog::backdrop{background:rgba(10,28,23,.65)}
#terms-dialog .terms-dialog-head{position:static;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:#f0f4eb;border-bottom:1px solid #d6ded4}
#terms-dialog .terms-dialog-head h2{margin:0;font-size:1.4rem}
#terms-dialog .terms-dialog-head button{background:#fff;border:1px solid #bbcbbf;border-radius:20px;padding:8px 14px;color:#183b30;cursor:pointer}
#terms-dialog .terms-dialog-body{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:12px 28px 24px;line-height:1.65}
#terms-dialog h2{font-size:1.2rem;margin-top:24px}
#terms-dialog .card{border:1px solid #b8d6bd;border-radius:12px;background:#edf5e9;padding:18px;box-shadow:none;margin:20px 0}
#terms-dialog .terms-dialog-foot{display:flex;flex-direction:column;gap:14px;padding:18px 24px;margin:0;border-top:1px solid #d6ded4;background:#fff}
#terms-dialog .terms-dialog-foot label{display:flex;align-items:flex-start;gap:10px;font-size:1rem;line-height:1.45}
#terms-dialog input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:2px 0;accent-color:#126b54}
#terms-dialog button:disabled{opacity:.5;cursor:not-allowed}
#terms-plan-summary{font-weight:700}
.terms-page{margin:0;background:#edf1e9;color:#183b30;font-family:"Trebuchet MS",sans-serif;line-height:1.7;padding:32px 16px}
.terms-document{max-width:820px;margin:auto;padding:clamp(20px,5vw,48px);background:#fff;border:1px solid #d6ded4;border-radius:20px;box-shadow:0 12px 40px #183b3010}
.terms-document a{color:#126b54}.terms-document .card{padding:20px;background:#edf5e9;border-radius:12px}
@media(max-width:540px){#terms-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:14px}#terms-dialog .terms-dialog-body{padding:8px 18px 20px}#terms-dialog .terms-dialog-head,#terms-dialog .terms-dialog-foot{padding:14px 18px}#terms-dialog .terms-dialog-head h2{font-size:1.15rem}}
#registration-form .terms-acceptance{display:flex;align-items:flex-start;gap:12px;margin:20px 0;line-height:1.5}
#registration-form .terms-acceptance label{display:inline;margin:0;font-weight:400;cursor:pointer}
#registration-form .terms-acceptance input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:3px 0;padding:0;accent-color:#126b54}
