/* ============================================
   Privacy Policy Modal
   ============================================ */

.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 必须高于 H5 mobile-menu 的 99999 才能覆盖 */
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.privacy-modal.privacy-modal--active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.privacy-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 1, 7, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.privacy-modal__container {
    position: relative;
    z-index: 10001;
    width: 780px;
    height: 600px;
    /* background-color: rgba(03, 01, 07, 0.9); */
    background-image: linear-gradient(135deg, rgba(38, 14, 94, 0.3) 0%, rgba(89, 70, 253, 0.1) 100%);
    overflow: visible; /* 改为 visible，让四角装饰可以显示在外面 */
    transform: scale(0.9);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease;
}

.privacy-modal__container::after {
    /* 隐私政策弹窗的四角小方块装饰，逻辑与 opacity_card 相同 */
    content: '';
    position: absolute;
    inset: -4px;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(#BFC9FF, #BFC9FF) top left / 8px 8px no-repeat,
        linear-gradient(#BFC9FF, #BFC9FF) top right / 8px 8px no-repeat,
        linear-gradient(#BFC9FF, #BFC9FF) bottom left / 8px 8px no-repeat,
        linear-gradient(#BFC9FF, #BFC9FF) bottom right / 8px 8px no-repeat;
}

.privacy-modal--active .privacy-modal__container {
    transform: scale(1);
}

.privacy-modal__content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 48px 56px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, rgba(137, 73, 248, 0.6) 0%, rgba(54, 51, 225, 0.4) 100%) 1;
}

.privacy-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    padding: 0;
    border-radius: 4px;
}

.privacy-modal__close:hover {
    opacity: 0.8;
}

.privacy-modal__close-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.privacy-modal__title {
    font-family: "PingFang SC", sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    padding-right: 40px;
}

.privacy-modal__body {
    flex: 1;
    overflow-y: auto;
    font-family: "PingFang SC", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: #F4F5F6;
    padding-right: 14px;
}

.privacy-modal__body p {
    margin: 0 0 16px 0;
}

.privacy-modal__body p:last-child {
    margin-bottom: 0;
}

.privacy-modal__body h3 {
    font-family: "PingFang SC", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background: var(--gradient-title-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 24px 0 12px 0;
}

.privacy-modal__body h3:first-child {
    margin-top: 0;
}

.privacy-modal__body ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style: disc ;
    list-style-position: outside;
}

.privacy-modal__body ol {
    margin: 12px 0;
    padding-left: 24px;
    list-style: decimal ;
    list-style-position: outside;
}

.privacy-modal__body ul li,
.privacy-modal__body ol li {
    margin: 8px 0;
    line-height: 1.33;
    color: #F4F5F6;
    list-style: inherit ;
    display: list-item;
}

/* Custom Scrollbar */
.privacy-modal__content::-webkit-scrollbar,
.privacy-modal__body::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal__content::-webkit-scrollbar-track,
.privacy-modal__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.privacy-modal__content::-webkit-scrollbar-thumb,
.privacy-modal__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.privacy-modal__content::-webkit-scrollbar-thumb:hover,
.privacy-modal__body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}


@media (max-width: 768px) {
    .privacy-modal__container {
        width: 90vw;
        height: 80vh;
        max-height: 600px;
    }

    .privacy-modal__content {
        padding: 32px 24px;
    }

    .privacy-modal__title {
        font-size: 24px;
        margin-bottom: 24px;
        padding-right: 32px;
    }

    .privacy-modal__body {
        font-size: 14px;
    }

    .privacy-modal__close {
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
    }
}

