:root {
  --bg0: #030b1f;
  --bg1: #071a3a;
  --c0: #a9c8ff;
  --c1: #5fa0ff;
  --c2: #2de2ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 900px at 50% 35%, var(--bg1), var(--bg0));
  color: white;
  overflow: hidden;
}

body.legal {
  overflow: auto;
}

.splash {
  position: relative;
  height: 100%;
  width: 100%;
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.03);
  animation: bgIn 900ms ease-out 250ms forwards;
}

.bg-logo img {
  width: min(92vmin, 980px);
  height: auto;
  opacity: 0.045;
  filter: blur(1.8px);
  transform: translateY(-1vh);
}

.center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  pointer-events: none;
}

.wordmark {
  width: min(64vmin, 560px);
  position: relative;
  transform: translateY(-2vh);
  opacity: 0;
  animation: logoIn 900ms cubic-bezier(0.2, 0.9, 0.2, 1) 300ms forwards;
}

.wordmark img {
  width: 100%;
  height: auto;
  display: block;
  will-change: filter;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 22px rgba(95, 160, 255, 0.22));
  animation: logoGlow 2600ms ease-in-out infinite;
}

.sublogo {
  margin-top: 14px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  animation: subIn 700ms ease-out 1.55s forwards;
}

.sublogo img {
  height: min(9.2vmin, 66px);
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  background: transparent;
}

.hint {
  margin-top: 18px;
  display: inline-flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  animation: hintIn 500ms ease-out 1.2s forwards;
}

.cta {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease,
    background-color 250ms ease, border-color 250ms ease;
}

body.ready .cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.ready .hint {
  opacity: 0.35;
}

.cta:hover {
  background: rgba(95, 160, 255, 0.18);
  border-color: rgba(169, 200, 255, 0.4);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--c2), var(--c1));
  opacity: 0.6;
  animation: pulse 1100ms ease-in-out infinite;
}
.dot:nth-child(2) {
  animation-delay: 120ms;
}
.dot:nth-child(3) {
  animation-delay: 240ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  pointer-events: auto;
}
.noscript a {
  color: #b9d4ff;
}

.footer {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: auto;
  z-index: 50;
}

.footer a {
  color: rgba(185, 212, 255, 0.92);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .sep {
  opacity: 0.6;
}

.legal-main {
  min-height: 100dvh;
  padding: 56px 16px 76px;
  display: grid;
  place-items: start center;
}

.legal-card {
  width: min(980px, 100%);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  padding: 20px 18px;
}

.legal-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.legal-card h2 {
  margin: 18px 0 8px;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.86);
}

.legal-card p,
.legal-card li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 14px;
}

.legal-card a {
  color: rgba(185, 212, 255, 0.95);
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.legal-meta {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes bgIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes logoIn {
  to {
    opacity: 1;
    transform: translateY(-2.4vh);
  }
}
@keyframes subIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hintIn {
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-3px);
    opacity: 0.92;
  }
}

@keyframes logoGlow {
  0%,
  100% {
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.35))
      drop-shadow(0 0 18px rgba(95, 160, 255, 0.16))
      drop-shadow(0 0 38px rgba(45, 226, 255, 0.06));
  }
  50% {
    filter: drop-shadow(0 10px 42px rgba(0, 0, 0, 0.35))
      drop-shadow(0 0 30px rgba(95, 160, 255, 0.24))
      drop-shadow(0 0 62px rgba(45, 226, 255, 0.12));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-logo,
  .wordmark,
  .sublogo,
  .hint,
  .dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ───── Responsive ───── */

/* Tablet & small desktop */
@media (max-width: 768px) {
  .wordmark {
    width: min(56vmin, 420px);
  }

  .bg-logo img {
    width: min(85vmin, 720px);
  }

  .sublogo img {
    height: min(8vmin, 54px);
  }

  .legal-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .legal-card h1 {
    font-size: 20px;
  }
}

/* Phone landscape / large phone */
@media (max-width: 600px) {
  body {
    background: radial-gradient(700px 600px at 50% 35%, var(--bg1), var(--bg0));
  }

  .wordmark {
    width: min(62vw, 340px);
  }

  .bg-logo img {
    width: min(90vw, 500px);
  }

  .sublogo {
    margin-top: 10px;
  }

  .sublogo img {
    height: min(7.5vw, 44px);
  }

  .hint {
    margin-top: 14px;
    gap: 6px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .cta {
    margin-top: 14px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .footer {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 8px;
    padding: 8px 10px;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .legal-main {
    padding: 40px 12px 68px;
  }

  .legal-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .legal-card h1 {
    font-size: 18px;
  }

  .legal-card h2 {
    font-size: 14px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 13px;
  }
}

/* Small phone */
@media (max-width: 380px) {
  .wordmark {
    width: min(72vw, 280px);
  }

  .sublogo img {
    height: min(8vw, 36px);
  }

  .cta {
    padding: 8px 10px;
    font-size: 12px;
  }

  .footer {
    font-size: 11px;
    gap: 6px;
    padding: 7px 8px;
  }

  .legal-card {
    padding: 14px 12px;
  }
}

/* Short viewports (landscape phones) */
@media (max-height: 500px) {
  .wordmark {
    width: min(32vh, 280px);
    transform: translateY(-1vh);
  }

  .bg-logo img {
    width: min(60vh, 400px);
  }

  .sublogo {
    margin-top: 6px;
  }

  .sublogo img {
    height: min(6vh, 36px);
  }

  .hint {
    margin-top: 8px;
  }

  .cta {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .footer {
    bottom: 4px;
    padding: 6px 8px;
    font-size: 11px;
  }
}
