.legal-page {
    margin-left: 150px;
    margin-right: 150px;
}

#legal-modal[hidden] {
    display: none
}

#legal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999
}

#legal-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6)
}

#legal-modal .modal-panel {
    position: relative;
    margin: 4vh auto;
    max-width: 900px;
    height: 92vh;
    background: #111;
    color: #eee;
    overflow: auto;
    padding: 24px;
    border-radius: 12px;
}

#legal-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
    background-color: #89918a;
    border: 1px solid black;
    line-height: 1;
}

#legal-modal .modal-close:hover {
    background-color: rgba(137, 145, 138, 0.5);
}

#legal-body section>h1,
#legal-body section>h2 {
    margin-top: 0
}