.legal-page,
.mh-notfound {
    color: #173f38;
    background: #fff;
}

.legal-page__hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e1ebe5;
    background: linear-gradient(115deg, #f4f8f5 0%, #fff 72%);
}

.legal-page__hero::after {
    position: absolute;
    inset: auto -8% -95px auto;
    width: 310px;
    height: 310px;
    content: "";
    border: 1px solid #dbe9df;
    border-radius: 50%;
    pointer-events: none;
}

.legal-page__hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 325px;
    padding-block: 45px 60px;
}

.legal-page__intro { max-width: 700px; }
.legal-page__intro .mh-breadcrumb { margin-bottom: 34px; }
.legal-page__intro h1 { margin: 0 0 17px; font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.55; }
.legal-page__intro > p { max-width: 60ch; margin: 0; color: #50665b; font-size: 16px; line-height: 2.1; }
.legal-page__emblem {
    display: grid;
    flex: 0 0 150px;
    place-items: center;
    width: 150px;
    height: 150px;
    border: 1px solid #d9e9df;
    border-radius: 28px;
    background: #fff;
    color: #0f6742;
    box-shadow: 0 18px 42px rgba(12, 58, 41, .08);
    transform: rotate(-7deg);
}
.legal-page__emblem i { font-size: 60px; transform: rotate(7deg); }

.legal-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: clamp(34px, 6vw, 96px);
    padding-block: 68px 44px;
}
.legal-page__article { min-width: 0; max-width: 76ch; color: #314d41; font-size: 15px; line-height: 2.2; }
.legal-page__article > :first-child { margin-top: 0; }
.legal-page__article h2 {
    scroll-margin-top: 110px;
    margin: 46px 0 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid #dce9df;
    color: #123e31;
    font-size: clamp(19px, 2.2vw, 23px);
    font-weight: 800;
    line-height: 1.7;
}
.legal-page__article h3 { margin: 26px 0 9px; color: #173f38; font-size: 17px; font-weight: 800; }
.legal-page__article p { margin: 0 0 18px; }
.legal-page__article ul,
.legal-page__article ol { margin: 0 0 22px; padding-right: 23px; }
.legal-page__article li { padding-right: 4px; margin-bottom: 8px; }
.legal-page__article a { color: #53459d; text-decoration: underline; text-underline-offset: 4px; }
.legal-page__article a:hover { color: #352778; }
.legal-page__aside { position: sticky; top: 24px; display: grid; gap: 18px; }
.legal-page__toc { display: grid; gap: 2px; padding: 22px; border: 1px solid #dce8df; border-radius: 12px; background: #f7faf7; }
.legal-page__toc strong { margin-bottom: 9px; color: #173f38; font-size: 15px; }
.legal-page__toc a { padding: 7px 0; color: #53685c; font-size: 13px; line-height: 1.75; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.legal-page__toc a:hover,
.legal-page__toc a:focus-visible { color: #53459d; transform: translateX(-3px); }
.legal-page__help { padding: 22px; border: 1px solid #e5e0f0; border-radius: 12px; background: #f8f6fd; }
.legal-page__help > i { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 8px; background: #ece8f8; color: #6b5bbd; }
.legal-page__help strong { display: block; font-size: 15px; }
.legal-page__help p { margin: 7px 0 15px; color: #596971; font-size: 13px; line-height: 1.9; }
.legal-page__help a { display: inline-flex; align-items: center; gap: 8px; color: #514490; font-size: 13px; font-weight: 800; text-decoration: none; }
.legal-page__related { display: flex; align-items: center; gap: 14px; padding-bottom: 70px; color: #66736d; font-size: 13px; }
.legal-page__related a { display: inline-flex; align-items: center; gap: 9px; color: #514490; font-weight: 800; text-decoration: none; }
.legal-page__related a:hover { text-decoration: underline; text-underline-offset: 4px; }

.mh-notfound { overflow: hidden; padding-block: clamp(55px, 7vw, 105px) 70px; }
.mh-notfound__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: 34px; }
.mh-notfound__code { display: inline-block; margin-bottom: 8px; color: #6b5bbd; font-size: 20px; font-weight: 800; letter-spacing: .1em; }
.mh-notfound__copy h1 { margin: 0 0 18px; color: #123e31; font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; line-height: 1.5; }
.mh-notfound__copy p { max-width: 55ch; margin: 0; color: #52685e; font-size: 16px; line-height: 2.1; }
.mh-notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mh-notfound__actions a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 20px; border: 1px solid #0d6142; border-radius: 8px; font-size: 14px; font-weight: 800; text-decoration: none; transition: background .2s ease, color .2s ease, transform .25s ease; }
.mh-notfound__actions a:hover { transform: translateY(-2px); }
.mh-notfound__primary { background: #0d6142; color: #fff; }
.mh-notfound__primary:hover { background: #094b34; color: #fff; }
.mh-notfound__secondary { background: #fff; color: #0d6142; }
.mh-notfound__secondary:hover { background: #edf5ef; color: #0d6142; }
.mh-notfound__visual { position: relative; display: grid; place-items: center; min-height: 335px; isolation: isolate; }
.mh-notfound__visual::before { position: absolute; width: min(100%, 380px); aspect-ratio: 1; content: ""; border: 1px solid #dce9df; border-radius: 48% 52% 50% 50%; background: #f3f8f4; transform: rotate(-13deg); z-index: -1; }
.mh-notfound__orbit { position: absolute; width: 245px; height: 245px; border: 1px solid #bbd4c3; border-radius: 50%; transform: rotate(23deg) scaleX(1.2); }
.mh-notfound__orbit--two { width: 175px; height: 175px; border-color: #d9d0ed; transform: rotate(-29deg) scaleX(1.28); }
.mh-notfound__route { position: absolute; top: 56px; right: 22%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: #fff; color: #6b5bbd; box-shadow: 0 12px 24px rgba(30, 64, 48, .1); }
.mh-notfound__mark { display: grid; place-items: center; width: 105px; height: 105px; border-radius: 24px; background: #0e6547; color: #fff; font-size: 63px; font-weight: 800; box-shadow: 0 24px 40px rgba(14, 101, 71, .16); }
.mh-notfound__routes { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 64px; padding-top: 22px; border-top: 1px solid #e1ebe4; }
.mh-notfound__routes > strong { color: #234638; font-size: 14px; }
.mh-notfound__routes nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.mh-notfound__routes a { display: inline-flex; align-items: center; gap: 8px; color: #53665c; font-size: 13px; text-decoration: none; }
.mh-notfound__routes a:hover { color: #514490; }
.mh-notfound a:focus-visible,
.legal-page a:focus-visible { outline: 3px solid #6b5bbd; outline-offset: 3px; }

@media (max-width: 800px) {
    .legal-page__hero-inner { min-height: auto; padding-block: 38px 48px; }
    .legal-page__emblem { flex-basis: 98px; width: 98px; height: 98px; border-radius: 18px; }
    .legal-page__emblem i { font-size: 40px; }
    .legal-page__layout { grid-template-columns: 1fr; gap: 34px; padding-block: 40px 30px; }
    .legal-page__aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-notfound__layout { grid-template-columns: 1fr; }
    .mh-notfound__visual { min-height: 235px; order: -1; }
    .mh-notfound__visual::before { width: 250px; }
    .mh-notfound__orbit { width: 175px; height: 175px; }
    .mh-notfound__orbit--two { width: 115px; height: 115px; }
    .mh-notfound__route { top: 13px; right: calc(50% - 112px); }
    .mh-notfound__mark { width: 74px; height: 74px; border-radius: 16px; font-size: 46px; }
    .mh-notfound__copy { text-align: center; }
    .mh-notfound__copy p { margin-inline: auto; }
    .mh-notfound__actions,
    .mh-notfound__routes { justify-content: center; }
}

@media (max-width: 560px) {
    .legal-page__hero-inner { gap: 10px; }
    .legal-page__emblem { display: none; }
    .legal-page__intro .mh-breadcrumb { margin-bottom: 22px; }
    .legal-page__intro > p { font-size: 14px; }
    .legal-page__article { font-size: 14px; }
    .legal-page__aside { grid-template-columns: 1fr; }
    .legal-page__related { flex-wrap: wrap; padding-bottom: 45px; }
    .mh-notfound { padding-block: 38px 55px; }
    .mh-notfound__actions a { width: 100%; }
    .mh-notfound__routes { justify-content: flex-start; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
    .mh-notfound__actions a,
    .legal-page__toc a { transition: none; }
}
