/* The legal sheet (public/legal-sheet.js): the rules and the privacy notice over the page,
   never a new tab (docs/design.md, Stay in the app). Tokens only. */
html.lgOpen, html.lgOpen body { overflow: hidden; }
  .lgSheet { position: fixed; inset: 0; z-index: calc(var(--z-sheet, 50) + 20); display: flex;
    align-items: flex-end; justify-content: center; }
  .lgSheet[hidden] { display: none; }
  .lgBackdrop { position: absolute; inset: 0; background: var(--sheet-scrim); opacity: 0; transition: opacity .2s; }
  .lgSheet.on .lgBackdrop { opacity: 1; }
  .lgPanel { position: relative; width: 100%; max-width: 640px; max-height: min(88vh, 88dvh);
    display: flex; flex-direction: column; background: var(--sheet); color: var(--ink); box-shadow: var(--sheet-lift);
    border: 1px solid var(--sheet-edge); border-bottom: 0; border-radius: 20px 20px 0 0;
    transform: translateY(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px); font-family: var(--ui); }
  .lgSheet.on .lgPanel { transform: none; opacity: 1; }
  @media (min-width: 720px) {
    .lgSheet { align-items: center; }
    .lgPanel { border-radius: 20px; border-bottom: 1px solid var(--sheet-edge); max-height: 84vh; }
  }
  .lgGrab { width: 36px; height: 4px; border-radius: 2px; background: var(--ink-dim); margin: 8px auto 0; flex: none; }
  .lgHead { display: flex; align-items: center; gap: 12px; padding: 6px 8px 8px 20px; flex: none;
    border-bottom: 1px solid var(--line); }
  .lgTitle { flex: 1; margin: 0; font-family: var(--display); font-size: 20px; line-height: 1.2;
    letter-spacing: -.01em; text-wrap: balance; }
  .lgClose { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
    color: var(--ink); cursor: pointer; display: grid; place-items: center; }
  .lgClose:hover { background: var(--raised); }
  .lgClose:focus-visible { outline: none; box-shadow: var(--focus); }
  .lgBody { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 16px 20px 28px; line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; }
  .lgBody:focus { outline: none; }
  .lgBody h1, .lgBody .rulebar { display: none; }
  .lgBody h2 { font-size: 16px; margin: 22px 0 6px; letter-spacing: -.01em; }
  .lgBody p { margin: 0 0 12px; }
  .lgBody ul { margin: 0 0 12px; padding-left: 20px; }
  .lgBody li { margin: 0 0 8px; }
  .lgBody .lede { font-size: 16px; }
  .lgBody .small { font-size: 13px; color: var(--ink-soft); }
  .lgBody .banner { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--raised); font-size: 14px; }
  .lgBody .banner b { display: block; font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
  .lgBody .banner.draft { border: 1px solid var(--ink-soft); }
  .lgBody a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
  .lgWait { color: var(--ink-soft); }
  /* Sobre a Kuiri (2026-10-14): the page itself, whole, in a taller sheet. */
  .lgSheet.lgTall .lgPanel { max-height: min(94vh, 94dvh); height: min(94vh, 94dvh); max-width: 760px; }
  .lgSheet.lgTall .lgBody { padding: 0; overflow: hidden; flex: 1; display: flex; }
  .lgFrame { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: var(--canvas); }
