.terms-page {
    padding: 22px 24px 64px;
}

.terms-toolbar {
    width: min(940px, 100%);
    min-height: 54px;
    margin: 0 auto 34px;
    padding: 7px 8px 7px 12px;
    border: 1px solid var(--waybar-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--waybar-bg);
    box-shadow: var(--waybar-shadow);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.terms-back {
    min-height: 40px;
    padding: 0 12px 0 9px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--waybar-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.terms-back:hover {
    background: var(--waybar-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

.terms-back:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--waybar-accent) 34%, transparent);
    outline-offset: 2px;
}

.terms-back svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.terms-shell {
    width: min(880px, 100%);
    margin: 0 auto;
}

.terms-heading {
    margin-bottom: 34px;
    text-align: center;
}

.terms-heading h1 {
    margin: 0 0 16px;
    padding: 0;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.terms-heading > p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--waybar-muted);
    font-size: 14px;
    line-height: 1.75;
}

.terms-heading .terms-date {
    margin-top: 12px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.terms-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    list-style: none;
    counter-reset: terms;
}

.terms-list > li {
    position: relative;
    min-width: 0;
    padding: 25px 28px 25px 76px;
    border: 1px solid var(--card-border);
    border-radius: 17px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    counter-increment: terms;
    transition: border-color .18s ease, background-color .35s ease, box-shadow .35s ease, transform .18s ease;
}

.terms-list > li:hover {
    border-color: var(--waybar-border);
    transform: translateY(-2px);
}

.terms-list > li::before {
    content: counter(terms, decimal-leading-zero);
    position: absolute;
    top: 25px;
    left: 26px;
    color: var(--waybar-accent);
    font-size: 14px;
    font-weight: 700;
}

.terms-list h2 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

.terms-list p {
    margin: 0;
    color: var(--waybar-muted);
    font-size: 13px;
    line-height: 1.75;
}

@media (max-width: 620px) {
    .terms-page {
        padding: 14px 14px 42px;
    }

    .terms-toolbar {
        margin-bottom: 28px;
    }

    .terms-heading {
        margin-bottom: 26px;
    }

    .terms-heading h1 {
        font-size: 32px;
    }

    .terms-heading > p {
        font-size: 13px;
    }

    .terms-list > li {
        padding: 22px 20px 22px 58px;
    }

    .terms-list > li::before {
        top: 23px;
        left: 19px;
    }

    .terms-list h2 {
        font-size: 15px;
    }

    .terms-list p {
        font-size: 12px;
        line-height: 1.7;
    }
}
