.footer .container {
    width: 90%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 0.9375rem;
}

.footer {
    background: var(--text-dark);
    color: var(--background);
    padding: 5rem 0 1.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.125rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5625rem;
    position: relative;
    color: var(--background);
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -0.625rem;
    left: 0;
    width: 2.5rem;
    height: 0.1875rem;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 0.625rem;
    width: 1.25rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 0.3125rem;
}

.copyright {
    text-align: center;
    padding-top: 1.875rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.legal-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.legal-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-light);
}

.footer-p {
    margin-bottom: 1.5rem;
    color: #9e9494;
}

@media (max-width: 62rem) {
    .legal-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media only screen and (max-width: 1024px) {
    .footer {
        padding: 50px 0 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }
}

@media only screen and (max-width: 480px) {
    .footer {
        padding: 60px 0 20px;
    }

    .footer-grid {
        gap: 30px;
        margin-bottom: 35px;
    }

    .footer-column h3 {
        margin-bottom: 20px;
    }

    .copyright {
        padding-top: 20px;
    }
}
