.stack-with-tag-legacy {
    width: 100%;
    padding-block: 0 100px;
}

.stack-with-tag-legacy .stack-title {
    margin-bottom: 100px;
}

.stack-with-tag-legacy .stack-title:not(.heading-with-star) {
    margin-left: calc(50% + 10px);
}

.stack-with-tag-legacy .stack-description {
    margin-left: calc(50% + 10px);
    margin-bottom: 40px;
}

.stack-with-tag-legacy .stack-sections {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.stack-with-tag-legacy .stack-section {
    padding-bottom: 70px;
    text-align: center;
    border-bottom: 1px solid var(--grey-border-40);
}

.stack-with-tag-legacy .stack-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.stack-with-tag-legacy--small .stack-section__inner {
    max-width: 900px;
    margin: 0 auto;
}

.stack-with-tag-legacy .stack-section__title {
    position: relative;
    display: inline-flex;
    padding: 4px 10px 4px 30px;
    text-transform: uppercase;
    border: 1px solid var(--grey-border);
    border-radius: 100px;
}

.stack-with-tag-legacy .stack-section__title::before {
    content: '';
    position: absolute;
    left: 10px;
    top: calc(50% - 5px);
    width: 10px;
    height: 10px;
    background-color: var(--red);
    mask-image: var(--star);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.stack-with-tag-legacy .stack-section__items {
    display: flex;
    align-items: var(--stack-v-align, center);
    justify-content: var(--stack-h-align, center);
    flex-wrap: wrap;
    --stack-columns: 4;
    --stack-col-gap: 20px;
    gap: 70px var(--stack-col-gap);
    margin-top: 70px;
}

.stack-with-tag-legacy .stack-section__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    width: calc((100% - (var(--stack-columns) - 1) * var(--stack-col-gap)) / var(--stack-columns));
}

.stack-with-tag-legacy .stack-section__link {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stack-with-tag-legacy .stack-section__link:hover .icon-wrap {
    opacity: 0.7;
}

.stack-with-tag-legacy .stack-section__item .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: var(--transition);
}

.stack-with-tag-legacy .stack-section__item .icon-wrap svg {
    max-width: 100%;
    max-height: 100%;
}

.stack-with-tag-legacy .stack-section__item .icon-caption {
    margin-top: 10px;
    color: var(--blue-light);
}

@media (min-width: 1024px) {
    .stack-with-tag-legacy .stack-section__items {
        row-gap: 30px;
        margin-top: 30px;
    }

    /* A caption takes one line of height: a wrapped one hangs into the row gap, so rows stay level across groups. */
    .stack-with-tag-legacy .stack-section__item .icon-caption {
        height: 1lh;
    }
}

@media (max-width: 1023px) {
    .stack-with-tag-legacy .stack-title:not(.heading-with-star) {
        margin-left: 0;
    }

    .stack-with-tag-legacy .stack-description {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .stack-with-tag-legacy {
        padding-block: 0 50px;
    }

    .stack-with-tag-legacy .stack-title {
        margin-bottom: 50px;
    }

    .stack-with-tag-legacy .stack-sections {
        gap: 50px;
    }

    .stack-with-tag-legacy .stack-section {
        padding-bottom: 50px;
    }

    .stack-with-tag-legacy .stack-section__items {
        --stack-columns: 2;
        --stack-col-gap: 10px;
        gap: 50px var(--stack-col-gap);
        margin-top: 50px;
    }
}