.app-legal-footer {
    --legal-footer-border: #d9e2ec;
    --legal-footer-text: #5f6f82;
    --legal-footer-muted: #8190a2;
    --legal-footer-strong: #29425f;
    --legal-footer-link: #356999;

    box-sizing: border-box;
    flex: 0 0 auto;
    width: calc(100% - var(--current-sidebar-width, var(--sidebar-width, 260px)));
    min-width: 0;
    max-width: none;
    margin: 24px 0 0 var(--current-sidebar-width, var(--sidebar-width, 260px));
    overflow: hidden;
    border-top: 1px solid var(--legal-footer-border);
    background: transparent;
    color: var(--legal-footer-text);
    font-size: 10.5px;
    line-height: 1.38;
    transition:
        width var(--shell-transition, 220ms ease),
        margin-left var(--shell-transition, 220ms ease);
}

.app-legal-footer__inner {
    display: grid;
    grid-template-columns:
        minmax(96px, 0.48fr)
        minmax(0, 2.05fr)
        minmax(0, 1.55fr)
        minmax(0, 0.8fr);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    gap: 0;
    align-items: start;
    padding: 15px 22px 16px;
}

.app-legal-footer__inner > section {
    min-width: 0;
    padding: 0 20px;
}

.app-legal-footer__inner > section:first-child {
    padding-left: 0;
}

.app-legal-footer__inner > section:last-child {
    padding-right: 0;
}

.app-legal-footer__inner > section + section {
    border-left: 1px solid rgba(217, 226, 236, 0.9);
}

.app-legal-footer__brand,
.app-legal-footer__contacts,
.app-legal-footer__details {
    display: flex;
    flex-direction: column;
}

.app-legal-footer__brand {
    gap: 2px;
}

.app-legal-footer__brand strong {
    color: var(--legal-footer-strong);
    font-size: 14px;
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
}

.app-legal-footer__brand > span {
    color: var(--legal-footer-text);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.app-legal-footer__brand small {
    margin-top: 8px;
    color: var(--legal-footer-muted);
    font-size: 9px;
}

.app-legal-footer__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--legal-footer-strong);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.app-legal-footer p {
    margin: 0;
    color: var(--legal-footer-text);
}

.app-legal-footer__registration {
    margin-top: 5px !important;
    color: var(--legal-footer-muted) !important;
    font-size: 9.5px;
}

.app-legal-footer__details {
    gap: 2px;
    color: var(--legal-footer-muted);
}

.app-legal-footer__contacts {
    gap: 2px;
}

.app-legal-footer__contacts a {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--legal-footer-link);
    font-weight: 700;
    text-decoration: none;
}

.app-legal-footer__contacts a:hover {
    text-decoration: underline;
}

.app-legal-footer__privacy {
    margin-top: 5px;
    font-size: 9.5px;
}

@media (max-width: 1050px) {
    .app-legal-footer__inner {
        grid-template-columns:
            minmax(90px, 0.42fr)
            minmax(0, 1.8fr)
            minmax(0, 1.4fr)
            minmax(0, 0.9fr);
    }

    .app-legal-footer__inner > section {
        padding-inline: 10px;
    }
}

@media (max-width: 720px) {
    .app-legal-footer {
        font-size: 11.5px;
    }

    .app-legal-footer__inner {
        grid-template-columns: 1fr;
        padding: 16px 18px;
    }

    .app-legal-footer__inner > section {
        padding: 12px 0;
        border-top: 1px solid rgba(217, 226, 236, 0.9);
        border-left: 0 !important;
    }

    .app-legal-footer__inner > section:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .app-legal-footer__inner > section:last-child {
        padding-bottom: 0;
    }

    .app-legal-footer__brand small {
        margin-top: 4px;
    }

    .app-legal-footer__contacts {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        margin-top: 0;
    }
}
