/* Shared public Page layout. */
.bw-page {
    --bw-page-text: #1e2035;
    --bw-page-hover: #ff3558;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    color: var(--bw-page-text);
    font:
        400 20px/1.5 'Satoshi',
        Arial,
        Helvetica,
        sans-serif;
    -webkit-text-size-adjust: 100%;
}

.bw-page *,
.bw-page *::before,
.bw-page *::after,
.bw-protected-integration *,
.bw-protected-integration *::before,
.bw-protected-integration *::after {
    box-sizing: border-box;
}

.bw-page > * {
    margin-block: 0;
}

.bw-page :where(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.5;
}

.bw-page h1 {
    font-size: 2em;
    margin-block: 0.67em;
}
.bw-page h2 {
    font-size: 1.5em;
    margin-block: 0.83em;
}
.bw-page h3 {
    font-size: 1.17em;
    margin-block: 1em;
}
.bw-page h4 {
    font-size: 1em;
    margin-block: 1.33em;
}
.bw-page h5 {
    font-size: 0.83em;
    margin-block: 1.67em;
}
.bw-page h6 {
    font-size: 0.67em;
    margin-block: 2.33em;
}
.bw-page p {
    margin-block: 1em;
}

.bw-page a {
    color: #003b5e;
    text-decoration: none;
}

.bw-page a:hover,
.bw-page summary:hover {
    color: var(--bw-page-hover);
}

.bw-page :where(a, summary, button, input, select, textarea):focus-visible {
    outline: 2px solid #d81b60;
    outline-offset: 4px;
}

.bw-page img,
.bw-page video {
    max-width: 100%;
    height: auto;
}

.bw-page .bw-content {
    flex: 1;
    width: 100%;
    max-width: calc(1300px + 4rem);
    margin-inline: auto;
    padding: 2rem;
    overflow-wrap: anywhere;
}

.bw-page .wp-block-post-content {
    font: inherit;
}

.bw-page .wp-block-post-content :where(ul, ol) {
    margin-block: 1em;
    padding-inline-start: 2em;
}

.bw-page :where(table, input, select, textarea, button) {
    font: inherit;
}

.bw-page table {
    width: 100%;
    border-collapse: collapse;
}

.bw-page :where(th, td) {
    text-align: left;
    padding: 1rem 1rem 1rem 0;
}

.bw-page .wp-block-table {
    overflow-x: auto;
}

.bw-page :where(input, select, textarea) {
    max-width: 100%;
}

/* Paint the shared header's inset with the existing content palette. */
.bw-page:has(> .bw-content .bw-corporate),
.bw-page:has(> .bw-content .bw-legal) {
    background: #1e2035;
}

.bw-page:has(> .bw-content .bw-legal-information) {
    background: #e2e1e1;
}
