/* Юридические страницы (рядом с miniapp-shell). */

body.legal-doc {
  padding-top: 16px;
  max-width: 100vw;
  overflow-x: clip;
  box-sizing: border-box;
}

.legal-doc .shell {
  width: 100%;
  max-width: min(720px, 100%);
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

.legal-nav {
  margin-bottom: 18px;
}

.legal-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 124, 255, 0.35);
}

.legal-nav a:hover {
  opacity: 0.92;
}

.legal-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 20px;
}

.legal-doc h1 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.legal-doc h2 {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.legal-doc p {
  margin: 0 0 12px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

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

.legal-doc li:last-child {
  margin-bottom: 0;
}

.legal-doc a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 124, 255, 0.35);
}

.legal-doc strong {
  color: var(--text);
  font-weight: 600;
}

.legal-fill {
  margin: 20px 0;
  padding: 14px 16px;
  background: rgba(255, 122, 122, 0.08);
  border: 1px solid rgba(255, 122, 122, 0.22);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.legal-fill strong {
  color: var(--err);
}

.legal-hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-hub-list li {
  margin-bottom: 10px;
}

.legal-hub-list a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom-width: 1px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.legal-hub-list a:hover {
  border-color: rgba(139, 124, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(139, 124, 255, 0.06) inset;
}

.legal-hub-list span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}
