/* Legal pages: privacy-policy, terms, delete-account */
html.legal-route,
html.legal-route body,
body.legal-body {
  min-height: 100%;
  margin: 0;
}

body.legal-body {
  background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(255, 0, 85, 0.14) 0%,
      transparent 55%
    ),
    var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
}

.legal-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
  box-sizing: border-box;
}

.legal-wrap {
  width: 100%;
  max-width: 720px;
}

.legal-header {
  text-align: center;
  margin-bottom: 32px;
}

.legal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.legal-lang-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.legal-header a.legal-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.legal-header a.legal-logo img {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px var(--primary-glow));
}

.legal-header h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  background: linear-gradient(165deg, #1a1a1a 0%, var(--bg-card) 45%, #121212 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px 36px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 0, 85, 0.06), 0 0 60px rgba(255, 0, 85, 0.08);
}

.legal-content section {
  margin-bottom: 28px;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin-bottom: 12px;
}

.legal-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

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

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ol li {
  margin-bottom: 8px;
}

.legal-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-actions .auth-app-btn {
  margin-bottom: 0;
}

.legal-back {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 85, 0.45);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.legal-back:hover {
  background: rgba(255, 0, 85, 0.1);
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.15);
}

@media (max-width: 480px) {
  .legal-page {
    padding: 24px 12px 40px;
  }

  .legal-content {
    padding: 24px 20px 28px;
    border-radius: 14px;
  }
}
