.legacy-feature-section {
    position: relative;
    min-height: 38rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: #eef2f7;
    background-position: center;
    background-size: cover;
}

.legacy-feature-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 15, 27, 0.2), rgba(255, 255, 255, 0.36)),
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.72), transparent 30%),
        radial-gradient(circle at 78% 78%, rgba(17, 178, 248, 0.18), transparent 34%);
}

.legacy-feature-section--commitment {
    background-image:
        linear-gradient(90deg, rgba(14, 20, 31, 0.14), rgba(255, 255, 255, 0.3)),
        url("../../../img/background.png");
}

.legacy-feature-layout {
    display: flex;
}

.legacy-feature-layout--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.4rem, 3vw, 2.6rem);
    align-items: stretch;
}

.legacy-feature-layout--left {
    justify-content: flex-start;
}

.legacy-feature-panel {
    width: 100%;
    padding: clamp(2.1rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 1.8rem;
    background:
        linear-gradient(160deg, rgba(20, 24, 32, 0.56), rgba(20, 24, 32, 0.34)),
        rgba(20, 24, 32, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1.4rem 2.8rem rgba(13, 22, 42, 0.18);
    backdrop-filter: blur(18px) saturate(132%);
    -webkit-backdrop-filter: blur(18px) saturate(132%);
}

.legacy-feature-layout--split .legacy-feature-panel {
    min-height: 100%;
}

.legacy-feature-layout--split .legacy-feature-panel--light {
    scroll-margin-top: 7rem;
}

.legacy-feature-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    margin-bottom: 1.25rem;
    font-size: 1.43rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.legacy-feature-kicker-icon {
    width: 1.77rem;
    height: 1.77rem;
    display: block;
    flex: 0 0 auto;
}

.legacy-feature-panel h2 {
    margin: 0 0 2.2rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ffffff;
    text-wrap: balance;
}

.legacy-feature-panel h2::after {
    content: "";
    width: 100%;
    height: 1px;
    display: block;
    margin-top: 1.65rem;
    opacity: 0.5;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.45) 18%,
        rgba(255, 255, 255, 0.68) 50%,
        rgba(255, 255, 255, 0.45) 82%,
        rgba(255, 255, 255, 0)
    );
}

.legacy-feature-panel p {
    margin: 0 0 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    text-align: justify;
}

.legacy-feature-panel p:last-child {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .legacy-feature-layout--split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .legacy-feature-section {
        min-height: auto;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .legacy-feature-panel {
        border-radius: 1.45rem;
        padding: 1.7rem;
    }

    .legacy-feature-kicker {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .legacy-feature-panel h2 {
        margin-bottom: 1.65rem;
        font-size: clamp(1.9rem, 10vw, 2.65rem);
        text-align: center;
    }

    .legacy-feature-panel h2::after {
        margin-top: 1.15rem;
    }

    .legacy-feature-panel p {
        text-align: justify;
    }
}

@media (max-width: 420px) {
    .legacy-feature-kicker {
        font-size: 1.23rem;
    }

    .legacy-feature-kicker-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .legacy-feature-panel {
        padding: 1.35rem;
    }
}
