/* LEVELUP CLIENT V288 — mobile app-like rounded legal document sheet.
   CSS-only layer on top of V286 styling and V287 body-level placement. */
.lu-legal-v286-backdrop {
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 12px
           calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: rgba(3, 4, 3, .78);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.lu-legal-v286-sheet {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(165deg, #1c1c18, #111210 36%);
  border: 1px solid rgba(218, 176, 94, .30);
  box-shadow:
    0 28px 75px rgba(0, 0, 0, .64),
    0 0 0 1px rgba(255, 255, 255, .025),
    inset 0 1px 0 rgba(255, 255, 255, .035);
}

.lu-legal-v286-header {
  padding: 16px 15px 14px 19px;
  background: linear-gradient(110deg, rgba(176, 132, 47, .14), rgba(30, 29, 22, .45));
  border-bottom: 1px solid rgba(213, 164, 75, .18);
}
.lu-legal-v286-heading h2 {
  font-size: 20px;
  line-height: 1.2;
}
.lu-legal-v286-close {
  width: 41px;
  height: 41px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(220, 195, 138, .23);
}
.lu-legal-v286-close:active {
  background: rgba(210, 167, 74, .15);
}
.lu-legal-v286-frame-wrap {
  -webkit-overflow-scrolling: touch;
}
.lu-legal-v286-footer {
  min-height: 34px;
  background: rgba(21, 22, 19, .96);
  border-top-color: rgba(215, 171, 80, .14);
}

@media (min-width: 700px) {
  .lu-legal-v286-backdrop { padding: 24px; }
  .lu-legal-v286-sheet {
    max-height: min(850px, calc(100dvh - 48px));
    border-radius: 24px;
  }
}

@media (max-height: 620px) {
  .lu-legal-v286-backdrop {
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 9px
             calc(env(safe-area-inset-bottom, 0px) + 6px);
  }
  .lu-legal-v286-sheet { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lu-legal-v286-backdrop { transition: none; }
}
