.qa-legal-detail {
    min-height: 100%;
}

.qa-legal-detail .qa-legal-body {
    flex: 1 1 auto;
    min-height: 0;
}

.qa-legal-detail .qa-legal-body .qa-rte {
    flex: 1 1 auto;
    min-height: 0;
}

.qa-legal-detail .qa-legal-body .qa-rte-surface {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.qa-legal-detail .qa-legal-body .qa-rte-source {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.qa-legal-revcount {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.qa-legal-diff {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: var(--line-height-relaxed);
}

.qa-legal-diff-note {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    font-style: italic;
    color: var(--color-text-muted);
}

.qa-legal-ins {
    background: var(--color-success-muted);
    color: var(--color-success-strong);
    border-radius: var(--radius-sm);
    padding: 0 2px;
    text-decoration: none;
}

.qa-legal-del {
    background: var(--color-danger-muted);
    color: var(--color-danger-strong);
    border-radius: var(--radius-sm);
    padding: 0 2px;
    text-decoration: line-through;
}
