/* ========================================
   Privacy Policy Modal Styles
   (Mobile Responsive)
   ======================================== */

/* Modal Overlay */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.privacy-modal.show {
    display: block;
}

.privacy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal Content */
.privacy-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.privacy-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #13736c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.privacy-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #004f00;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.privacy-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.privacy-modal-close:hover {
    background-color: #f0f0f0;
    color: #13736c;
}

/* Modal Body */
.privacy-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    font-family: 'Cairo', sans-serif;
}

.privacy-modal-body::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: #13736c;
    border-radius: 10px;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover {
    background: #12605a;
}

/* Modal Footer */
.privacy-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    flex-shrink: 0;
}

.btn-modal-close {
    background-color: #13736c;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    background-color: #12605a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(19, 115, 108, 0.3);
}

/* IT-Recht-Kanzlei Embed */
.itrk-legaltext {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 8px;
    }
    
    .privacy-modal-header {
        padding: 15px 20px;
    }
    
    .privacy-modal-header h2 {
        font-size: 20px;
    }
    
    .privacy-modal-close {
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
    
    .privacy-modal-body {
        padding: 20px;
    }
    
    .privacy-modal-footer {
        padding: 12px 20px;
    }
    
    .btn-modal-close {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .privacy-modal-content {
        width: 98%;
        max-height: 92vh;
        border-radius: 6px;
    }
    
    .privacy-modal-header {
        padding: 12px 15px;
    }
    
    .privacy-modal-header h2 {
        font-size: 18px;
    }
    
    .privacy-modal-close {
        font-size: 24px;
        width: 32px;
        height: 32px;
    }
    
    .privacy-modal-body {
        padding: 15px;
        font-size: 14px;
    }
    
    .privacy-modal-footer {
        padding: 10px 15px;
    }
    
    .btn-modal-close {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .privacy-modal-content {
        max-height: 95vh;
    }
    
    .privacy-modal-header {
        padding: 10px 15px;
    }
    
    .privacy-modal-body {
        padding: 15px;
    }
    
    .privacy-modal-footer {
        padding: 8px 15px;
    }
}
