/* ─── GLOBAL FOOTER & MODAL STYLES ────────────────── */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 50px 5% 30px;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.6;
    max-width: 260px;
    line-height: 1.6;
    text-align: left;
}

.footer-links h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-align: left;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 8px;
    transition: var(--transition);
    text-align: left;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--blue-lt);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    font-size: 0.82rem;
    opacity: 0.55;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--blue-lt);
}

/* ─── MODAL TERMS ────────────────────────────────── */
.modal-termos {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: white;
    margin: 4% auto;
    padding: 36px;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    position: relative;
    color: var(--text);
    animation: slideUp 0.3s ease;
}

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

.modal-content h2 {
    color: var(--navy);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--blue-lt);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.modal-body {
    max-height: 420px;
    overflow-y: auto;
    text-align: left;
    padding-right: 8px;
}

.modal-body h3 {
    color: var(--navy-mid);
    margin: 18px 0 8px;
    font-size: 0.95rem;
}

.modal-body p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    background: none;
    border: none;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--navy);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand p, .footer-links h4, .footer-links a {
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
