.footer {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 40px 8% 25px;
    border-top: 1px solid #EAEAEA;
    margin-top: 30px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-brand .brand {
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-compliance {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fssai-wrapper {
    background: #f9f9f9;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fssai-wrapper img {
    height: 35px;
    object-fit: contain;
}

.fssai-wrapper span {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.5px;
}

.footer-powered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.powered-logo {
    height: 100px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.powered-text {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.footer-bottom-bar {
    padding-top: 25px;
    border-top: 1px solid #F0F0F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.policy-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    text-align: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.powered-inline-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin: 0 8px;
    object-fit: contain;
}

.company-policy-links {
    justify-content: flex-end;
}

@media (max-width: 850px) {
    .company-policy-links {
        justify-content: center;
    }
}

.policy-links a {
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 850px) {
    .footer {
        padding: 25px 5% 15px !important;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px !important; /* Reduced gap on mobile */
    }

    .footer-brand p {
        margin: 0 auto;
        font-size: 13px;
    }

    /* Image shrinking refinements */
    .footer-brand img {
        height: 28px !important; /* Shrunk Logo */
    }

    .footer-company img {
        height: 45px !important; /* Shrunk Superx Logo */
    }

    .fssai-wrapper {
        padding: 10px 20px !important; /* Shrunk wrapper */
    }

    .fssai-wrapper img {
        height: 28px !important; /* Shrunk Fssai image */
    }

    .footer-powered {
        align-items: center;
        text-align: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 60px; /* Safe padding for absolute navbars if any */
        text-align: center;
        font-size: 12px;
    }
}
