@media screen and (max-width: 575px) {

    main {
        height: unset;
    }

    .flex-box {
        padding: calc(var(--footerHeight)/2) 0 var(--footerHeight);
    }

    .header-content, .content-box, .footer-box {
        width: auto;
    }

    .header-content {
        padding: 1.25rem 3rem;
        justify-content: center;
    }

    .content-box {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .image-box {
        order: 2;
        grid-row-start: auto;
        grid-row-end: auto;
    }

    .header-box, .description-box, .button-box {
        padding-right: unset;
        text-align: justify;
    }

    .header-box, .description-box, .button-box {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .header-box {
        order: 1;
        justify-content: flex-start;
        padding-top: 0;
    }

    .description-box {
        order: 3;
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .button-box {
        order: 4;
        flex-direction: column;
    }

    .agent, .action {
        width: 100%;
    }

    .agent {
        margin-bottom: 1.25rem;
    }

    .agent img {
        width: 50%;
    }

    .action {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 1.2rem;
    }
    
    footer {
        position: unset;
    }
}