.terms-hero{padding:90px 0 75px;background:#eaf5ff}
.terms-hero .container{max-width:1060px}
.terms-hero h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.4;color:var(--deep);margin:14px 0 18px}
.terms-hero p:last-child{max-width:780px;font-size:1rem;line-height:1.9}
.terms-back{display:inline-block;color:var(--blue);text-decoration:underline;text-underline-offset:5px;font-weight:700}
.terms-hero .terms-back{margin-bottom:32px}
.terms-content{max-width:1060px;padding-top:55px;padding-bottom:90px}
.terms-section{border-bottom:1px solid var(--line);padding:24px 0 32px}
.terms-section h2{font-size:1.45rem;line-height:1.5;color:var(--deep);margin-bottom:14px}
.terms-section p{max-width:850px;font-size:1rem;line-height:1.95;margin:0 0 14px}
.terms-section p:last-child{margin-bottom:0}
.terms-action{padding-top:46px}
.terms-action p{max-width:750px;line-height:1.9;margin-bottom:24px}
.terms-action .button{display:inline-flex;margin:0 25px 22px 0}
.site-footer a{color:var(--blue)}
@media(max-width:760px){.terms-hero{padding:55px 0 52px}.terms-hero .terms-back{margin-bottom:24px}.terms-content{padding-top:28px;padding-bottom:64px}.terms-section{padding:22px 0 26px}.terms-section h2{font-size:1.25rem}.terms-section p{font-size:.94rem}.terms-action .button{width:100%;margin-right:0;text-align:center;justify-content:center}.terms-action .terms-back{margin-top:6px}}

.terms-mobile-return{display:none}
/* Keep meaningful phrases together and give mobile links room to tap. */
@media(max-width:760px){
 body.terms-page{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 .terms-mobile-return{display:block;position:fixed;inset:auto 0 0;z-index:40;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#fffffff5;border-top:1px solid #c8e4f4;box-shadow:0 -5px 22px #1649e912;backdrop-filter:blur(10px)}
 .terms-mobile-return>a{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:520px;min-height:52px;margin-inline:auto;padding:12px 16px;border-radius:12px;background:linear-gradient(100deg,#1452e7,#02a9d6);color:#fff;font-size:1rem;font-weight:700;line-height:1.6;text-decoration:none}
 .terms-mobile-return>a:focus-visible{outline:3px solid #1452e7;outline-offset:3px}
 .terms-mobile-return .terms-return-arrow{font-size:1.4rem;line-height:1}
 .terms-page #main [id]{scroll-margin-bottom:100px}
 .terms-phrase{display:inline-block;max-width:100%}
 .terms-back{display:inline-flex;align-items:center;min-height:44px;max-width:100%}
 .site-header .brand,.site-header .header-cta{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .terms-action .terms-back{display:flex;justify-content:center;text-align:center}
 .terms-contact{display:flex;flex-direction:column;align-items:center;gap:4px}
 .terms-contact a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}
 .terms-contact .terms-contact-separator{display:none}
}
/* In-page navigation follows the existing terms, with readable mobile tap targets. */
.terms-toc{margin:0 0 32px;padding:28px;border:1px solid #cce3f0;border-radius:16px;background:#f1f9ff}
.terms-toc h2{font-size:1.35rem;line-height:1.5;color:var(--deep);margin:0 0 8px}
.terms-toc>p{font-size:.9rem;line-height:1.8;color:var(--muted)}
.terms-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;list-style:none;counter-reset:terms-item;margin:20px 0 0;padding:0}
.terms-toc li{counter-increment:terms-item;min-width:0}
.terms-toc a{display:flex;align-items:center;gap:12px;min-height:48px;height:100%;padding:10px 12px;background:white;border:1px solid #dbe8ef;border-radius:8px;font-size:.9rem;font-weight:700;line-height:1.65;color:var(--deep);overflow-wrap:anywhere}
.terms-toc a:before{content:counter(terms-item,decimal-leading-zero);flex:0 0 1.5em;color:#1574d4;font-size:.85rem}
.terms-toc a:hover{background:#e5f3ff;border-color:#63b8e2}
@media(max-width:760px){.terms-toc{padding:20px 16px;margin-bottom:20px}.terms-toc ol{grid-template-columns:1fr;gap:8px;margin-top:16px}.terms-toc a{padding:10px;min-height:48px;font-size:.875rem}.terms-toc h2{font-size:1.2rem}}
