/* Rust Hub footer only */

.site-footer {
    --footer-accent: #db3c19;

    flex-shrink: 0;
    margin-top: 64px;

    background: #111417;
    border-top: 1px solid #2b3035;
}

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

.site-footer .footer-inner {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0;
}

/* Branding, dashboard access, legal links and copyright */

.site-footer .footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.site-footer .footer-brand-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    max-width: 100%;
}

.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;

    color: #ffffff;
    text-decoration: none;

    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 2px;
    white-space: nowrap;
}

.site-footer .footer-brand-rust {
    color: #ffffff;
}

.site-footer .footer-brand-hub {
    color: var(--footer-accent);
}

.site-footer .footer-brand:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 6px;
}

.site-footer .footer-dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    min-height: 38px;
    padding: 8px 14px;

    border: 1px solid var(--footer-accent);
    background: #1a1e22;

    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    transition: background-color 0.2s ease;
}

.site-footer .footer-dashboard-button:hover {
    background: #23282d;
}

.site-footer .footer-dashboard-button:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
}

.site-footer .footer-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.site-footer .footer-policy-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.site-footer .footer-policy-links a {
    position: relative;

    color: #c5ccd1;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;

    transition: color 0.18s ease;
}

.site-footer .footer-policy-links a + a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -8px;
    width: 1px;
    height: 12px;
    background: #3b4247;
    transform: translateY(-50%);
}

.site-footer .footer-policy-links a:hover {
    color: #ffffff;
}

.site-footer .footer-policy-links a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
}

.site-footer .footer-copyright {
    margin: 0;

    color: #aeb6bd;
    font-size: 13px;
    line-height: 1.6;
}

/* Independence notice and third-party attribution */

.site-footer .footer-legal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2b3035;
}

.site-footer .footer-legal-heading {
    margin: 0 0 10px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.site-footer .footer-disclaimer {
    margin: 0 0 12px;

    color: #bac1c7;
    font-size: 14px;
    line-height: 1.65;
}

.site-footer .footer-disclaimer strong {
    color: #ffffff;
    font-weight: 700;
}

.site-footer .footer-attribution {
    margin: 0 0 8px;

    color: #aeb6bd;
    font-size: 13px;
    line-height: 1.65;
}

.site-footer .footer-attribution:last-child {
    margin-bottom: 0;
}

/* Smaller screens */

@media (max-width: 760px) {
    .site-footer .footer-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer .footer-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .site-footer .footer-top {
        gap: 14px;
    }

    .site-footer .footer-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-footer .footer-policy-links {
        gap: 8px 14px;
    }

    .site-footer .footer-policy-links a + a::before {
        left: -7px;
    }

    .site-footer .footer-legal {
        margin-top: 18px;
        padding-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-dashboard-button,
    .site-footer .footer-policy-links a {
        transition: none;
    }
}
