/* Policy Modal Styles */
.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.policy-modal-content {
    background: linear-gradient(135deg, #042878, #0a9bf4);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-policy-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 1100;
}

.close-policy-modal:hover {
    background: rgba(255, 255, 255, 0.4);
}

.policy-logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-policy {
    height: 50px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.policy-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.policy-tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.policy-tab-btn.active {
    color: white;
    border-bottom-color: #f2c632;
}

.policy-tab-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.policy-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.policy-tab-content.active {
    display: flex;
}

.policy-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #f2c632;
}

.policy-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.policy-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.policy-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.policy-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.policy-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.policy-section {
    margin-bottom: 25px;
}

.policy-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.policy-section h4 {
    font-size: 16px;
    margin: 15px 0 8px;
    color: rgba(255, 255, 255, 0.9);
}

.policy-section p, .policy-section li {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.policy-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-section a {
    color: #f2c632;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.policy-section a:hover {
    text-decoration: underline;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.cookie-table th, .cookie-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    text-align: left;
}

.cookie-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.policy-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.policy-accept-btn {
    padding: 12px 24px;
    background: white;
    color: #042878;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.policy-accept-btn:hover {
    background: #f2c632;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .policy-modal-content {
        padding: 20px;
        width: 95%;
        max-height: 90vh;
    }
    
    .policy-title {
        font-size: 20px;
    }
    
    .policy-tab-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .policy-section h3 {
        font-size: 16px;
    }
    
    .policy-section h4 {
        font-size: 15px;
    }
    
    .policy-section p, .policy-section li {
        font-size: 13px;
    }
    
    .cookie-table {
        font-size: 12px;
    }
    
    .cookie-table th, .cookie-table td {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .policy-modal-content {
        padding: 15px;
    }
    
    .close-policy-modal {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .logo-policy {
        height: 40px;
    }
    
    .policy-tabs {
        margin-bottom: 15px;
    }
    
    .policy-tab-btn {
        padding: 8px;
        font-size: 13px;
    }
    
    .policy-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .policy-accept-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}