:root {
  --bg: #020617;
  --text: #f0f9ff;
  --muted: #94a3b8;
  --sky: #38bdf8;
  --cyan: #22d3ee;
  --glass: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(125, 211, 252, 0.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite;
}

.aurora-1 {
  width: 70vmax;
  height: 50vmax;
  top: -25%;
  left: -10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
}

.aurora-2 {
  width: 55vmax;
  height: 40vmax;
  bottom: -15%;
  right: -15%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  animation-delay: -8s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2%, 3%); }
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.legal-top {
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fade-in 0.7s var(--ease-out) both;
}

.legal-logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.legal-top h1 {
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.5rem 1.35rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: fade-in 0.8s var(--ease-out) 0.1s both;
}

.legal-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 1.25rem 0 0.5rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.legal-card ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.legal-card li { margin-bottom: 0.4rem; }

.legal-card .updated {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 1rem;
}

.legal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: fade-in 0.9s var(--ease-out) 0.2s both;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-border);
  transition: all 0.25s var(--ease-out);
}

.btn-back:hover {
  border-color: var(--sky);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
  color: #fff;
}

.btn-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
  transition: transform 0.25s var(--ease-out);
}

.btn-support:hover {
  transform: translateY(-2px);
  color: #fff;
}

.legal-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.legal-footer a { color: var(--muted); margin: 0 0.35rem; }
.legal-footer a:hover { color: var(--cyan); }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
