/* Source-compatible behavior fixes and Preserra-only additions. */
html { scroll-behavior: smooth; }
body { min-width: 320px; }

.preserra-mobile-menu {
  position: fixed;
  inset: 5rem 0 auto;
  z-index: 49;
  display: grid;
  gap: .25rem;
  padding: 1rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgb(220 252 231);
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 35px rgba(15,23,42,.12);
}
.preserra-mobile-menu[hidden] { display: none; }
.preserra-mobile-menu a {
  display: block;
  padding: .8rem 1rem;
  border-radius: .75rem;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
}
.preserra-mobile-menu a:hover,
.preserra-mobile-menu a:focus-visible { background: #f0fdf4; color: #15803d; }

[id^="faq-panel-"] { min-height: 0; }
[id^="faq-panel-"].preserra-faq-open {
  grid-template-rows: 1fr !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}
[aria-controls^="faq-panel-"][aria-expanded="true"] .i-heroicons\:plus {
  transform: rotate(45deg);
}

[aria-label^="Show demo "][aria-current="true"] {
  width: 4rem;
  height: .375rem;
  background: rgb(187 247 208);
}

.preserra-download-state {
  flex: 0 0 auto;
  margin-left: auto;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.download-option[data-download-state="pending"] {
  cursor: not-allowed;
  border-color: #e2e8f0 !important;
  background: rgba(248,250,252,.92) !important;
  box-shadow: none !important;
  opacity: .78;
  transform: none !important;
}
.download-option[data-download-state="pending"] .preserra-download-state {
  background: #e2e8f0;
  color: #475569;
}
.download-option[data-download-state="pending"] > :last-child { display: none; }

.download-page section,
.download-page section > div,
.download-option { min-width: 0; }

@media (max-width: 520px) {
  .download-option {
    gap: .5rem !important;
    padding: .75rem !important;
  }
  .download-option > :first-child { gap: .75rem !important; }
  .download-option > :last-child { display: none; }
  .preserra-download-state {
    padding: .3rem .5rem;
    font-size: .62rem;
  }
}

.preserra-legal-main {
  min-height: calc(100vh - 10rem);
  padding: 8rem 1.5rem 5rem;
  background: linear-gradient(180deg,#f0fdf4 0,#fff 18rem);
}
.preserra-legal-card {
  max-width: 58rem;
  margin: 0 auto;
  border: 1px solid #dcfce7;
  border-radius: 1.5rem;
  background: white;
  padding: clamp(1.5rem,4vw,3.5rem);
  box-shadow: 0 24px 60px rgba(15,23,42,.08);
}
.preserra-legal-card h1 { margin: 0 0 .5rem; font-size: clamp(2rem,5vw,3.5rem); line-height: 1.05; color: #052e16; }
.preserra-legal-card h2 { margin: 2rem 0 .65rem; font-size: 1.35rem; color: #14532d; }
.preserra-legal-card p,
.preserra-legal-card li { color: #475569; line-height: 1.75; }
.preserra-legal-card a { color: #15803d; font-weight: 700; }
.preserra-legal-meta { margin-bottom: 2.25rem; color: #64748b; }

@media (min-width: 768px) {
  .preserra-mobile-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
