.site-footer {

    margin-top: 4rem;

    border-top: 1px solid var(--border);

    background: #fafafa;
}

.site-footer__inner
{
    max-width: 1400px;

    margin: auto;

    padding: 2.5rem 2rem;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 4rem;

    align-items: start;
}

.site-footer p {

    margin-top: .5rem;

    color: var(--text-light);
}

.footer-brand
{
    display: flex;

    align-items: flex-start;

    gap: .85rem;
}

.footer-brand img
{
    display: block;

    width: auto;

    height: 42px;

    flex-shrink: 0;
}

.footer-brand__content
{
    display: flex;

    flex-direction: column;
}

.footer-brand__content strong
{
    font-size: 1.55rem;

    font-weight: 700;

    line-height: 1.1;

    color: var(--text);
}

.footer-brand__content p

{

    max-width: 19rem;

    margin-top: .35rem;

    color: var(--text-light);

    line-height: 1.4;

}

.footer-brand strong
{
    font-size: 1.2rem;

    font-weight: 700;

    color: var(--text);
}


.site-footer__credits
{
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: .45rem;

    justify-self: end;

    text-align: right;
}

.site-footer__credits p

{

    max-width: 27rem;

    margin: 0;

    color: var(--text-light);

    font-size: 1.1rem;

    line-height: 1.35;

}

.site-footer__credits a
{
    color: var(--primary);

    font-weight: 600;
}




.site-footer__contact
{
    text-align: center;
}

.site-footer__contact-title
{
    margin-bottom: .75rem;

    color: var(--text-light);

    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer__contact-email
{
    display: inline-block;

    margin-bottom: .75rem;

    color: var(--primary);

    font-size: 1.35rem;
    font-weight: 700;

    transition: color .2s ease;
}

.site-footer__contact-email:hover
{
    color: var(--primary-dark);
}

.site-footer__contact-text

{

    max-width: 24rem;

    margin: .75rem auto 0;

    color: var(--text-light);

    font-size: .9rem;

    line-height: 1.6;

}


.site-footer__project
{
    justify-self: start;
}

.site-footer__contact
{
    justify-self: center;

    text-align: center;
}

.site-footer__credits
{
    justify-self: end;

    text-align: right;
}


@media (max-width: 1000px)
{
    .site-footer__inner
    {
        grid-template-columns: 1fr;

        gap: 2.5rem;
    }

    .site-footer__project,
    .site-footer__contact,
    .site-footer__credits
    {
        justify-self: center;

        text-align: center;
    }

    .site-footer__credits
    {
        align-items: center;
    }

    .footer-brand__content p,
    .site-footer__contact-text,
    .site-footer__credits p
    {
        max-width: 32rem;
    }
}


/* ==========================================================================
   Footer legal links
   Legal Notice · Privacy Policy · Cookie Policy
   ========================================================================== */

.site-footer__legal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.site-footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

.site-footer__legal span {
    color: #9aa3a0;
}

@media (max-width: 900px) {

    .site-footer__legal {
        justify-content: center;
        margin-top: 1rem;
    }

}