.ag-footer {
    --ag-footer-bg: #ffffff;
    --ag-footer-line: #2A2A2F;
    --ag-footer-title-color: #000000;
    /* Based on image, titles look dark in the white background but user provided 'color: white' in code. Wait, looking at the image, it's a WHITE background footer. But the user's code says background: #2A2A2F for the line. Let's look at the image again. */
    --ag-footer-text-color: #C6C6C6;
    --ag-footer-accent: #3192E8;
    --ag-footer-font-title: 'Merriweather Sans', sans-serif;
    --ag-footer-font-text: 'Poppins', sans-serif;

    background-color: var(--ag-footer-bg);
    padding: 60px 0 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* User's image shows a white background. User's HTML snippet has many absolute elements. 
   In the image, the logo is top right. In the code, logo is at left: 998px, top: 0px.
   There is a line at top: 134px.
*/

.ag-footer__container {
    max-width: 1315px;
    margin: 0 auto;
    padding: 0 20px;
}

.ag-footer__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.ag-footer__logo img {
    height: auto;
}

.ag-footer__line {
    width: 100%;
    height: 1px;
    background-color: var(--ag-footer-line);
    margin-bottom: 90px;
}

.ag-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.ag-footer__col-title {
    font-family: var(--ag-footer-font-title);
    font-weight: 700;
    font-size: 27px;
    color: var(--ag-footer-title-color);
    margin-bottom: 30px;
}

.ag-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ag-footer__list-item {
    margin-bottom: 15px;
}

.ag-footer__link,
.ag-footer__text {
    font-family: var(--ag-footer-font-text);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.35px;
    color: var(--ag-footer-text-color);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.ag-footer__link:hover {
    color: var(--ag-footer-accent);
}

.ag-footer__socials {
    display: flex;
    gap: 15px;
}

.ag-footer__social-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--ag-footer-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ag-footer__social-icon i {
    color: inherit;
}

.ag-footer__social-icon svg {
    width: 20px;
    height: auto;
    fill: currentColor;
}

.ag-footer__social-icon:hover {
    transform: translateY(-5px);
    background-color: #2578c2;
}

.ag-footer__social-icon img {
    width: 20px;
    height: auto;
}

.ag-footer__bottom {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    /* Already have top line */
}

.ag-footer__copyright,
.ag-footer__privacy {
    font-family: var(--ag-footer-font-text);
    font-weight: 400;
    font-size: 14px;
    color: var(--ag-footer-text-color);
}

.ag-footer__privacy {
    text-decoration: none;
    transition: color 0.3s ease;
}

.ag-footer__privacy:hover {
    color: var(--ag-footer-accent);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .ag-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }
}

@media (max-width: 767px) {
    .ag-footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ag-footer__header {
        justify-content: center;
    }

    .ag-footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .ag-footer__col-title {
        font-size: 22px;
    }
}