@layer components {
    @scope (.footer) {
        :scope {
            display: flex;
            align-items: center;
            gap: 32px;
            padding-block: 52px 50px;
            padding-inline: 32px;

            @container page (width < 1200px) {
                flex-wrap: wrap;
            }

            @container page (width < 768px) {
                /* line up with the text inside the work cards */
                padding-inline: calc(var(--edge) + 1px + var(--card-pad-phone));
            }
        }

        .footer-link {
            text-decoration: none;
        }

        /* two lines down, so the registration lines end level with the four-line address;
           on phones, where they wrap below it, the same padding spaces them apart */
        .footer-legal {
            padding-block-start: 2lh;
        }

        .footer-logo {
            margin-inline-start: auto;
            height: 72px;
            padding-block: 18px;
            padding-inline: 24px 0;
            border-inline-start: 1px solid var(--fg);
            box-sizing: content-box;

            @container page (width < 1200px) {
                padding: 0;
                border: 0;
            }

            @container page (width < 768px) {
                flex-basis: 100%;
                min-width: 0;
                object-fit: contain;
                object-position: right;
                margin-block-start: 24px;
                margin-inline-start: 0;
            }
        }
    }
}
