@media (max-width: 767.98px) {
    .hag-platforms {
        padding-block: 3rem;
    }

    .hag-platforms-intro {
        margin-bottom: 1.5rem;
    }

    .hag-platform-grid {
        --platform-gap: 0.75rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--platform-gap);
        max-width: 20.75rem;
        margin-inline: auto;
    }

    .hag-platform-grid > a {
        width: 100%;
        padding: 0.75rem 0.5rem;
        transition-property: transform, border-color, box-shadow;
    }

    .hag-platform-grid > a > div {
        width: 2.25rem;
        height: 2.25rem;
        margin-bottom: 0.5rem;
        font-size: 1.125rem;
    }

    .hag-platform-grid > a > h4 {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .hag-platform-grid > a > p {
        color: #9ca3af;
        font-size: 0.75rem;
        line-height: 1rem;
    }
}

@media (max-width: 419.98px) {
    .hag-platform-grid > a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - var(--platform-gap)) / 2);
        justify-self: center;
    }
}

@media (min-width: 420px) and (max-width: 767.98px) {
    .hag-platform-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 31.5rem;
    }

    .hag-platform-grid > a:last-child:nth-child(3n + 1) {
        grid-column: 2;
    }
}
