/* The same editorial palette and rhythm as Purpose, with room to read the terms. */
body.page-terms.theme-stone #hero-container { background: var(--sky); }
.terms-page { color: var(--forest); background: var(--stone); }
.terms-page * { box-sizing: border-box; }
.terms-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.terms-page .terms-kicker { font-family: 'Stratos Medium', sans-serif; font-size: 14px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 26px; }
.terms-intro { padding: 58px 0 62px; background: var(--sky); }
.terms-intro .terms-kicker { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.terms-intro .terms-kicker::before { content: ''; width: 40px; height: 1px; background: currentColor; flex: none; }
.terms-page h1 { max-width: 980px; font-size: clamp(40px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 32px; }
.terms-lead { max-width: 820px; }
.terms-lead p { font-size: clamp(21px, 2vw, 28px); line-height: 1.45; margin: 0; }
.terms-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 9%; align-items: start; padding-block: 64px 100px; }
.terms-sidebar { position: sticky; top: 30px; }
.terms-sidebar nav { border-top: 1px solid #082e2a55; padding-top: 24px; }
.terms-contents { list-style: none; counter-reset: terms; padding: 0; margin: 0; }
.terms-contents li { counter-increment: terms; }
.terms-contents a { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-block: 8px; font-size: 16px; line-height: 1.35; }
.terms-contents a::before { content: counter(terms, decimal-leading-zero); font-size: 12px; line-height: 1.8; font-family: 'Stratos Medium', sans-serif; color: #526a60; }
.terms-page a { color: inherit; text-underline-offset: .22em; }
.terms-contents a { text-decoration: none; }
.terms-page a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; }
.terms-page a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.terms-updated { border-top: 1px solid #082e2a35; padding-top: 20px; margin: 24px 0; font-size: 14px; line-height: 1.6; }
.terms-contact { display: block; padding: 22px; background: var(--lime); font-size: 15px; line-height: 1.45; text-decoration: none; }
.terms-contact > span { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 21px; margin-top: 12px; }
.terms-copy { min-width: 0; }
.terms-overview { padding-bottom: 30px; }
.terms-copy p, .terms-section-body { font-size: 18px; line-height: 1.7; }
.terms-copy p { margin: 0 0 1.3em; }
.terms-copy strong { font-family: 'Stratos Medium', sans-serif; font-weight: normal; }
.terms-section { border-top: 1px solid #082e2a40; padding-block: 34px 40px; scroll-margin-top: 32px; }
.terms-section-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; align-items: baseline; margin-bottom: 24px; }
.terms-number { font-family: 'Stratos Medium', sans-serif; font-size: 14px; }
.terms-page .terms-section h2 { margin: 0; font-size: clamp(27px, 2.5vw, 36px); line-height: 1.15; letter-spacing: -.03em; }
.terms-section-body ul { padding-left: 1.2em; margin: 0; }
.terms-section-body li { padding-left: .35em; margin-bottom: .8em; }
.terms-section-body li::marker { color: #6c8679; font-size: .8em; }
.terms-section-body li:last-child, .terms-section-body p:last-child { margin-bottom: 0; }
.terms-top-link { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid #082e2a40; font-size: 17px; text-decoration: none; }
@media (min-width: 1600px) {
    .terms-shell { width: min(1320px, calc(100% - 96px)); }
    .terms-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 12%; }
}
@media (max-width: 969px) {
    .terms-layout { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
    .terms-sidebar { position: static; }
    .terms-contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
    .terms-contact { max-width: 400px; }
    .terms-section, #terms-top { scroll-margin-top: 125px; }
}
@media (max-width: 767px) {
    .terms-shell { width: calc(100% - 40px); }
    .terms-intro { padding: 40px 0; }
    .terms-intro .terms-kicker { font-size: 14px; gap: 12px; }
    .terms-intro .terms-kicker::before { width: 24px; }
    .terms-page h1 { margin-bottom: 24px; }
    .terms-layout { padding-bottom: 60px; }
    .terms-contents { column-gap: 20px; }
    .terms-contents a { font-size: 15px; grid-template-columns: 20px 1fr; gap: 8px; padding-block: 9px; }
    .terms-overview { padding-bottom: 20px; }
    .terms-copy p, .terms-section-body { font-size: 17px; line-height: 1.65; }
    .terms-section { padding-block: 28px 32px; }
    .terms-section-heading { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; margin-bottom: 22px; }
}
@media print {
    body.page-terms #hero-container, body.page-terms #row-footer, .terms-sidebar nav, .terms-contact, .terms-top-link { display: none !important; }
    .terms-sidebar { position: static; }
    .terms-updated { border: 0; padding: 0; }
    .terms-page, .terms-intro { background: white; color: black; }
    .terms-shell { width: 100%; }
    .terms-intro { padding-block: 0 24px; }
    .terms-layout { display: block; padding-block: 0; }
    .terms-page h1 { font-size: 32pt; }
    .terms-lead p { font-size: 13pt; }
    .terms-copy p, .terms-section-body { font-size: 11pt; }
    .terms-section-heading { break-after: avoid; }
    .terms-section { padding-block: 20px; }
    .terms-section li { break-inside: avoid; }
}
