/* Legal Information: original public company and legal-document cards. */
.bw-page.bw-legal-information {
    background: #fff;
    color: #1e2035;
}

.bw-page.bw-legal-information .bw-legal-intro {
    background: #e2e1e1;
}

.bw-page.bw-legal-information .bw-legal-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    padding: 2rem;
    overflow-wrap: break-word;
}

.bw-page.bw-legal-information .bw-legal-card-body {
    flex: 1;
}

.bw-page.bw-legal-information .bw-legal-company-image img {
    display: inline-block;
    width: 100%;
    /* Gutenberg adds inline height: auto to the editable Image block. */
    height: 192px !important;
}

.bw-page.bw-legal-information .bw-legal-stars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ed9e4b;
}

.bw-page.bw-legal-information .bw-legal-stars img {
    width: 26px;
    height: 26px;
}

.bw-page.bw-legal-information .bw-legal-contact-icon {
    display: inline-block;
    width: auto;
    height: 1em;
    vertical-align: -0.125em;
}

.bw-page.bw-legal-information .bw-legal-card-footer p {
    margin: 0;
}

/* Native Image/Paragraph rows retain the original inline contact spacing. */
.bw-page.bw-legal-information .bw-legal-contact {
    margin-block: 1em;
}

.bw-page.bw-legal-information .bw-legal-contact-row {
    align-items: baseline;
    gap: 0;
}

.bw-page.bw-legal-information .bw-legal-contact-row p {
    margin: 0;
}

.bw-page.bw-legal-information figure.bw-legal-contact-icon {
    flex-shrink: 0;
    position: relative;
    top: 0.125em;
}

.bw-page.bw-legal-information figure.bw-legal-contact-icon img {
    display: block;
    /* Gutenberg supplies inline height: auto on editable Image blocks. */
    height: 1em !important;
    width: auto;
    max-width: none;
}
