.site-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.site-page > main,
.site-page > .webapp {
    flex: 1 0 auto;
}

.site-page > .auth-shell {
    min-height: auto;
}

.site-footer {
    background: var(--header-blue);
    color: #fff;
    padding: .75rem 1rem;
}

.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a,
.legal-page a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: .15em;
    overflow-wrap: anywhere;
}

.site-footer a {
    color: inherit;
    display: inline-block;
    padding: .35rem .25rem;
}

.site-footer a:focus-visible,
.legal-page a:focus-visible {
    outline: 2px solid var(--action-blue);
    outline-offset: 3px;
}

.site-footer a:focus-visible {
    outline-color: currentColor;
}

#account-panel:not(.hidden) ~ .site-footer {
    margin-inline-start: 14rem;
}

@media (max-width: 78rem) {
    #account-panel:not(.hidden) ~ .site-footer { margin-inline-start: 5rem; }
}

@media (max-width: 62rem) {
    #account-panel:not(.hidden) ~ .site-footer { margin-inline-start: 0; }
}

.legal-page {
    max-width: 52rem;
}

.legal-page .portal-card {
    line-height: 1.65;
}

.legal-page section + section {
    margin-top: 1.7rem;
}

.legal-page h2 {
    margin: 0 0 .4rem;
    font-size: 1.2rem;
}

.legal-page p {
    margin: 0 0 .75rem;
}

.legal-page section > :last-child {
    margin-bottom: 0;
}

.legal-page address {
    font-style: normal;
}
