/* ============================================
   Privacy Policy Modal
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.modal-container {
    background: white;
    border-radius: 28px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.dark .modal-container {
    background: #1a2a22;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

body.dark .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b1a14;
    margin: 0;
}

body.dark .modal-header h2 {
    color: #e8f0ec;
}

/* Close Button */
.modal-close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(0, 166, 81, 0.1);
    color: #00A651;
    transform: rotate(90deg);
}

body.dark .modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

body.dark .modal-close-btn:hover {
    background: rgba(0, 166, 81, 0.15);
    color: #4cdb8f;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

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

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 166, 81, 0.2);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 166, 81, 0.3);
}

.modal-content {
    color: #1e293b;
}

body.dark .modal-content {
    color: #e2e8f0;
}

.modal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1a14;
    margin: 1.5rem 0 0.5rem;
}

body.dark .modal-content h3 {
    color: #e8f0ec;
}

.modal-content h3:first-of-type {
    margin-top: 0;
}

.modal-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 0.5rem;
}

body.dark .modal-content p {
    color: #94a3b8;
}

.modal-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.modal-content ul li {
    font-size: 0.95rem;
    color: #475569;
    padding: 0.3rem 0;
    position: relative;
}

body.dark .modal-content ul li {
    color: #94a3b8;
}

.modal-content ul li::before {
    content: "•";
    color: #00A651;
    font-weight: 700;
    position: absolute;
    left: -1.2rem;
}

.modal-content ul li strong {
    color: #0b1a14;
}

body.dark .modal-content ul li strong {
    color: #e8f0ec;
}

/* Modal Footer */
.modal-footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

body.dark .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.modal-close-btn-secondary {
    background: #00A651;
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.modal-close-btn-secondary:hover {
    background: #006C3B;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 166, 81, 0.25);
}

body.dark .modal-close-btn-secondary:hover {
    box-shadow: 0 4px 16px rgba(0, 166, 81, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 20px;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1rem 1.5rem;
    }

    .modal-footer {
        padding: 0.8rem 1.5rem 1.2rem;
    }

    .modal-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .modal-content h3 {
        font-size: 1rem;
    }

    .modal-content p,
    .modal-content ul li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        max-width: 98%;
        border-radius: 16px;
    }

    .modal-header {
        padding: 0.8rem 1rem;
    }

    .modal-header h2 {
        font-size: 1rem;
    }

    .modal-body {
        padding: 0.8rem 1rem;
    }

    .modal-footer {
        padding: 0.6rem 1rem 1rem;
    }

    .modal-close-btn-secondary {
        padding: 8px 24px;
        font-size: 0.85rem;
    }

    .modal-content ul {
        padding-left: 1rem;
    }
}