/* Explicit viewport centering overrides the site's utility reset for native dialogs. */
html.dw-legal-open { overflow: hidden; }
dialog.dw-legal-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(49rem, calc(100% - 3rem));
  height: min(44rem, calc(100dvh - 4rem));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #484349;
  border-top-color: #c78f35;
  border-radius: 1.15rem;
  background: #151416;
  color: #fbf8fa;
  box-shadow: 0 24px 92px #000b;
  overflow: hidden;
}
dialog.dw-legal-lightbox[open] { display: flex; flex-direction: column; }
.dw-legal-lightbox::backdrop { background: #08070bbb; backdrop-filter: blur(5px); }
.dw-legal-lightbox-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.7vw, 1rem);
  padding: .9rem clamp(1.1rem, 4vw, 2.5rem);
  background: linear-gradient(115deg, #252123, #1c1a1e 65%);
  border-bottom: 1px solid #38333b;
  font: 500 .9rem/1.25 system-ui,sans-serif;
}
.dw-legal-lightbox-bar h2 { color: #faf6f8; flex: 1; margin: 0; font: 740 clamp(1.22rem, 2.1vw, 1.62rem)/1.16 system-ui,sans-serif; letter-spacing: -.03em; }
.dw-legal-lightbox-full { color: #edd0a1; text-decoration: underline; text-underline-offset: .24em; }
.dw-legal-lightbox-close {
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid #625762;
  background: #272329;
  border-radius: 50%;
  color: #fff;
  font: 500 1.5rem/1 system-ui,sans-serif;
  cursor: pointer;
}
.dw-legal-lightbox-close:hover { background: #403b43; }
.dw-legal-lightbox :focus-visible { outline: 2px solid #ffbd41; outline-offset: 2px; }
.dw-legal-lightbox-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
  padding: 1rem clamp(1.1rem, 4vw, 2.5rem) 1.5rem;
  color: #ded9e0;
  font: 400 .95rem/1.66 system-ui,sans-serif;
}
.dw-legal-lightbox-content > * { max-width: 41.5rem; margin-inline: auto; }
.dw-legal-lightbox-content p { margin-block: .7rem; }
.dw-legal-lightbox-content > p:nth-child(2) { color: #b4aab6; font-size: .83rem; margin-bottom: 1.1rem; }
.dw-legal-lightbox-content section { padding: .8rem 0; border-top: 1px solid #373339; background: transparent; }
.dw-legal-lightbox-content h3 { margin: .35rem 0; color: #fff; font: 680 1.13rem/1.32 system-ui,sans-serif; letter-spacing: -.015em; }
.dw-legal-lightbox-content a { color: #ffbd41; text-decoration: underline; text-underline-offset: .18em; white-space: normal; overflow-wrap: anywhere; }
.dw-legal-lightbox-settings { min-height: 2.85rem; text-align: left; border: 0; border-top: 1px solid #38333b; color: #ffbd41; background: #201e21; padding: .7rem clamp(1.1rem,4vw,2.5rem); cursor: pointer; font: 650 .88rem/1.4 system-ui,sans-serif; }
.dw-legal-lightbox-settings:hover { text-decoration: underline; }
@media (max-width: 550px) {
  dialog.dw-legal-lightbox { width: calc(100% - 1.5rem); height: min(42rem, calc(100dvh - 2rem)); border-radius: .9rem; }
  .dw-legal-lightbox-bar { padding: .7rem .65rem .7rem .95rem; gap: .55rem; }
  .dw-legal-lightbox-bar h2 { font-size: clamp(1rem, 4.3vw, 1.23rem); }
  .dw-legal-lightbox-full { font-size: .75rem; }
  .dw-legal-lightbox-content { padding-inline: .8rem; }
}
