:root {
    --footer-height: auto;
    --footer-text-color: var(--color-text);
    --footer-hover-color: var(--color-accent);
    --footer-font-size: 0.8em;
}

footer {
    height: var(--footer-height);
    background-color: var(--color-primary);
    min-height: 300px;
}

.footer-logo-container {
    flex: 1;
    padding: 2em 1em 1em 1em;
}

.footer-logo-container .footer-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 0;
}

.footer-column:nth-child(1),
.footer-column:nth-child(2) {
    text-align: left;
}

.footer-column:nth-child(4),
.footer-column:nth-child(5) {
    text-align: right;
}

.footer-column-title {
    color: var(--footer-text-color);
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 1em 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--footer-hover-color);
}

.footer-logo-space {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1em;
}

.footer-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.footer-legal {
    padding: 1em;
}

.footer-legal,
.footer-legal li,
.footer-legal a {
    color: var(--color-text-alt);
    font-size: var(--footer-font-size);
    font-weight: 400;
}

.footer-legal ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal ul li {
    margin: 5px 0;
    display: flex;
}

.footer-legal ul li a {
    align-content: center;
}

.footer-legal ul li.separator-line,
.footer-legal ul li.footer-separator {
    width: 1px;
    min-width: 1px;
    margin: 0 10px;
}

.footer-legal ul li.separator-line {
    height: 0.9em;
    min-height: 15px;
    background-color: var(--color-text-alt);
}

.footer-legal ul a:hover {
    color: var(--footer-hover-color);
}

@media all and (max-width: 1025px) {
    .footer-columns {
        flex-wrap: wrap;
    }

    .footer-column {
        flex: 1 1 calc(50% - 20px);
        min-width: 200px;
    }

    .footer-column:nth-child(1),
    .footer-column:nth-child(4) {
        text-align: left;
    }

    .footer-column:nth-child(2),
    .footer-column:nth-child(5) {
        text-align: right;
    }

    .footer-logo-space {
        flex: 1 1 100%;
        order: -1;
        margin-bottom: 2em;
    }
}

@media all and (max-width: 768px) {
    footer {
        height: auto;
        min-height: 900px;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        flex: 1 1 100%;
        width: 100%;
        margin-bottom: 0.5em;
    }

    .footer-column-title {
        margin: 0 0 0.2em 0;
    }

    .footer-column:nth-child(1),
    .footer-column:nth-child(2),
    .footer-column:nth-child(4),
    .footer-column:nth-child(5) {
        text-align: center;
    }

    .footer-logo-space {
        margin-bottom: 2em;
    }

    .footer-logo-container .footer-logo {
        max-width: 150px;
    }

    .footer-legal ul li.separator-line,
    .footer-legal ul li.footer-separator {
        margin: 0 6px;
    }
}