function openPrivacy() {
    const modalHTML = `
        <div id="privacyOverlay" style="
            position: fixed;
            top:0; left:0;
            width:100%; height:100%;
            background: rgba(0,0,0,0.7);
            z-index:9999;
        ">
            <div style="
                position: absolute;
                top:5%; left:50%;
                transform: translateX(-50%);
                width:80%;
                max-width:900px;
                height:85%;
                background:#fff;
                border-radius:8px;
                overflow:hidden;
                box-shadow:0 4px 12px rgba(0,0,0,0.3);
            ">
                <span onclick="closePrivacy()" style="
                    position:absolute;
                    right:15px;
                    top:10px;
                    color: #000000;
                    background: #333;
                    font-size:24px;
                    cursor:pointer;
                    z-index:10000;
                ">&times;</span>

                <iframe src="privacy" style="
                    width:100%;
                    height:100%;
                    border:none;
                "></iframe>
            </div>
        </div>
    `;

    document.getElementById("modalContainer").innerHTML = modalHTML;
}

function closePrivacy() {
    document.getElementById("modalContainer").innerHTML = "";
}