html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

.policy-sidebar {
    position: sticky;
    top: 100px;
    max-height: 85vh;
    overflow-y: auto;
    padding-right: 20px;
    overscroll-behavior: contain;
}
.policy-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--privacyPolicyColor);
}

.policy-nav {
    display: flex;
    flex-direction: column;
}
.policy-nav .nav-link {
    color: var(--privacyPolicyColor);
    font-size: 14px;
    padding: 8px 0 8px 14px;
    border-left: 2px solid transparent;
    text-decoration: none;
}

.policy-nav .nav-link.active {
    color: var(--colorBlue);
    border-left-color: var(--colorBlue);
    font-weight: 600;
}

.policy-nav .sub-link {
    padding-left: 28px;
    font-size: 13px;
}

.policy-nav .child-link {
    padding-left: 42px;
    font-size: 12px;
    color: #9ca3af;
}

.policy-content {
    padding-left: 20px;
}

@media (max-width: 991px) {
    .policy-sidebar {
        display: none;
    }

    .policy-content {
        padding-left: 0;
    }
}

.policy-switcher-item {
    border: 1px solid var(--border-gray);
    background: #fff;

    padding: 10px;
    border-radius: 10px;

    font-size: 8px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;

    transition: all 0.2s ease;

    cursor: pointer;
}

.policy-switcher-item:hover {
    border-color: var(--colorBlue);
    color: var(--colorBlue);
    cursor: pointer;
}

.policy-switcher-item.active {
    background: var(--colorBlue);
    border-color: var(--colorBlue);
    color: #fff;

    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

@media (min-width: 390px) {
    .policy-switcher-item {
        font-size: 10px;
    }
}
@media (min-width: 768px) {
    .policy-switcher-item {
        font-size: 13px;
        padding: 10px 16px;
    }
}

.policy-sidebar::-webkit-scrollbar {
    width: 4px;
}

.policy-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 20px;
}

.h4 {
    margin-left: 10px;
}
.h4 + ul,
.h4 + p,
.h4 + ol {
    margin-left: 10px;
}
.h5 {
    margin-left: 18px;
}
.h5 + ul,
.h5 + p,
.h5 + ol {
    margin-left: 18px;
}
.h6 {
    margin-left: 25px;
}

.h6 ~ p,
.h6 ~ ul,
.h6 ~ ol {
    margin-left: 25px;
}

p:has(+ .h3),
p:has(+ .h4),
p:has(+ .h5),
p:has(+ .h6),
ul:has(+ .h3),
ul:has(+ .h4),
ul:has(+ .h5),
ul:has(+ .h6) {
    margin-bottom: 1.5rem !important;
}
