#divFooter {
    color-scheme: dark;
    background-color: var(--md-default-bg-color);
    color: var(--md-default-fg-color);
}

#divFooter a {
    color: white;
}

/* layout footer link blocks into responsive columns */
#divFooterLinks {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem 15px;
    align-items: start;
}

#divFooterLinks h5 {
    font-weight: 500;
    /* margin-top: 0; */
}

#divFooterLinks>div {
    min-width: 0;
}

#divFooterLinks ul {
    /* padding-left: 1rem; */
    line-height: 1.6;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

@media (min-width: 800px) {
    #divFooterLinks h5 {
        margin: 0;
    }

    #divOutro {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
        align-items: center;
    }

    /* right-align the content in the second column on wider screens */
    #divOutro>div:nth-child(2) {
        justify-self: end;
        text-align: right;
    }
}

/* 
For widths between 801px and 1279px: 
- make first child full width,
- keep the next three child columns on the same row with equal widths
*/
@media (min-width: 801px) and (max-width: 1279px) {

    #divFooterLinks {
        grid-template-columns: repeat(3, 1fr);
        /* 3 units for the first child, 1 unit each for the next three children */
    }

    #divFooterLinks>div:first-child {
        grid-column: 1 / -1;
        /* make the first child span all columns */
    }

    #divOutro {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
        align-items: center;
    }

    /* right-align the content in the second column on wider screens */
    #divOutro>div:nth-child(2) {
        justify-self: end;
        text-align: right;
    }
}

/*  On larger screens, make the first column wider */
@media (min-width: 1280px) {
    #divFooterLinks {
        /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

#divOutro {
    padding: 1.25rem 15px;
    border-top: 1px solid #fff;
}