
.landing-sea-footer {
    padding-block: 2.4rem;
    background: #1a1a1a;
    color: #fff;
}

.landing-sea-footer .footer__content {
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem 4rem;
    margin-bottom: 0;
}

.landing-sea-footer__copyright {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
}

.landing-sea-footer__legal {
    flex: 0 0 auto;
    margin-left: auto;
    position: relative;
}

.landing-sea-footer__legal-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    cursor: pointer;
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.25;
    white-space: nowrap;
    color: inherit;
}

.landing-sea-footer__legal-trigger span:not(.landing-sea-footer__legal-caret) {
    position: relative;
}

.landing-sea-footer__legal-trigger span:not(.landing-sea-footer__legal-caret)::after {
    content: "";
    display: block;
    width: 0;
    height: 0.1rem;
    background: currentColor;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

.landing-sea-footer__legal-trigger:hover span:not(.landing-sea-footer__legal-caret)::after,
.landing-sea-footer__legal-trigger:focus span:not(.landing-sea-footer__legal-caret)::after {
    width: 100%;
}

.landing-sea-footer__legal-caret {
    flex: 0 0 auto;
    display: flex;
    transform: rotate(180deg);
}

.landing-sea-footer__legal-caret path {
    fill: currentColor;
}

.landing-sea-footer__legal-trigger:focus-visible,
.landing-sea-footer__legal-link:focus-visible {
    outline: 0.2rem solid var(--color-red);
    outline-offset: 0.3rem;
}

.landing-sea-footer__legal-panel {
    width: max-content;
    min-width: 28rem;
    max-width: calc(100vw - 4rem);
    padding-block: 4rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0.2rem 0.2rem 0.4rem rgb(0 0 0 / 24%);
    color: var(--color-text-1);
    position: absolute;
    right: 0;
    bottom: calc(100% + 1rem);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.landing-sea-footer__legal:hover .landing-sea-footer__legal-panel,
.landing-sea-footer__legal:has(:focus-visible) .landing-sea-footer__legal-panel {
    opacity: 1;
    pointer-events: auto;
}

.landing-sea-footer__legal-panel::after {
    content: "";
    width: 100%;
    height: 1rem;
    position: absolute;
    left: 0;
    bottom: -1rem;
}

.landing-sea-footer__legal-links {
    display: flex;
    flex-direction: column;
}

.landing-sea-footer__legal-item {
    padding: 1rem 4rem 1rem 3rem;
}

.landing-sea-footer__legal-item:first-child {
    margin-top: -1.25rem;
}

.landing-sea-footer__legal-item:last-child {
    margin-bottom: -1.25rem;
}

.landing-sea-footer__legal-link {
    display: flex;
    align-items: center;
    padding-block: 0.25rem;
    padding-left: 0.7rem;
    border-left: 0.3rem solid transparent;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-text-1);
    transition: 0.3s;
}

@media (hover: hover) and (pointer: fine) {
    .landing-sea-footer__legal-link:hover {
        color: var(--color-red);
        border-color: var(--color-red);
    }
}

@media screen and (max-width: 575.9px) {
    .landing-sea-footer {
        padding-block: 2rem;
    }

    .landing-sea-footer .footer__content {
        flex-direction: column-reverse;
        gap: 1.2rem 2rem;
    }

    .landing-sea-footer__legal {
        z-index: 1;
        margin-right: auto;
        transform: translateX(5px);
    }

    .landing-sea-footer__legal-panel {
        min-width: min(28rem, calc(100vw - 4rem));
        right: auto;
        left: 50%;
        transform: translateX(calc(-50% - 5px));
    }
}
