.pfo-page:has(.pfo-recaptcha-note) .grecaptcha-badge {
    visibility: hidden;
}

.pfo-recaptcha-note {
    margin: 0.9rem 0 1rem;
    color: #d2cbdf;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.pfo-recaptcha-note a,
.pfo-document-dialog a {
    color: #9cf1e6;
    text-underline-offset: 0.18em;
}

.pfo-document-dialog {
    box-sizing: border-box;
    width: min(46rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    color: #f5f1fc;
    background: #211d38;
    border: 1px solid #a996d870;
    border-radius: 1.25rem;
    box-shadow: 0 1.25rem 4rem #0d0926a0;
}

.pfo-document-dialog[open] {
    display: flex;
    flex-direction: column;
}

.pfo-document-dialog::backdrop {
    background: #120e24cf;
}

.pfo-document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    border-bottom: 1px solid #a996d840;
}

.pfo-document-header h2 {
    margin: 0;
    font-size: clamp(1.125rem, 4vw, 1.5rem);
}

.pfo-document-header button {
    flex: none;
    margin: 0;
}

.pfo-document-content {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    padding: 0.5rem clamp(1rem, 4vw, 2rem) 1rem;
    line-height: 1.65;
}

.pfo-document-content h2 {
    font-size: 1.125rem;
}

.pfo-document-dialog footer {
    padding: 0.85rem clamp(1rem, 4vw, 2rem);
    border-top: 1px solid #a996d840;
    font-size: 0.875rem;
}
