        :root {
            --footer-text: #777;
            --footer-border: #e2e2e2;
            --footer-shadow: 0 1px 5px rgba(0, 0, 0, .12);
        }

        .legal-footer {
            width: 100%;
            border: 1px solid var(--footer-border);
            border-radius: 7px;
            box-shadow: var(--footer-shadow);
            padding: 11px 19px 10px;
            background: #fff;
        }

        .legal-footer__top,
        .legal-footer__bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px 24px;
        }

        .legal-footer__top {
            margin-bottom: 5px;
        }

        .legal-links,
        .registration-links {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            min-width: 0;
        }

        .legal-links a,
        .registration-links a {
            line-height: 1.4;
            white-space: nowrap;
        }

        .legal-links a + a::before,
        .registration-links a + a::before {
            content: "|";
            color: #aaa;
            margin: 0 12px;
        }

        .legal-copyright {
            line-height: 1.4;
            min-width: 0;
        }

        .registration-links {
            justify-content: flex-end;
            text-align: right;
            flex-shrink: 0;
        }

        @media (max-width: 760px) {
            .legal-footer {
                padding: 12px 14px;
            }

            .legal-footer__top,
            .legal-footer__bottom {
                align-items: flex-start;
                flex-direction: column;
                gap: 7px;
            }

            .legal-links {
                gap: 5px 0;
            }

            .legal-links a,
            .registration-links a {
                white-space: normal;
            }

            .legal-links a + a::before,
            .registration-links a + a::before {
                margin: 0 8px;
            }

            .registration-links {
                justify-content: flex-start;
                text-align: left;
                flex-shrink: 1;
            }
        }
    

.pagefooter .md-v3-legal-wrap { padding: 20px; text-align: center; }
