.terms-hero .terms-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 6vw, 88px);
    max-width: 1080px;
    padding-block: clamp(44px, 8vw, 100px);
}

.terms-hero h1 {
    font-size: clamp(2.15rem, 5.1vw, 4.65rem);
    text-wrap: initial;
    overflow-wrap: anywhere;
}

.terms-hero__copy p {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.terms-current {
    min-width: 0;
    padding: clamp(22px, 3.2vw, 34px);
    border-top: 4px solid var(--coral);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow);
}

.terms-current .terms-current__label {
    color: var(--blue);
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.terms-current__version {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
}

.terms-current time {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.terms-current__actions,
.terms-archive__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 16px;
}

.terms-current__actions {
    margin-top: 21px;
}

.terms-current .terms-current__button {
    padding-inline: clamp(14px, 2.6vw, 25px);
    max-width: 100%;
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    box-shadow: none;
    text-align: center;
}

.terms-current .terms-current__button:hover,
.terms-current .terms-current__button:focus-visible {
    border-color: var(--blue);
    background: var(--blue);
}

.terms-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(20px, 3vw, 36px);
    max-width: 1080px;
}

.terms-panel {
    min-width: 0;
    padding: clamp(20px, 3.3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.terms-panel h2 {
    margin-bottom: 20px;
    color: var(--navy);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.terms-archive,
.terms-changelog {
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-archive li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.terms-archive li:last-child {
    padding-bottom: 0;
}

.terms-archive time,
.terms-changelog time {
    color: var(--muted);
    font-size: .9rem;
}

.terms-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--blue);
    font-size: .93rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: .22em;
}

.terms-link:hover {
    color: var(--navy);
}

.terms-hero .terms-hero__navigation {
    margin-top: 10px;
    color: var(--white);
}

.terms-link:focus-visible,
.terms-current__button:focus-visible,
.terms-contents summary:focus-visible,
.terms-contents a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.terms-changelog li {
    position: relative;
    padding: 0 0 19px 19px;
    border-left: 1px solid var(--line);
}

.terms-changelog li:last-child {
    padding-bottom: 0;
}

.terms-changelog li::before {
    content: "";
    position: absolute;
    top: .39rem;
    left: -5px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--coral);
    border-radius: 50%;
    background: var(--white);
}

.terms-changelog li:first-child::before {
    background: var(--coral);
}

.terms-changelog h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 13px;
    line-height: 1.32;
}

.terms-changelog h3 time {
    font-weight: 600;
    letter-spacing: normal;
}

.terms-changelog p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.terms-hero__navigation:focus-visible {
    outline-color: var(--white);
}

.terms-reader {
    max-width: 780px;
    font-size: clamp(1rem, 1.65vw, 1.1rem);
}

.terms-reader,
.terms-clause,
#archief {
    scroll-margin-top: 110px;
}

.terms-contents {
    margin-bottom: clamp(30px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--soft);
    color: var(--navy);
}

.terms-contents summary {
    min-height: 48px;
    padding: 11px 18px;
    border-radius: inherit;
    font-weight: 800;
    cursor: pointer;
}

.terms-contents[open] summary {
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.terms-contents ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    column-gap: 22px;
    margin: 0;
    padding: 8px 18px 12px;
    list-style: none;
}

.terms-contents a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-block: 6px;
    color: var(--blue);
    font-size: .94rem;
    line-height: 1.45;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.terms-clause + .terms-clause {
    margin-top: clamp(24px, 4vw, 40px);
    padding-top: clamp(24px, 4vw, 40px);
    border-top: 1px solid var(--line);
}

.terms-clause h2 {
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid var(--coral);
    color: var(--navy);
    font-size: clamp(1.38rem, 3vw, 2rem);
    line-height: 1.22;
    text-wrap: initial;
}

.terms-clause__number {
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.terms-clause p {
    margin-bottom: 1em;
    overflow-wrap: anywhere;
}

.terms-clause p:last-child {
    margin-bottom: 0;
}

.terms-reader__index {
    margin-top: 20px;
}

@media (max-width: 700px) {
    .terms-hero .terms-hero__inner,
    .terms-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
