.site-footer {
    margin-top: 24px;
}

.site-footer__images .site-footer__image img {
    width: 100%;
    height: auto;
    display: block;
}

.site-footer__legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #f6f7fb 0%, #eef1f7 100%);
    border-top: 1px solid #e4e8f1;
}

.site-footer__legal--beside-top {
    padding-right: 72px;
}

.site-footer__legal a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e3e7f0;
    border-radius: 12px;
    background: #fff;
    color: #283458;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    box-shadow: 0 1px 2px rgba(40, 52, 88, 0.05);
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
    border-color: #c6e7a0;
    background: #f7fdf1;
    color: #3d7a0a;
    text-decoration: none;
}

.site-footer__legal a:focus-visible {
    outline: 2px solid rgba(95, 189, 15, 0.45);
    outline-offset: 2px;
}

.site-footer__legal-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #edf8e3;
    color: #4ca30d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-footer__legal .menu-ico {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-page-body h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.legal-page-body h3 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #334155;
}

.legal-page-body p,
.legal-page-body li {
    color: #475569;
    line-height: 1.6;
}

.legal-faq h3 {
    margin-top: 1.5rem;
}

@media (max-width: 360px) {
    .site-footer__legal,
    .site-footer__legal--beside-top {
        grid-template-columns: 1fr;
        padding-right: 12px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}
