.site-footer {
    padding: 28px 24px 36px;
    border-top: 1px solid var(--border-subtle);
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 20px;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-brand .mark {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-left: auto;
}

.footer-links a,
.footer-copy {
    font-size: var(--text-sm);
    line-height: 17px;
    color: var(--text-secondary);
}

.footer-links a {
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* The theme toggle sits in the nav on desktop and in the footer on mobile */
.site-footer .theme-toggle {
    display: none;
}

/* The company details every page has to carry */
.footer-legal {
    margin-top: 20px;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 28px 20px 36px;
    }

    .footer-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-links {
        margin-left: 0;
        gap: 16px;
    }

    .site-footer .theme-toggle {
        display: inline-flex;
    }
}
