body.legal {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em;
    overflow: hidden;
}

body.legal .panel {
    display: flex;
    flex-direction: column;
    max-width: 76ch;
    width: 100%;
    max-height: 100%;
    background-color: var(--bg-color);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none !important;
}

/* ================================================== */
/* #region PANEL TITLE                                */
/* ================================================== */

body.legal panel-title {
    height: 1.5em;
    padding-inline: 0.375em;
    cursor: default;
}

body.legal panel-title entropy-logo {
    flex: 1;
}

/* #endregion */

/* ================================================== */
/* #region TABS                                       */
/* ================================================== */

body.legal .tab {
    padding-inline: 0.5em;
}

/* #endregion */

/* ================================================== */
/* #region CONTENT                                    */
/* ================================================== */
body.legal .tab-content {
    display: none;
    flex-direction: column;
    gap: 0.5em;
    position: relative;
    height: auto;
    padding: 0.5em;
}

body.legal .tab-content.active {
    display: block;
}

/* #endregion */

/* ================================================== */
/* #region MD STYLING                                 */
/* ================================================== */

body.legal h1,
body.legal h2 {
    text-transform: uppercase;
}

body.legal h1 {
    margin-bottom: 1em;
}

body.legal h2 {
    margin-block: 1em 0.25em;
}

body.legal h3 {
    margin-block: 0.75em 0.25em;
}

body.legal p {
    margin-block: 0.25em;
}

body.legal p:last-child {
    margin-bottom: 0;
}

body.legal .tab-content ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 1em;
}

body.legal .tab-content ul:last-of-type {
    margin-bottom: 0;
}

body.legal li {
    list-style-position: outside;
    list-style-type: disc;
}

body.legal table {
    border-collapse: collapse;
    width: 100%;
    margin-block: 0.5em;
}

body.legal th,
body.legal td {
    border: var(--border-width) solid var(--border-color);
    padding: 0.25em 0.25em;
}

body.legal th {
    background-color: var(--bg-color-hover);
    text-align: left;
}

body.legal hr {
    width: 100%;
    margin-block: 0.75em 0.5em;
    border: 0;
    background-color: transparent;
    border-bottom: var(--border-width) solid var(--border-color);
}

/* #endregion */