/* MODAL OVERLAYS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-dark);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    /* Scrollable if too tall */
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-main);
}

/* Internal Sections */
.modal-content .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-content .section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Delete Account Card */
.delete-account-card {
    text-align: center;
}

.delete-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.step-item {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

.step-number {
    background: var(--text-main);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.delete-note {
    font-size: 0.9rem;
    color: #ef4444;
    opacity: 0.8;
}

/* FAQ Styles */
.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-main);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
}

.faq-answer p {
    padding-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Legal Content */
.legal-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-list {
    list-style-type: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.legal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-main);
    font-weight: bold;
}

.legal-list li strong {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-height: 85vh;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}