/* Mobile */
@media (max-width: 599.999px) {
    article { padding: 0 10px; }
}

@media (min-width: 600px) and (max-width: 999.999px) {
    article { padding: 0 40px; }
}

.mgTerms {
    margin-bottom: 40px;
}

.mgTerms article h3 {
    margin-bottom: 10px;
    color: var(--d-blue);
}

.mgTerms article p {
    margin-top: 10px;
}

@media (max-width: 999.999px) {
    .mgTerms aside {
        max-width: 340px;
        height: 40px;
        margin: 20px auto;
        position: relative;
    }

    .mgTerms nav a.current { display: block; }

    .mgTerms nav a:not(.current) { display: none; }

    .mgTerms nav.show a:not(.current) { display: block; }

    .mgTerms nav.show div.arrow { display: none; }

    .mgTerms nav {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background-color: var(--white);
        border: 1px solid var(--blue);
        border-radius: 5px;
    }

    .mgTerms nav::after {
        position: absolute;
        display: block;
        content: ' ';
        border-bottom: 2px solid var(--blue);
        border-right: 2px solid var(--blue);
        width: 8px;
        height: 8px;
        top: 17px;
        right: 20px;
        transform: translateY(-50%) rotate(45deg);
    }

    .mgTerms aside nav a {
        display:  block;
        padding: 10px 30px 10px 20px;
        text-decoration: none;
        background-color: var(--white);
        border-radius: 5px;
    }

    .mgTerms aside nav a:hover,
    .mgTerms aside nav a.current {
        background-color: var(--l-blue1);
        color: var(--white);
    }
}

/* Desktop */
@media (min-width: 1000px) {

    section.mgTerms aside {
        display: inline-block;
        width: 360px;
        vertical-align: top;
        position: sticky;
        top: 50px;
    }

    section.mgTerms aside nav a {
        text-align: right;
        display:  block;
        padding: 10px 20px 10px 10px;
        text-decoration: none;
        margin-right: -1px;
        border-right: 1px solid var(--blue);
    }

    section.mgTerms aside nav a:hover {
        color: var(--l-blue1);
        border-right: 1px solid var(--blue);
    }

    section.mgTerms aside nav a.current {
        background-color: var(--blue);
        border-right: 1px solid var(--l-blue1);
        color: var(--white);
    }

    section.mgTerms article {
        display: inline-block;
        width: calc(100% - 360px);
        vertical-align: top;
        margin-left: 50px;
        margin-top: 0;
    }
}