html {
    scroll-behavior: smooth;
}

.terms-wrap {
    padding: 14px 0 28px;
}

.terms-page-title {
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 2px solid #243b53;
    color: #243b53;
    line-height: 1.04;
    font-weight: 700;
}

.terms-content {
    padding: 18px 0 0;
    color: #1f2937;
}

.terms-layout {
    align-items: flex-start;
    --bs-gutter-x: 1.2rem;
}

.terms-layout > aside {
    position: sticky;
    top: 84px;
    align-self: flex-start;
}

.toc {
    max-height: calc(100vh - 104px);
    overflow-y: auto;
}

.toc-body {
    padding: 4px 6px;
}

.toc-title {
    margin: 0 0 8px;
    color: #346eb4;
    font-size: 14px;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.toc-list {
    margin: 0;
    padding: 0 0 0 20px;
}

.toc-item {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

.toc-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
}

.toc-link-active {
    color: #1d66b2;
    font-weight: 600;
}

.toc-link:hover {
    color: #1d66b2;
    text-decoration: underline;
}

.terms {
    padding: 0;
    min-width: 0;
}

.terms h1,
.terms h2,
.terms h3,
.terms p,
.terms li {
    color: #4a5563;
}

.terms h1 {
    margin: 0 0 14px;
    color: #1267b4;
    line-height: 1.12;
    font-weight: 700;
}

.terms h2 {
    color: #1267b4;
}



.terms h3 {
    margin: 22px 0 8px;
    color: #1267b4;
    font-weight: 700;
    scroll-margin-top: 90px;
}

.terms p,
.terms li {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
}

.terms ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.terms ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.terms a {
    color: #1d66b2;
}

@media (max-width: 1080px) {
    .terms-layout > aside {
        position: static;
    }

    .toc {
        max-height: none;
        overflow: visible;
    }

    .terms h1 {
        font-size: 44px;
    }

    .terms-page-title {
        font-size: 40px;
    }

    .terms h2 {
        font-size: 40px;
    }

    .terms h3 {
        font-size: 30px;
    }

    .terms p,
    .terms li,
    .toc-item {
        font-size: 13px;
    }
}
