:root {
  --background: #07101f;
  --surface: #101d35;
  --surface-hover: #162747;
  --accent: #39d5ff;
  --accent-secondary: #3478ff;
  --text: #ffffff;
  --text-secondary: #aab4c8;
  --border: rgba(255, 255, 255, 0.10);
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(52, 120, 255, 0.14), transparent 38%),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.container {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 40px;
}

.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.legal-card {
  display: block;
  padding: 28px;
  background: linear-gradient(145deg, var(--surface), #0d182d);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 213, 255, 0.45);
  background: var(--surface-hover);
}

.legal-card h2 {
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.legal-card p {
  color: var(--text-secondary);
}

.legal-content {
  background: linear-gradient(145deg, var(--surface), #0d182d);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.legal-content h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.legal-content h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--accent);
}

.updated {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 48px;
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, 900px);
    padding-top: 48px;
  }

  .legal-links {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 24px;
  }

  .hero {
    margin-bottom: 36px;
  }
}
