.legal {
    display: flex;
    flex-direction: column;

    ol,
    ul {
        margin: var(--space-s);
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
    }

    ul {
        padding-left: var(--space-xl);
        list-style-type: disc;
    }

    li {
        line-height: var(--step-1);
        font-size: var(--step-0);
    }

    h2,
    h3,
    h4 {
        margin: var(--space-xs) 0;
        font-family: "MBCorpoSTextCondRegular", sans-serif;
    }

    h2 {
        font-size: var(--step-3);
    }

    h3,
    h4 {
        font-size: var(--step-2);
    }

    table,
    th,
    td {
        border: 1px solid var(--mbv-gray);
        border-collapse: collapse;
    }

    a {
        text-decoration: underline;
        color: var(--mbv-light-blue);
    }

    .legal__table {
        font-size: var(--step-0);
        table-layout: fixed;
        overflow: auto;

        th,
        td {
            padding: var(--space-s);
        }

        th,
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
    }
}

.pdf-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-l);
    margin-bottom: var(--space-xl);
}

.pdf-tile {
    padding: var(--space-s) var(--space-m);
    display: flex;
    align-items: center;
    background-color: #f2f2f2;
    gap: var(--space-m);
}

.pdf-tile__content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdf-tile__title {
    font-family: "MBCorpoSTextCondRegular", sans-serif;
    font-size: var(--step-1);
}

.pdf-tile__button {
    margin-top: var(--space-xs);
    margin-left: auto;
}

.pdf-tile__button:hover {
    border: none;
}

/* Custom list points */
.legal > ol {
    list-style-type: decimal;
    margin-left: var(--space-l);
}

.legal > ol > li::marker {
    font-size: var(--step-2);
    margin-left: var(--space-l);

}

.legal > ol > li {
    counter-increment: section;
}

/* subpoints: 1.1, 1.2 etc. */
.legal > ol > li > ol {
    counter-reset: subsection;
    list-style: none;
}
.legal > ol > li > ol > li {
    counter-increment: subsection;
}
.legal > ol > li > ol > li::before {
    content: counter(section) "." counter(subsection) " ";
}

@media only screen and (max-width: 768px) {
    .legal {
        overflow: hidden;

        ol {
            margin: var(--space-xs) var(--space-xs) var(--space-xs) 0;
        }

        ul {
            margin-left: 0;
            padding-left: var(--space-l);
        }
    }

    .legal > ol {
        margin-left: var(--space-l);
    }
}
