/* Базовий захист контенту та спільний футер SoulSpace. */
html.soulspace-content-protected,
html.soulspace-content-protected body {
  -webkit-touch-callout: none;
}

html.soulspace-content-protected body,
html.soulspace-content-protected body * {
  -webkit-user-select: none;
  user-select: none;
}

/* Не блокуємо введення та редагування даних у формах. */
html.soulspace-content-protected input,
html.soulspace-content-protected textarea,
html.soulspace-content-protected select,
html.soulspace-content-protected option,
html.soulspace-content-protected [contenteditable="true"],
html.soulspace-content-protected [data-allow-copy] {
  -webkit-user-select: text;
  user-select: text;
}

html.soulspace-content-protected img {
  -webkit-user-drag: none;
  user-drag: none;
}

.site-footer {
  position: relative;
  z-index: 1200;
  display: flex;
  width: 100%;
  min-height: 56px;
  margin-top: auto;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1rem;
  border-top: 1px solid rgba(159, 224, 238, 0.16);
  background: rgba(5, 9, 15, 0.86);
  color: rgba(242, 248, 249, 0.68);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-footer a {
  color: #9fe0ee;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #f2c14e;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.info-page .info-main {
  min-height: calc(100vh - 56px);
}

.terms-grid {
  grid-template-columns: minmax(0, 1fr);
  width: min(880px, 100%);
}

.terms-grid .info-card {
  max-width: none;
  min-height: auto;
  text-align: left;
}

.terms-grid .info-card h2 {
  text-align: left;
}

body.body-mak-space,
body.body-add-deck {
  min-height: 100vh;
}

body:has(.callback-card) {
  padding-bottom: 56px;
}

body:has(.callback-card) .site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
}

@media print {
  body.soulspace-print-blocked > :not(.site-footer) {
    visibility: hidden !important;
  }

  .site-footer {
    position: static !important;
    color: #000 !important;
    border-color: #000 !important;
    background: #fff !important;
  }
}

@media (max-width: 480px) {
  .site-footer {
    min-height: 62px;
    font-size: 0.72rem;
  }
}
