.ms-site-footer {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid #e7e6dc;
    color: #667269;
    background: #f8f7ef;
    font-family: "DM Sans", "Inter", system-ui, sans-serif;
}

.ms-site-footer *,
.ms-site-footer *::before,
.ms-site-footer *::after { box-sizing: border-box; }

.ms-site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    width: min(1200px, calc(100% - 48px));
    min-height: 64px;
    margin-inline: auto;
    padding-block: 16px;
}

.ms-site-footer__copy {
    margin: 0;
    color: #667269;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.ms-site-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.ms-site-footer a,
.ms-site-footer a:visited {
    color: #59685e;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.ms-site-footer a:hover { color: #a84016; text-decoration: underline; }
.ms-site-footer__copy a { text-decoration: underline; text-underline-offset: 2px; }
.ms-site-footer a:focus-visible { outline: 2px solid #b95320; outline-offset: 4px; border-radius: 2px; }

html[data-theme="dark"] .ms-site-footer,
body.dark-mode .ms-site-footer {
    border-top-color: #3b4a3d;
    background: #202a22;
    color: #c4d0c2;
}

html[data-theme="dark"] .ms-site-footer__copy,
body.dark-mode .ms-site-footer__copy { color: #c4d0c2; }

html[data-theme="dark"] .ms-site-footer a,
html[data-theme="dark"] .ms-site-footer a:visited,
body.dark-mode .ms-site-footer a,
body.dark-mode .ms-site-footer a:visited { color: #d8e2d4; }

html[data-theme="dark"] .ms-site-footer a:hover,
body.dark-mode .ms-site-footer a:hover { color: #ffad7f; }

html[data-theme="dark"] .ms-site-footer a:focus-visible,
body.dark-mode .ms-site-footer a:focus-visible { outline-color: #ffad7f; }

@media (max-width: 720px) {
    .ms-site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        width: calc(100% - 32px);
        padding-block: 20px;
    }

    .ms-site-footer__links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media print {
    .ms-site-footer { display: none !important; }
}
