.site-header,
.privacy-header {
    display: flex;
    justify-content: center;
    text-align: center;
}

.site-header a,
.privacy-header a[aria-label] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header img,
.privacy-header img {
    width: min(155px, 40vw);
    height: auto;
    max-height: none;
    object-fit: contain;
}

.site-footer,
.privacy-footer,
body > footer {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
}

html[data-theme='dark'] .site-header a,
html[data-theme='dark'] .privacy-header a[aria-label] {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

html[data-theme='dark'] .site-header img,
html[data-theme='dark'] .privacy-header img {
    filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
}

.brand-logo { width: min(var(--logo-width, 240px), 80vw) !important; height: auto; max-height: none; }
html:not([data-theme='dark']) .brand-logo-dark { display: none !important; }
html:not([data-theme='dark']) .brand-logo-light { display: block !important; }
html[data-theme='dark'] .brand-logo-light { display: none !important; }
html[data-theme='dark'] .brand-logo-dark { display: block !important; filter: none; }
html[data-theme='dark'] .brand-logo-dark.default-dark-logo { filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, .28)); }
