@import url("design-tokens.css");

.site-container,
.wrap {
    width: min(var(--site-container-max), calc(100% - var(--site-container-inline-space)));
    margin-inline: auto;
}

.iipower-public,
.app-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.iipower-public > main,
.app-page > main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    padding: 42px 0 24px;
    margin-top: 64px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px 40px;
}

.footer-row + .footer-row {
    margin-top: 25px;
}

.footer-primary,
.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    min-width: 0;
}

.footer-primary {
    font-size: 14px;
}

.footer-primary .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -1px;
    color: var(--ink);
    white-space: nowrap;
}

.footer-primary .brand svg {
    display: block;
    width: 24px;
    height: 24px;
}

.footer-primary p,
.footer-contact,
.footer-credit {
    margin: 0;
}

.footer-contact {
    flex-shrink: 0;
    font-size: 14px;
}

.footer-legal {
    font-size: 14px;
}

.footer-credit {
    flex-shrink: 0;
    font-size: 12px;
    text-align: right;
}

.site-footer a:not(.brand),
.cookie-settings {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.cookie-settings {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
}

.app-page .site-footer {
    margin-top: 0;
}

@media (max-width: 700px) {
    .site-footer {
        padding-top: 32px;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .footer-row + .footer-row {
        margin-top: 22px;
    }

    .footer-primary,
    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .footer-primary .brand {
        margin-bottom: 2px;
    }

    .footer-contact,
    .footer-credit {
        text-align: left;
    }
}
