:root {
  --ink: #0a0014;
  --magenta: #ff006e;
  --cyan: #00ffff;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(0, 255, 255, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 12%, rgba(0, 255, 255, 0.13), transparent 28%),
    radial-gradient(circle at 8% 58%, rgba(255, 0, 110, 0.12), transparent 30%),
    var(--ink);
  font-family: "Space Mono", "Cascadia Mono", Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 255, 255, 0.12) 4px
  );
  mix-blend-mode: screen;
}

a {
  color: var(--cyan);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--white);
}

a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 5px;
}

.metrika-pixel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.metrika-pixel img {
  width: 1px;
  height: 1px;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-header {
  display: flex;
  padding: max(26px, env(safe-area-inset-top)) 0 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.legal-brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.82), 0 0 28px rgba(255, 0, 110, 0.4);
}

.legal-age {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.legal-main {
  padding: clamp(60px, 9vw, 110px) 0;
}

.legal-label,
.legal-version {
  margin: 0;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 18px 0 24px;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-shadow: 2px 0 rgba(255, 0, 110, 0.56), -2px 0 rgba(0, 255, 255, 0.54);
}

.legal-intro {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-section {
  display: grid;
  margin-top: 58px;
  padding-top: 34px;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.legal-section__index {
  margin: 3px 0 0;
  color: rgba(255, 0, 110, 0.78);
  font-size: 12px;
}

.legal-section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.legal-section h3 {
  margin: 30px 0 12px;
  font-size: 16px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.78;
}

.legal-section p {
  margin: 0 0 18px;
}

.legal-section ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 22px;
}

.legal-note {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(255, 0, 110, 0.35);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 0, 110, 0.07);
  font-size: 12px;
  line-height: 1.7;
}

.legal-actions {
  display: flex;
  gap: 14px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.legal-action {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  align-items: center;
  border: 1px solid var(--cyan);
  color: var(--white);
  background: rgba(0, 255, 255, 0.06);
  box-shadow: 5px 5px 0 rgba(255, 0, 110, 0.42);
  font-size: 12px;
  text-decoration: none;
}

.legal-action--secondary {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.legal-footer {
  display: flex;
  padding: 32px 0 max(40px, env(safe-area-inset-bottom));
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  line-height: 1.6;
}

.legal-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .legal-header,
  .legal-main,
  .legal-footer {
    width: calc(100% - 32px);
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .legal-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
