body[data-page=terms] {padding-inline-start:0}
[data-page=terms] .wrap {width:min(calc(100% - 2rem),72rem)}
[data-page=terms] .top-inner>.brand,[data-page=terms] .top-inner>nav {display:flex}
[data-page=terms] .top-inner .account-link {margin-inline-start:auto}
[data-page=terms] :is(.hub-crumb,.hub-search) {display:none}

.terms-guide {--highlight:var(--mint);margin-block:.75rem 3.5rem}
.terms-cover {
    position:relative;isolation:isolate;overflow:hidden;border-radius:1.55rem;
    background:#103a40;border:1px solid #377071;color:#fff;
}
.terms-cover::before {
    content:"";position:absolute;inset:0;z-index:-1;
    background:linear-gradient(to right,transparent 11%,#103a4020 23%,#103a40 54%,#142e3a 100%),
        url("plan-basic.webp") left 48% / 54% auto no-repeat;
}
.terms-cover-copy {padding:clamp(1.5rem,4vw,3.4rem);max-width:60%}
.terms-version {display:inline-block;color:#d4fff0;border:1px solid #87cfc464;border-radius:2rem;padding:.1rem .85rem;font-size:.81rem}
.terms-cover h1 {margin:.8rem 0;font-size:clamp(2rem,4vw,3.55rem);line-height:1.35;color:white}
.terms-cover h1 span {color:#b4f1d9;display:block}
.terms-cover p {color:#e0edea;line-height:1.9;margin:0}

.terms-layout {
    display:grid;grid-template-columns:minmax(13rem,1fr) minmax(0,3fr);
    gap:.9rem clamp(.8rem,2vw,1.65rem);align-items:start;margin-block-start:1.25rem;
}
.terms-index,.terms-chapter {background:var(--card);border:1px solid var(--line);border-radius:1.1rem}
.terms-index {
    grid-column:1;position:sticky;top:.85rem;
    max-height:calc(100vh - 2rem);overflow:auto;padding:1rem;
}
.terms-index h2 {font-size:1.02rem;padding:.15rem .45rem .7rem;border-bottom:1px solid var(--line)}
.terms-index ul {list-style:none;padding:0;margin:.45rem 0 0}
.terms-index a {
    display:flex;align-items:center;gap:.65rem;min-height:44px;
    padding:.45rem .5rem;border-radius:.55rem;color:var(--muted);font-size:.87rem;line-height:1.6;
}
.terms-index a:hover,.terms-index a:focus-visible {background:var(--soft);color:var(--ink)}
.terms-icon {flex:none;width:1.18rem;height:1.18rem;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;fill:none}
.terms-index .terms-icon {color:var(--pine)}
.terms-chapters {display:grid;min-width:0;gap:.9rem}
.terms-chapter {padding:clamp(1.1rem,2.4vw,2rem);scroll-margin-top:1rem}
.terms-chapter:target {outline:2px solid var(--pine);outline-offset:2px}
.terms-chapter h2 {display:flex;align-items:center;gap:.75rem;font-size:clamp(1.12rem,2vw,1.48rem);color:var(--ink)}
.terms-symbol {display:grid;place-items:center;flex:none;width:2.55rem;height:2.55rem;border-radius:.85rem;background:var(--soft);color:var(--pine)}
.terms-symbol .terms-icon {width:1.45rem;height:1.45rem}
.terms-chapter p {margin:.85rem 0 0;line-height:2;color:var(--muted)}
#terms-payouts {
    border-color:color-mix(in srgb,var(--highlight) 50%,var(--line));border-inline-start:4px solid var(--highlight);
    background:linear-gradient(120deg,var(--card) 30%,color-mix(in srgb,var(--card) 92%,var(--highlight)));
}
#terms-payouts .terms-symbol {background:var(--highlight);color:#103a36}
#terms-payouts p:first-of-type {color:var(--ink);font-weight:600}
.terms-link {display:inline-flex;align-items:center;gap:.65rem;margin-top:.7rem;min-height:44px;color:var(--pine);font-weight:650}

@media(max-width:50rem) {
    .terms-layout {grid-template-columns:minmax(0,1fr)}
    .terms-chapters {display:contents}
    .terms-index,.terms-chapter {grid-column:1}
    .terms-index {position:static;grid-row:2;max-height:none}
    #terms-payouts {grid-row:1}
    .terms-index ul {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.15rem .45rem}
    .terms-cover-copy {max-width:68%}
}
@media(max-width:34rem) {
    [data-page=terms] .wrap {width:calc(100% - 1.25rem)}
    .terms-cover::before {
        background:linear-gradient(to top,#103a40 0%,#103a40 36%,#103a40d9 61%,#103a4010),
            url("plan-basic.webp") center 48% / cover no-repeat;
    }
    .terms-cover-copy {max-width:none;padding:6.5rem 1.15rem 1.3rem}
    .terms-cover h1 span {display:inline}
    .terms-cover h1 {font-size:1.85rem}
    .terms-cover p,.terms-chapter p {font-size:.93rem}
}
@media(max-width:23rem) {
    .terms-index ul {grid-template-columns:1fr}
}
