/* Legal documents retain the original dark layout and definition tables. */
.bw-page .bw-content:has(.bw-legal) {
    max-width: none;
    padding: 0;
    background: #1e2035;
    color: #fff;
}

.bw-page .bw-content:has(.bw-legal) > .wp-block-post-title,
.editor-styles-wrapper:has(.is-root-container > .bw-legal) .editor-post-title {
    display: flex;
    align-items: center;
    min-height: 210px;
    margin: 0;
    /* Original wrapper/column spacing plus the heading margins. */
    padding: calc(4rem + 0.67em) max(2rem, calc((100% - 1300px) / 2));
    font-size: clamp(32px, 5vw, 70px);
    background: url('images/Blackwall_background-pattern_05.jpg') center / cover
        no-repeat;
}

/* The title is a full-width banner, not a constrained prose block. */
.editor-styles-wrapper:has(.is-root-container > .bw-legal) .editor-post-title {
    max-width: none;
}

.bw-page .bw-legal,
.editor-styles-wrapper .bw-legal {
    max-width: calc(1300px + 4rem);
    margin-inline: auto;
    padding: 4rem 2rem 10rem;
}

.bw-page .bw-legal .bw-corporate-section,
.editor-styles-wrapper .bw-legal .bw-corporate-section {
    margin-block: 0;
}

.bw-page .bw-legal .wp-block-table,
.editor-styles-wrapper .bw-legal .wp-block-table {
    margin-inline: 0;
}

.bw-page .bw-legal .wp-block-table td,
.editor-styles-wrapper .bw-legal .wp-block-table td {
    padding: 4px;
    border: 0;
    vertical-align: middle;
}

.bw-page .bw-legal .bw-definitions td,
.editor-styles-wrapper .bw-legal .bw-definitions td {
    box-sizing: content-box;
    border: 1px solid #99acc2;
    height: 166.578px;
}

.bw-page .bw-legal .bw-cookies table,
.editor-styles-wrapper .bw-legal .bw-cookies table {
    border: 1px solid #99acc2;
}
