/* Fougest Legal Pages Stylesheet */
*, *::before, *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

.legal-page {
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto;
  padding: 130px 20px 90px;
  box-sizing: border-box;
}

.legal-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.legal-header h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 40px rgba(77, 141, 255, 0.35);
}

.legal-header p {
  margin: 16px auto 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: rgba(206, 220, 250, 0.78);
}

/* Дата обновления */
.legal-updated {
  display: block;
  text-align: center;
  margin: 0 auto 40px;
  font-size: 13px;
  color: var(--muted);
}

/* Тело документа */
.legal-body {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 36px;
}

.legal-body h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.legal-body h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-hi);
}

.legal-body p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(214, 228, 255, 0.88);
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-body li {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(214, 228, 255, 0.88);
}

.legal-body li::marker {
  color: var(--blue);
}

.legal-body a {
  color: var(--blue-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 196, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.legal-body a:hover {
  color: #fff;
  border-color: rgba(140, 196, 255, 0.7);
}

.legal-body b {
  color: #fff;
  font-weight: 600;
}

/* Разделитель между секциями */
.legal-sep {
  height: 1px;
  margin: 30px 0;
  background: linear-gradient(90deg, transparent, rgba(140, 196, 255, 0.25), transparent);
  border: none;
}

/* Блок контактов внизу */
.legal-contact {
  margin-top: 30px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(140, 196, 255, 0.22);
  background: rgba(77, 141, 255, 0.08);
}

.legal-contact h3 {
  margin: 0 0 8px;
}

.legal-contact p {
  margin: 0;
}

/* Плашки-ссылки на другие документы */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #cfe3ff;
  text-decoration: none;
  background: rgba(77, 141, 255, 0.10);
  border: 1px solid rgba(140, 196, 255, 0.28);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.legal-nav a:hover {
  background: rgba(77, 141, 255, 0.22);
  border-color: rgba(140, 196, 255, 0.5);
  box-shadow: 0 0 18px rgba(77, 141, 255, 0.35);
  color: #fff;
}

@media (max-width: 640px) {
  .legal-page { padding: 110px 14px 60px; }
  .legal-body { padding: 24px 18px; }
  .legal-body h2 { font-size: 20px; }
  .legal-nav { flex-direction: column; align-items: stretch; }
  .legal-nav a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-nav a, .legal-body a { transition: none; }
}
