.rb-document-dialog { width: min(880px, calc(100% - 48px)); max-width: none; max-height: 85vh; max-height: 85dvh; padding: 0; border: 1px solid rgba(179, 81, 51, .65); border-radius: 4px; overflow: hidden; color: var(--rb-ivory); background: radial-gradient(ellipse at 90% 0, rgba(107, 52, 35, .16), transparent 60%), #0c1010; box-shadow: 0 24px 80px rgba(0, 0, 0, .4); }
.rb-document-dialog::backdrop { background: rgba(0, 0, 0, .76); }
.rb-document-dialog[open] { animation: rb-document-enter 160ms ease both; }
.rb-document-dialog[open]::backdrop { animation: rb-document-enter 160ms ease both; }
.rb-document-dialog.is-closing,
.rb-document-dialog.is-closing::backdrop { animation: rb-document-leave 160ms ease both; }
.rb-document-dialog-scroll { max-height: calc(85vh - 2px); max-height: calc(85dvh - 2px); overflow-y: auto; overscroll-behavior: contain; padding: 56px; }
.rb-document-dialog .rb-document-heading h2 { font-size: clamp(36px, 5vw, 72px); }
.rb-document-dialog .rb-document-content { margin-top: 44px; }
.rb-document-dialog-close { position: absolute; z-index: 1; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 3px; color: #aaa99f; background: #0c1010; cursor: pointer; }
.rb-document-dialog-close svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.rb-document-dialog-close:focus-visible { outline: 2px solid var(--rb-copper); outline-offset: 2px; }
.rb-document-dialog .rb-document-heading h2:focus { outline: none; }
html.rb-document-modal-open { overflow: hidden; scroll-behavior: auto; }
.rb-footer-legal-item { color: inherit; text-decoration: none; transition: color 200ms ease; }
.rb-footer-legal-item:focus-visible { color: var(--rb-copper); outline: 2px solid var(--rb-copper); outline-offset: 4px; }
html[data-rb-input="pointer"] .rb-footer-legal-item:focus { outline: none; }
@media (hover: hover) and (pointer: fine) {
	.rb-footer-legal-item:hover { color: var(--rb-copper); }
}
@media (max-width: 650px) {
	.rb-document-dialog { width: calc(100% - 32px); max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
	.rb-document-dialog-scroll { max-height: calc(100vh - 34px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 34px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); padding: 64px 24px 32px; }
	.rb-document-dialog .rb-document-heading h2 { font-size: clamp(32px, 8vw, 48px); }
}
@keyframes rb-document-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes rb-document-leave { from { opacity: 1; } to { opacity: 0; } }
@media (hover: none) and (pointer: coarse) {
 .rb-footer-legal-item:active { color: var(--rb-copper); }
}

@media (prefers-reduced-motion: reduce) {
	.rb-document-dialog[open], .rb-document-dialog[open]::backdrop,
	.rb-document-dialog.is-closing, .rb-document-dialog.is-closing::backdrop { animation: none; }
	.rb-footer-legal-item { transition: none; }
}
