.legal-wrapper {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal-hero {
  text-align: center;
  margin-bottom: 36px;
}

.legal-hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.3rem;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 0 18px var(--blue);
  margin-bottom: 10px;
}

.legal-hero p {
  color: var(--muted);
  font-weight: 600;
  max-width: 700px;
  margin: auto;
}

.legal-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.legal-tab {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: 0.25s;
}

.legal-tab:hover {
  background: rgba(61,161,240,.18);
  box-shadow: var(--blue-glow);
}

.legal-tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--blue-glow);
}

.legal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-card {
  background: linear-gradient(
    145deg,
    rgba(17, 24, 39, 0.85),
    rgba(34, 45, 67, 0.6)
  );
  border-radius: var(--radius);
  border: 1px solid rgba(61, 161, 240, 0.15);
  padding: 26px;
  backdrop-filter: blur(18px);
}

.legal-card h2 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 500;
}

.legal-card ul {
  padding-left: 20px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .legal-wrapper {
    margin-top: 30px;
  }

  .legal-tabs {
    width: 100%;
  }

  .legal-tab {
    width: 100%;
    justify-content: center;
  }
}
