﻿/* Overlay */

.policy-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, .65);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    overflow-y: auto; /* Added */
    overscroll-behavior: contain;
}

    /* Open */

    .policy-modal.show {
        display: flex;
        animation: fadeIn .35s ease;
    }

/* Card */

.policy-card {
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.18);
    animation: popup .35s ease;
    display: flex; /* Added */
    flex-direction: column; /* Added */
}

/* Header */

.policy-header {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    background: #ffffff;
}

.policy-title {
    font-size: 28px;
    font-weight: 700;
    color: #0C5776;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .policy-title i {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #EAF6FB;
        color: #0C5776;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 22px;
    }

.close-policy {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #F4F6F8;
    cursor: pointer;
    transition: .3s;
}

    .close-policy:hover {
        background: #0C5776;
        color: #fff;
    }

/* Body */

.policy-body {
    padding: 35px;
    overflow-y: auto;
    flex: 1; /* Added */
    min-height: 0; /* Added */

    scrollbar-width: thin;
    overscroll-behavior: contain;
}
    .policy-body h3 {
        font-size: 22px;
        margin-bottom: 12px;
        color: #0C5776;
    }

    .policy-body p {
        color: #666;
        line-height: 1.9;
        margin-bottom: 18px;
    }

    .policy-body ul {
        padding-left: 20px;
    }

    .policy-body li {
        margin-bottom: 12px;
        color: #555;
    }

/* Footer */

.policy-footer {
    padding: 22px 30px;
    border-top: 1px solid #edf1f6;
    display: flex;
    justify-content: flex-end;
}

/* Button */

.policy-btn {
    padding: 13px 28px;
    border-radius: 50px;
    border: none;
    background: #0C5776;
    color: #fff;
    font-weight: 600;
    transition: .3s;
}

    .policy-btn:hover {
        background: #083A4F;
    }

/* Animation */

@keyframes popup {

    from {
        opacity: 0;
        transform: translateY(40px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.welcome-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .welcome-list li {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 10px 0;
        border-bottom: 1px solid #edf2f7;
    }

        .welcome-list li:last-child {
            border-bottom: none;
        }

        .welcome-list li i {
            color: #0C5776;
            font-size: 22px;
            margin-top: 3px;
            flex-shrink: 0;
        }

        .welcome-list li span {
            color: #555;
            line-height: 1.8;
            font-size: 16px;
        }

        .welcome-list li strong {
            color: #0C5776;
            font-weight: 700;
        }


.welcome-banner {
    text-align: center;
    margin-bottom: 35px;
}

    .welcome-banner h2 {
        color: #0C5776;
        font-size: 34px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .welcome-banner p {
        max-width: 650px;
        margin: auto;
    }

.feature-item {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #EAF6FB;
    color: #0C5776;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text h4 {
    color: #0C5776;
    margin-bottom: 6px;
    font-size: 20px;
}

.info-box {
    margin-top: 30px;
    padding: 24px;
    border-radius: 16px;
}

.philosophy {
    background: #F4FBFE;
    border-left: 5px solid #0C5776;
}

.quote-box {
    background: #FFF8EE;
    border-left: 5px solid #F59E0B;
}

    .quote-box blockquote {
        margin: 0;
        font-size: 18px;
        font-style: italic;
        line-height: 1.8;
    }

.future-box {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    background: #0C5776;
    color: #fff;
    padding: 25px;
    border-radius: 16px;
}

    .future-box i {
        font-size: 40px;
    }

    .future-box h4 {
        color: #fff;
        margin-bottom: 8px;
    }

    .future-box p {
        color: #fff;
        margin-bottom: 0;
    }
