body{margin:0}
.terms-app{min-height:100vh;background:#f3f6f4;color:#26342d;font:15px/1.65 system-ui,sans-serif}
.terms-content{box-sizing:border-box;width:min(1120px,100%);margin:auto;padding:28px 24px 52px}
.terms-content:not(.terms-admin){width:min(50rem,100%)}
.terms-content h1{margin:0;color:#173e2c;font-size:clamp(25px,4vw,34px);line-height:1.25}
.terms-meta{color:#607067}
.terms-notice{margin:22px 0;padding:18px 22px;border:1px solid #c9dccf;border-radius:12px;background:#eaf3ed}
.terms-notice h2{margin:0 0 8px;font-size:19px}
.terms-notice p{margin:0}
.terms-document{padding:clamp(18px,4vw,32px);background:#fff;border:1px solid #dce4df;border-radius:12px;font-size:1rem;line-height:1.7;overflow-wrap:anywhere}
.terms-document > *{max-width:43rem}
.terms-document h2,.terms-document h3{color:#214b35;line-height:1.35}
.terms-document h2{margin:1.8rem 0 .75rem;padding-top:1rem;border-top:1px solid #dce4df;font-size:1.25rem}
.terms-document h2:first-child{margin-top:0;padding-top:0;border:0}
.terms-document h3{margin:1.25rem 0 .6rem;font-size:1.06rem}
.terms-document p{margin:0 0 .9rem;white-space:pre-wrap}
.terms-document .terms-document-title{color:#173e2c;font-size:1.18rem;font-weight:650}
.terms-document-title + h2{margin-top:1rem}
.terms-document .terms-clause-number{color:#214b35}
.terms-document > :last-child{margin-bottom:0}
.terms-document a,.privacy-nav a{color:#245f3b;text-underline-offset:.18em}
.privacy-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 1.25rem;margin-bottom:1rem}
.privacy-nav nav{display:flex;gap:1rem}
.privacy-nav a{display:inline-flex;align-items:center;min-height:44px}
.privacy-nav a[aria-current="page"]{font-weight:700}
.terms-content .terms-back{
    display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 14px;border:1px solid #cddbd1;
    border-radius:12px;background:#fff;color:#245f3b;font-weight:650;text-decoration:none
}
.terms-content > .terms-back{margin-bottom:1rem}
.terms-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.terms-back:hover{background:#eaf3ed}
.terms-back:focus-visible{outline:2px solid #2f7d4a;outline-offset:2px}
.license-document{margin-top:1.35rem}
.license-document ul{margin:0;padding-inline-start:1.25rem}
.license-document li+li{margin-top:.35rem}
.license-dialog{
    box-sizing:border-box;width:min(48rem,calc(100% - 1.5rem));max-height:calc(100vh - 1.5rem);
    max-height:calc(100dvh - 1.5rem);padding:0;overflow:hidden;border:1px solid #cddbd1;
    border-radius:12px;background:#fff;color:#26342d;box-shadow:0 24px 64px #07170f55
}
.license-dialog:not([open]){display:none}
.license-dialog[open]{display:flex;flex-direction:column}
.license-dialog::backdrop{background:#07140d99}
.license-dialog header,.license-dialog footer{
    display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem clamp(14px,4vw,24px)
}
.license-dialog header{border-bottom:1px solid #dce4df}
.license-dialog footer{border-top:1px solid #dce4df;justify-content:flex-end}
.license-dialog h2{margin:0;color:#214b35;font-size:clamp(1.1rem,4vw,1.35rem);line-height:1.3}
.license-dialog header button{
    display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:12px;
    background:#e9efeb;color:#245f3b;font:1.75rem/1 system-ui,sans-serif;cursor:pointer
}
.license-dialog header button:hover{background:#dcebe0}
.license-dialog :focus-visible{outline:2px solid #2f7d4a;outline-offset:2px}
.license-dialog-content{
    min-height:0;padding:clamp(14px,4vw,24px);overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere
}
.license-dialog-content:focus-visible{outline-offset:-3px}
.license-dialog-content p,.license-dialog-content pre{margin:0}
.license-dialog-content pre{white-space:pre-wrap;font:inherit}
.license-dialog-preview{flex:1 1 auto;width:100%;height:min(56vh,36rem);min-height:0;border:0;border-top:1px solid #dce4df}
.license-dialog footer a{color:#245f3b;text-underline-offset:.18em;overflow-wrap:anywhere}
.terms-admin form{display:grid;gap:10px}.terms-admin label{font-weight:650}.terms-admin input:not([type=checkbox]):not([type=hidden]),.terms-admin select,.terms-admin textarea{box-sizing:border-box;min-height:48px;width:100%;padding:12px;border:1px solid #cbd9d0;border-radius:12px;background:#fff;color:#263b30;font:inherit}.terms-admin select{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232f7d4a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}.terms-admin textarea{min-height:220px;resize:vertical}.terms-admin input:focus,.terms-admin select:focus,.terms-admin textarea:focus{outline:2px solid #2f7d4a;outline-offset:2px}.terms-admin button,.terms-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 18px;background:#2f7d4a;color:#fff;border:0;border-radius:12px;font:650 14px system-ui,sans-serif;cursor:pointer;text-decoration:none}.terms-admin button:focus-visible,.terms-action:focus-visible{outline:3px solid #8bb99a;outline-offset:2px}.terms-action{width:48px;padding:10px;background:#e7f0ea;color:#2f7d4a}.terms-action svg,.terms-admin button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}.terms-admin .terms-panel{margin:22px 0;padding:22px;background:#fff;border:1px solid #dce4df;border-radius:12px}.terms-check{display:flex;align-items:flex-start;gap:12px}.terms-check input{width:22px;min-width:22px;height:22px;margin-top:4px}.terms-admin .terms-document{max-height:600px;overflow:auto}.terms-admin td form{min-width:190px}.terms-admin .terms-inline-actions{display:flex;gap:8px;flex-wrap:wrap}.terms-admin .admin-server-table-form{display:flex}.terms-notice.error{background:#fdeaea;color:#8b2929;border-color:#f0c7c7}
@media(max-width:620px){.terms-content{padding:22px 12px 44px}.terms-document,.terms-admin .terms-panel{padding:18px}.terms-notice{padding:16px}.terms-admin td form{min-width:160px}}
@media print{.portal-user-header,.portal-category-nav,.terms-notice,.terms-content .terms-back{display:none}.terms-content,.terms-content:not(.terms-admin){width:100%;padding:0}.terms-document{padding:0;border:0}.terms-document > *{max-width:none}.terms-document h2,.terms-document h3{break-after:avoid}.terms-document p{orphans:3;widows:3}}
