/* Страницы: политика и 404 — используют базовые токены styles.css */

.legal-hero {
  padding: 120px 0 40px;
  background: var(--ink);
  color: #fff;
}

.legal-hero .logo {
  margin-bottom: 34px;
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 650;
}

.legal-hero p {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-nav .back {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.legal-nav .back:hover {
  color: #fff;
}

.legal-body {
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px);
}

.legal-card {
  max-width: 780px;
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.legal-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.legal-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.legal-card a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(18, 166, 122, 0.55);
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--mint-soft);
  border: 1px solid rgba(18, 166, 122, 0.2);
  font-size: 12.5px !important;
  color: #0b5c46 !important;
}

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 166, 122, 0.28), transparent 66%);
  filter: blur(70px);
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
}

.error-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 420px;
}

.error-code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(150deg, #fff, var(--mint-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-inner h1 {
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.8rem);
  font-weight: 620;
  letter-spacing: -0.03em;
}

.error-inner p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
