/* Legal reading panel. HEDJ paper, KEM type and one SIGNAL mark. */
.wl-legal-preview {
  --legal-paper: #FCFCF9;
  --legal-ink: #171813;
  --legal-muted: #62635B;
  --legal-line: #E3E3DC;
  --legal-gutter: clamp(24px, 5vw, 48px);
  position: fixed;
  inset-block: 0;
  inset-inline: auto 0;
  box-sizing: border-box;
  inline-size: min(100%, 34.5rem);
  block-size: 100vh;
  block-size: 100dvh;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--legal-line);
  background: var(--legal-paper);
  color: var(--legal-ink);
  font: 400 15px/1.62 var(--sans, Arial, sans-serif);
  font-kerning: normal;
}
html[data-theme="dark"] .wl-legal-preview {
  --legal-paper: #171813;
  --legal-ink: #F9F9F5;
  --legal-muted: #E3E3DC;
  --legal-line: #35362F;
}
.wl-legal-preview::backdrop { background: rgb(9 10 9 / .36); }
.wl-legal-preview[open] { display: flex; flex-direction: column; }
.wl-legal-preview * { box-sizing: border-box; }
.wl-legal-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-block-size: 65px;
  padding: 8px var(--legal-gutter);
  border-block-end: 1px solid var(--legal-line);
}
.wl-legal-brand { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.wl-legal-brand span { color: #C9A227; }
.wl-legal-close {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  margin-inline-end: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.wl-legal-close:hover { background: color-mix(in srgb, var(--legal-line) 52%, transparent); }
.wl-legal-content {
  flex: 1 1 auto;
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: clamp(26px, 5vh, 44px) var(--legal-gutter) 50px;
}
.wl-legal-content h2 {
  max-inline-size: 17ch;
  margin: 0 0 26px;
  font-size: clamp(34px, 5vw, 47px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.wl-legal-contact {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding-block: 15px 19px;
  border-block: 1px solid var(--legal-line);
}
.wl-legal-contact-label { color: var(--legal-muted); font-size: 12px; line-height: 1.4; }
.wl-legal-person { font-size: 19px; font-weight: 550; line-height: 1.28; }
.wl-legal-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.wl-legal-contact a { unicode-bidi: isolate; overflow-wrap: anywhere; font-size: 14px; }
.wl-legal-content section { margin-block-start: 27px; }
.wl-legal-content section + section {
  margin-block-start: 30px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--legal-line);
}
.wl-legal-content h3 {
  margin: 0 0 15px;
  font-size: 22px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.wl-legal-content dl { display: grid; gap: 15px; margin: 0; }
.wl-legal-entry {
  display: grid;
  grid-template-columns: minmax(0, 98px) minmax(0, 1fr);
  gap: 0 17px;
}
.wl-legal-entry dt {
  color: var(--legal-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  padding-block-start: .18em;
  text-wrap: balance;
}
.wl-legal-entry dd {
  max-inline-size: 53ch;
  min-inline-size: 0;
  margin: 0;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.wl-legal-preview[dir="rtl"] :is(h2, h3, dt, dd) { letter-spacing: normal; }
.wl-legal-preview[dir="rtl"] h2 { line-height: 1.18; }
.wl-legal-preview[dir="rtl"] dd { line-height: 1.75; hyphens: none; }
.wl-legal-preview :is(button, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (max-width: 510px) {
  .wl-legal-preview { border: 0; }
  .wl-legal-head { min-block-size: 58px; padding-block: 6px; }
  .wl-legal-content { padding-block-end: max(40px, env(safe-area-inset-bottom)); }
  .wl-legal-entry { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wl-legal-entry dt { padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .wl-legal-preview[open] { animation: wl-panel-in 220ms ease-out both; }
  html:not(.motion-paused) .wl-legal-preview[dir="rtl"][open] { animation-name: wl-panel-in-rtl; }
}
@keyframes wl-panel-in {
  from { opacity: .7; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wl-panel-in-rtl {
  from { opacity: .7; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}
