.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 55% 36% at 50% 0%, rgba(139, 53, 255, 0.1), transparent 72%),
    var(--bg);
}

.legal {
  position: relative;
  z-index: 1;
  width: min(var(--shell-max), calc(100% - var(--shell-gutter) * 2));
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 0 96px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 22px;
  color: #c4a0ff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.legal__back:hover,
.legal__back:focus-visible {
  color: #e9d5ff;
  transform: translateX(2px);
}

.legal__card {
  padding: 28px 28px 34px;
  border: 1px solid rgba(168, 120, 255, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(34, 18, 64, 0.45), rgba(14, 10, 28, 0.55));
  box-shadow: 0 24px 60px rgba(48, 16, 96, 0.22);
}

.legal__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.legal__title span {
  background: linear-gradient(90deg, #d8b4fe, #a855f7 55%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(168, 120, 255, 0.28);
  border-radius: 999px;
  background: rgba(122, 44, 240, 0.14);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.legal__meta strong {
  color: #e9d5ff;
  font-weight: 700;
}

.legal__intro {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.legal__section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(168, 120, 255, 0.14);
}

.legal__section h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal__section p,
.legal__section li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.legal__section p {
  margin: 0 0 12px;
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section ul,
.legal__section ol {
  margin: 0;
  padding-left: 1.2rem;
}

.legal__section li + li {
  margin-top: 8px;
}

.legal__email {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(168, 120, 255, 0.3);
  border-radius: 999px;
  background: rgba(122, 44, 240, 0.16);
  color: #efe7ff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.legal__email:hover,
.legal__email:focus-visible {
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(122, 44, 240, 0.26);
}

.legal__footer {
  margin-top: 28px;
  color: rgba(183, 180, 201, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .legal {
    padding: 20px 0 72px;
  }

  .legal__card {
    padding: 22px 18px 28px;
    border-radius: 20px;
  }

  .legal__section h2 {
    font-size: 1.08rem;
  }
}
