.terms-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(88px, 12vw, 172px) clamp(62px, 8vw, 110px);
    color: var(--on-forest);
    background:
        linear-gradient(90deg, transparent 0 49.9%, rgba(234, 230, 219, .08) 50% 50.1%, transparent 50.2%),
        linear-gradient(rgba(234, 230, 219, .055) 1px, transparent 1px),
        var(--forest);
    background-size: 100% 100%, 100% 52px, auto;
}
.terms-hero::after {
    content: "";
    position: absolute;
    right: clamp(24px, 6vw, 96px);
    bottom: -65px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(219, 137, 103, .42);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(219, 137, 103, .05), 0 0 0 70px rgba(219, 137, 103, .035);
}
.terms-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: clamp(44px, 8vw, 130px); align-items: end; }
.terms-hero h1 { max-width: 11ch; margin: 18px 0 24px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.5rem, 8.5vw, 8rem); font-weight: 400; line-height: .9; letter-spacing: -.065em; }
.terms-lead { max-width: 57ch; margin: 0; color: #c9cec5; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.terms-revision { margin: 0; border-top: 1px solid rgba(234, 230, 219, .3); }
.terms-revision div { display: grid; grid-template-columns: 95px 1fr; gap: 18px; padding-block: 15px; border-bottom: 1px solid rgba(234, 230, 219, .17); }
.terms-revision dt { color: #aeb8ae; font-family: 'Courier New', monospace; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.terms-revision dd { margin: 0; font-size: .84rem; line-height: 1.55; }
.terms-revision a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.terms-revision a:hover { color: #db8967; }

.terms-layout { padding-block: clamp(58px, 8vw, 112px); }
.terms-contents { max-width: 980px; margin: 0 auto clamp(70px, 9vw, 126px); border-block: 1px solid var(--rule); }
.terms-contents summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 2px; cursor: pointer; font-family: 'Courier New', monospace; font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.terms-contents summary::marker { color: var(--accent); }
.terms-contents summary span:last-child { color: var(--muted); font-weight: 400; }
.terms-contents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; padding: 10px 0 30px; }
.terms-contents-grid nav > p { margin: 0 0 12px; color: var(--muted); font-family: 'Courier New', monospace; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.terms-contents ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 1.2rem; }
.terms-contents li { break-inside: avoid; padding: 3px 0 3px 5px; color: var(--muted); font-size: .76rem; }
.terms-contents a { color: var(--ink); text-decoration: none; }
.terms-contents a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.terms-document { max-width: 820px; margin-inline: auto; }
.terms-document-header { margin-bottom: clamp(56px, 8vw, 92px); padding-bottom: 34px; border-bottom: 1px solid var(--rule); }
.terms-document-header h2 { max-width: 18ch; margin: 16px 0 20px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.35rem, 5vw, 4.35rem); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.terms-document-header > p { margin: 0; color: var(--muted); font-family: 'Courier New', monospace; font-size: .75rem; letter-spacing: .06em; }
.terms-opening { margin-bottom: clamp(70px, 10vw, 120px); padding-left: clamp(0px, 5vw, 72px); border-left: 3px solid var(--accent); }
.terms-opening p:first-child { color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.52; letter-spacing: -.02em; }
.terms-document p { color: var(--body); font-size: clamp(.96rem, 1.25vw, 1.04rem); line-height: 1.85; }
.terms-document p + p { margin-top: 1.15em; }
.terms-section { scroll-margin-top: 32px; margin-block: clamp(68px, 9vw, 108px); }
.terms-section-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: baseline; margin-bottom: 30px; padding-block: 14px 17px; border-block: 1px solid var(--rule); }
.terms-section-heading > span { color: var(--accent); font-family: 'Courier New', monospace; font-size: .68rem; letter-spacing: .08em; }
.terms-section-heading h3 { margin: 0; color: var(--ink); font-family: 'Courier New', monospace; font-size: clamp(.8rem, 1.3vw, .94rem); line-height: 1.55; font-weight: 600; letter-spacing: .08em; }
.terms-section p { margin-inline-start: 66px; }
.terms-supplement { scroll-margin-top: 32px; margin-top: clamp(110px, 14vw, 180px); padding-top: clamp(62px, 8vw, 96px); border-top: 5px solid var(--forest); }
.terms-supplement > header { margin-bottom: 72px; }
.terms-supplement > header h2 { max-width: 17ch; margin: 17px 0 24px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.terms-supplement > header p { max-width: 64ch; }
.terms-help { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 28px; align-items: center; max-width: 980px; margin: clamp(90px, 12vw, 150px) auto 0; padding: 30px 0; border-block: 1px solid var(--rule); }
.terms-help p { margin: 0; color: var(--body); }
.terms-help .text-link { white-space: nowrap; }

@media (max-width: 900px) {
    .terms-hero-grid { grid-template-columns: 1fr; }
    .terms-hero h1 { max-width: none; }
    .terms-revision { max-width: 540px; }
    .terms-contents-grid { grid-template-columns: 1fr; }
    .terms-help { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 620px) {
    .terms-hero { padding-top: 74px; }
    .terms-hero::after { right: -90px; }
    .terms-revision div { grid-template-columns: 82px 1fr; }
    .terms-contents ol { columns: 1; }
    .terms-opening { padding-left: 22px; }
    .terms-section-heading { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
    .terms-section p { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .terms-contents a, .terms-revision a { transition: color .15s ease; }
}
