:root {
  --bg: #0c1020;
  --card: #11162b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f6ff;
  --muted: #c2c7d6;
  --accent: #7c5dff;
  --accent-2: #3ae1ff;
  --radius: 16px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 93, 255, 0.22), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(58, 225, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #0d1124 0%, #090c1a 60%, #050711 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 14px 44px;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-shell {
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.top-bar {
  margin-bottom: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(124, 93, 255, 0.9);
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--transition), border-color var(--transition);
}

.back-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
}

.legal-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.legal-card h1 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.legal-section {
  margin: 18px 0;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.legal-section p {
  margin: 0 0 10px;
  color: #e8ebf7;
  line-height: 1.6;
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  color: #e8ebf7;
  line-height: 1.6;
}

.legal-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.guides-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guides-list a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
}

.guides-list a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-link {
    width: 100%;
    text-align: center;
  }
}
