/* Maintenance gate — shared by index + legal pages (subset of styles.css) */
@import url("./baleon-type.css");

:root {
  --sand: #e8dfd0;
}

.baleon-maintenance-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem 1.5rem;
  overflow: hidden;
  color: #fff;
}

.baleon-maintenance-gate[hidden] {
  display: none !important;
}

.baleon-maintenance-gate.is-active:not([hidden]) {
  display: flex !important;
}

html.baleon-maint-boot body {
  overflow: hidden !important;
}

html.baleon-maint-boot body > *:not(#baleon-maintenance-gate) {
  display: none !important;
}

html.baleon-maint-boot #baleon-maintenance-gate {
  display: flex !important;
}

html.baleon-maint-boot #baleon-maintenance-gate[hidden] {
  display: flex !important;
}

body.baleon-maintenance-active {
  overflow: hidden;
  height: 100vh;
}

body.baleon-maintenance-active > *:not(#baleon-maintenance-gate) {
  display: none !important;
}

.baleon-maintenance-gate__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.baleon-maintenance-gate__bg-photo {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: blur(14px) saturate(0.92) brightness(0.72);
  transform: scale(1.04);
}

.baleon-maintenance-gate__bg-dim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(15, 35, 24, 0.55) 0%, rgba(27, 67, 50, 0.78) 52%, rgba(12, 28, 20, 0.88) 100%);
}

.baleon-maintenance-gate__content,
.baleon-maintenance-gate__footer {
  position: relative;
  z-index: 1;
}

.baleon-maintenance-gate__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 28rem);
  text-align: center;
}

.baleon-maintenance-gate__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  text-decoration: none;
  color: inherit;
  pointer-events: none;
}

.baleon-maintenance-gate__logo {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 17px;
  object-fit: cover;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.baleon-maintenance-gate__word {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sand);
}

.baleon-maintenance-gate__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-lg);
  letter-spacing: -0.012em;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.baleon-maintenance-gate__message {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.baleon-maintenance-gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.baleon-maintenance-gate__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.baleon-maintenance-gate__store {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.baleon-maintenance-gate__store--soon {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.baleon-maintenance-gate__footer {
  width: min(100%, 28rem);
  text-align: center;
  padding-top: 1rem;
  margin-top: auto;
}

.baleon-maintenance-gate__public {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
}

.baleon-maintenance-gate__public a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

.baleon-maintenance-gate__public a:hover {
  color: #fff;
  text-decoration: underline;
}

.baleon-maintenance-gate__public-sep {
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.baleon-maintenance-gate__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}

.baleon-maintenance-gate__socials[hidden] {
  display: none;
}

.baleon-maintenance-gate__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}
