@media screen and (max-width: 40em) {
    .mobile-menu {
        font-size: 1.75rem;
    }

    .nav-text {
        font-weight: normal;
    }

    .content-wrapper {
        overflow: auto;
    }

    .modal-close {
        width: max-content;
        position: sticky;
        right: 0em;
        float: right;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-text {
        font-size: 1.0rem;
    }

    .modal-content tr:first-child {
        position: sticky;
    }

    .modal-content .table-wrapper {
        width: 100%;
        max-height: 80vh;
        overflow: auto;
    }

    .modal-content thead {
        position: sticky;
        top: 0;
    }

    /* footer */

    .footer-item {
        padding: 0.25vh 1.75vw;
    }

    .legal-container,
    .links-container {
        width: 49%;
    }

    .footer-div {
        margin: 0.5em 0;
    }

    .about-container {
        width: 100%;
        position: relative;
        top: 0;
        bottom: auto;
        padding: 2vw;
        text-align: left;
    }

    .about-text {
        width: 68%;
        text-align: left;
    }

    .about-img {
        position: absolute;
    }

    .income-tax {
        position: absolute;
        bottom: 0;
        left: 0;
        font-size: 1rem;
        margin: 1vw;
        text-align: center;
    }

    .address-container {
        font-size: 1em;
        position: relative;
        text-align: left;
        bottom: 0;
        padding: 0.25vw 2vw;
        margin-bottom: 8em;
        text-align: center;
    }

    .social-container {
        position: relative;
        margin: auto;
        text-align: center;
        right: auto;
        margin: 1em 0;
        top: 7vw;
    }
}