/* Footer Styles - Shared across all pages */

/* Ensure CSS variables are available */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #06b6d4;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
}

footer {
    background: #0a0f1e;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #3b82f6;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-form input {
    padding: 0.8rem;
    background: #1e293b;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
}

.newsletter-form button {
    padding: 0.8rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: #94a3b8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* first element of footer-section grid: Contact info */
.footer-content .footer-section:nth-child(1) {
    text-align: left;
}

/* second element of footer-section grid: Quick Links */
.footer-content .footer-section:nth-child(2) {
    text-align: left;
}

/* third element of footer-section grid: Connect with us */
.footer-content .footer-section:nth-child(3) {
    text-align: left;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: underline;
    cursor: pointer;
}

.footer-links a:hover {
    color: #3b82f6;
}

.flag-image img {
    vertical-align: middle; /* aligns image to middle of surrounding text */
}

/* Modal for policies */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    padding: 3rem;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    position: relative;
    border: 1px solid #3b82f6;
    max-height: 90vh;
    overflow-y: auto;
}

/* Prevent background scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #3b82f6;
}

.policy-content {
    line-height: 1.8;
}

.policy-content h2 {
    color: #3b82f6;
    margin-bottom: 1rem;
}

.policy-content h3 {
    color: #3b82f6;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    margin-bottom: 1rem;
    color: #94a3b8;
}

.policy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}