:root {
  --purple-950: #120a20;
  --purple-900: #1a0e2e;
  --purple-800: #2a1a48;
  --lavender: #f5f0ff;
  --lavender-dim: rgba(245, 240, 255, 0.72);
  --lavender-faint: rgba(245, 240, 255, 0.42);
  --gold: #e8a06a;
  --gold-light: #f6c896;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: rgba(10, 4, 22, 0.55);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(232, 160, 106, 0.20) 0%, rgba(232, 160, 106, 0) 55%),
    radial-gradient(90% 60% at 10% 110%, rgba(124, 74, 168, 0.35) 0%, rgba(124, 74, 168, 0) 55%),
    linear-gradient(180deg, #150a26 0%, #1a0e2e 40%, #170c28 100%);
  color: var(--lavender);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
}

.legal-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  min-height: 80vh;
  background: rgba(26, 14, 46, 0.60);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 90px rgba(6, 2, 16, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 40px 32px 32px;
  margin: 20px 0;
}

/* Ambient orbs */
.legal-frame::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  top: -60px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 106, 0.20), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  animation: driftA 18s ease-in-out infinite alternate;
}
.legal-frame::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  bottom: 40px;
  left: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 74, 168, 0.25), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  animation: driftB 22s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-16px, 24px) scale(1.08); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, -20px) scale(1.1); }
}

.legal-content {
  position: relative;
  z-index: 2;
}

.legal-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}
.legal-back:hover {
  opacity: 0.8;
}

.legal-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--lavender);
  line-height: 1.2;
}

.legal-meta {
  font-size: 13px;
  color: var(--lavender-faint);
  margin-top: 4px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.legal-section p,
.legal-section li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--lavender-dim);
  margin-bottom: 8px;
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-section li {
  margin-bottom: 4px;
}

.legal-section strong {
  color: var(--lavender);
}

.legal-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--lavender-faint);
  text-align: center;
}

@media (max-width: 480px) {
  .legal-frame {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }
  .legal-title {
    font-size: 22px;
  }
}