#mp-legal-document-modal .modal-body {
    padding: 0;
    min-height: 0;
}

#mp-legal-document-modal .mp-legal-doc-modal__frame-wrap {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: #f8fafc;
}

#mp-legal-document-modal .mp-legal-doc-modal__frame {
    display: block;
    width: 100%;
    height: min(72vh, 720px);
    border: 0;
    background: #fff;
}

#mp-legal-document-modal .mp-legal-doc-modal__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(248, 250, 252, 0.92);
    pointer-events: none;
}

#mp-legal-document-modal .mp-legal-doc-modal__loading.is-hidden {
    display: none;
}

.legal-doc-popup {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.legal-doc-popup:hover,
.legal-doc-popup:focus-visible {
    color: var(--primary_color, #005450);
}
