* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
}

.logo-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo {
  max-width: 90vw;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  shape-rendering: crispEdges;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports (-webkit-hyphens: none) {
  .logo {
    filter: none !important;
  }
}

@media (min-width: 768px) {
  .logo {
    max-width: 600px;
    max-height: 400px;
  }
}

#legal-popup-trigger {
  position: fixed;
  right: 2vw;
  bottom: 2vh;
  z-index: 1001;
  background: none;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  font-size: 0.75rem;
  padding: 0.2em 0.6em;
  border-radius: 0.5em;
  box-shadow: none;
  cursor: pointer;
  transition: text-decoration 0.18s;
  user-select: none;
  letter-spacing: 0.01em;
  border: none;
  outline: none;
  text-decoration: none;
  background-color: transparent;
}
#legal-popup-trigger:hover {
  color: #fff;
  text-decoration: none;
}

#legal-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 2, 0.6, 1);
}
#legal-popup-modal.show {
  opacity: 1;
  pointer-events: auto;
}
#legal-popup-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.legal-popup-content {
  background: rgba(0, 0, 5, 0.1);
  border-radius: 1.2em;
  box-shadow: 0 8px 48px 0 rgba(0, 0, 0, 0.32),
    0 1.5px 8px 0 rgba(255, 255, 255, 0.08);
  padding: 2.5em 2em 2em 2em;
  max-width: 95vw;
  width: 420px;
  color: #fff;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  animation: aiPopupIn 0.5s cubic-bezier(0.4, 2, 0.6, 1);
  backdrop-filter: blur(18px) saturate(1.5) brightness(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.5) brightness(1.12);
  overflow: hidden;
}
.legal-popup-content a {
  color: white;
}
@keyframes aiPopupIn {
  0% {
    transform: scale(0.92) translateY(30px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
#legal-popup-close {
  position: absolute;
  top: 1.1em;
  right: 1.2em;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1em;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 10;
  line-height: 1;
}
#legal-popup-close:hover {
  color: #bbb;
}
.legal-popup-content h2 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: none;
}
.legal-popup-content p {
  font-size: 0.9em;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 1.2em;
  text-shadow: none;
}
@media (max-width: 600px) {
  .legal-popup-content {
    width: 95vw;
    max-height: fit-content;
    padding: 1em;
  }
  .legal-popup-content h2 {
    font-size: 1.1em;
  }
  .legal-popup-content p {
    font-size: 0.85em;
    line-height: 1.3;
  }
  #legal-popup-trigger {
    font-size: 0.6rem;
    padding: 0.2em 0.5em;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .logo {
    max-width: 80vw;
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 80vw;
    max-height: 40vh;
  }

  .logo-container {
    padding: 15px;
  }
}

@media (max-width: 812px) and (orientation: landscape) {
  .logo {
    max-height: 60vh;
  }
}
