.site-footer {
    position: relative;
    z-index: 80;
    border-top: 1px solid rgb(228 228 231);
    background: rgb(250 250 250);
}

.dark .site-footer {
    border-top-color: rgb(39 39 42);
    background: rgb(9 9 11);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.75rem 0 0;
}

@media (min-width: 640px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.55fr);
        gap: 2rem 2.5rem;
        align-items: stretch;
        padding: 3.25rem 0 0;
    }

    .site-footer__col--brand {
        grid-column: auto;
    }
}

.site-footer__col--docs .site-footer__links {
    max-width: none;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .site-footer__col--docs {
        grid-column: 1 / -1;
    }
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-footer__col--brand {
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .site-footer__col--brand {
        min-height: 11.5rem;
    }
}

.site-footer__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: rgb(24 24 27);
}

.dark .site-footer__logo-link {
    color: rgb(250 250 250);
}

.site-footer__logo-link:hover {
    opacity: 0.85;
}

.site-footer__logo-img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.site-footer__logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-footer__tagline {
    margin: 0.875rem 0 0;
    max-width: 20rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgb(113 113 122);
}

.dark .site-footer__tagline {
    color: rgb(161 161 170);
}

.site-footer__to-top {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.35rem 0.35rem 0.35rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(24 24 27);
    background: rgb(228 228 231);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.site-footer__to-top:hover {
    background: rgb(212 212 216);
}

.dark .site-footer__to-top {
    color: rgb(250 250 250);
    background: rgb(39 39 42);
}

.dark .site-footer__to-top:hover {
    background: rgb(63 63 70);
}

@media (min-width: 768px) {
    .site-footer__to-top {
        margin-top: auto;
    }
}

.site-footer__to-top-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgb(24 24 27);
    color: #fff;
}

.dark .site-footer__to-top-icon {
    background: rgb(250 250 250);
    color: rgb(24 24 27);
}

.site-footer__col-title {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(113 113 122);
}

.dark .site-footer__col-title {
    color: rgb(161 161 170);
}

.site-footer__links {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.site-footer__links a {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: rgb(63 63 70);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__links a:hover {
    color: rgb(24 24 27);
}

.dark .site-footer__links a {
    color: rgb(212 212 216);
}

.dark .site-footer__links a:hover {
    color: rgb(250 250 250);
}

.site-footer__link-btn {
    padding: 0;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.4;
    text-align: left;
    color: rgb(63 63 70);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.site-footer__link-btn:hover {
    color: rgb(24 24 27);
}

.dark .site-footer__link-btn {
    color: rgb(212 212 216);
}

.dark .site-footer__link-btn:hover {
    color: rgb(250 250 250);
}

.site-footer__bar {
    margin-top: 2.5rem;
    border-top: 1px solid rgb(228 228 231);
}

.dark .site-footer__bar {
    border-top-color: rgb(39 39 42);
}

.site-footer__bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 0.8125rem;
    text-align: center;
    color: rgb(113 113 122);
}

@media (min-width: 640px) {
    .site-footer__bar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
}

.dark .site-footer__bar-inner {
    color: rgb(161 161 170);
}

.site-footer__bar-inner p {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    text-align: center;
}

@media (min-width: 640px) {
    .site-footer__legal {
        max-width: min(100%, 28rem);
        justify-content: flex-end;
        text-align: right;
    }
}

.site-footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__legal a:hover {
    color: rgb(24 24 27);
}

.dark .site-footer__legal a:hover {
    color: rgb(250 250 250);
}
