.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.3s ease-out;
}
.privacy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.privacy-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 550px;
    padding: 30px;
    position: relative;
    z-index: 10000;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}
.privacy-modal-content h2 {
    font-size: 1.6em;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}
.privacy-modal-content p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
.privacy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}
.privacy-button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-grow: 1;
    text-align: center;
}
.privacy-button.primary {
    background-color: #007bff;
    color: #fff;
}
.privacy-button.primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}
.privacy-button.secondary {
    background-color: #6c757d;
    color: #fff;
}
.privacy-button.secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}
.privacy-button.tertiary {
    background-color: #e9ecef;
    color: #333;
    border: 1px solid #ced4da;
}
.privacy-button.tertiary:hover {
    background-color: #d6d8db;
    transform: translateY(-1px);
}

.settings-view .settings-description {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 25px;
}
.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f8f9fa;
}
.cookie-category .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.cookie-category h3 {
    font-size: 1.1em;
    color: #333;
    margin: 0;
}
.cookie-category p {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: #007bff;
}
input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.slider.round {
    border-radius: 25px;
}
.slider.round:before {
    border-radius: 50%;
}
input:disabled + .slider {
    background-color: #a8a8a8;
    cursor: not-allowed;
}
input:disabled + .slider:before {
    background-color: #e0e0e0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.privacy-modal-content {
    animation: slideInUp 0.3s ease-out;
}

@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        padding: 20px;
    }
    .privacy-modal-content h2 {
        font-size: 1.4em;
    }
    .privacy-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .privacy-buttons {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .privacy-modal-content {
        padding: 15px;
    }
    .privacy-modal-content h2 {
        font-size: 1.3em;
    }
    .privacy-button {
        width: 100%;
    }
    .cookie-category {
        padding: 10px;
    }
    .cookie-category h3 {
        font-size: 1em;
    }
    .cookie-category p {
        font-size: 0.8em;
    }
}