html, body {
    overscroll-behavior-y: none; 
   
}



/* --- Global Footer Styles --- */
.main-footer {
    background-color: #31214a;
    margin: 0; /* Forces it to sit flush against the bottom edge */
    width: 100%;
    box-sizing: border-box;
    /* ... keep your existing footer padding here ... */
}

.footer-container {
    max-width: 1000px;
    margin: 5px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
   
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 24px;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    color: gold;
    margin: 0 2%;
}

.footer-tagline {
    font-size: 14px;
    color: #b0bec5;
    margin: 0 2%;
}

.footer-section h4 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #4fc3f7; /* Blue accent color matching your avatars */
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-disclaimer {
    max-width: 1000px;
    margin: 20px auto 0;
    font-size: 12px;
    color: #90a4ae;
    line-height: 1.5;
    text-align: center;
}

.footer-bottom {
    max-width: 1000px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 13px;
    color: #b0bec5;
}
/* --- Small Screens (Mobile Phones) --- */
@media (max-width: 576px) {
    .main-footer {
        /* Padding keeps the purple background full-width, but pushes the text inward by 24px on the left and right */
        padding: 35px 24px calc(20px + env(safe-area-inset-bottom)) 24px;
    }

    .footer-container {
        display: flex;
        flex-direction: column; /* Forces the columns to stack vertically on small screens */
        margin: 0 10px; /* Adds a secondary inner margin buffer to guarantee text never hits the edge */
        gap: 25px; /* Adds breathing room between the stacked sections */
    }

    .footer-section {
        width: 100%;
    }

    .footer-logo {
        font-size: 22px; /* Scales the logo down slightly to fit smaller screens better */
    }

    .footer-section h4 {
        margin-bottom: 10px; /* Tightens the gap beneath headers on mobile */
    }

    .footer-disclaimer {
        margin: 15px 10px 0; /* Applies side margins strictly to the disclaimer paragraph */
        font-size: 11px; /* Slightly smaller for readability on narrow screens */
    }
}