:root {
  --bg: #020712;
  --bg-soft: #061226;
  --panel: rgba(7, 22, 43, 0.88);
  --panel-strong: rgba(8, 27, 55, 0.96);
  --line: rgba(74, 153, 255, 0.24);
  --line-strong: rgba(0, 153, 255, 0.58);
  --text: #f5f8ff;
  --muted: #aebbd1;
  --blue: #087bff;
  --cyan: #26c7ff;
  --green: #19d76b;
  --warning: #ffd27a;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background:
    linear-gradient(135deg, rgba(0, 88, 188, 0.18), transparent 32rem),
    linear-gradient(180deg, #020814 0%, #061426 48%, #020711 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(21, 118, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 118, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 82%);
  opacity: 0.56;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #8be0ff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(38, 199, 255, 0.72);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-220%);
  padding: 10px 14px;
  border-radius: 8px;
  color: #001020;
  background: #ffffff;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px max(24px, calc((100% - var(--container)) / 2));
  border-bottom: 1px solid rgba(83, 150, 255, 0.18);
  background: rgba(2, 7, 18, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
  text-decoration: none;
}

.legal-brand img {
  width: 210px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(0, 145, 255, 0.32));
}

.legal-brand span {
  padding-left: 18px;
  border-left: 1px solid rgba(83, 150, 255, 0.34);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(38, 199, 255, 0.38);
  border-radius: 8px;
  color: #e5f8ff;
  background: rgba(8, 43, 86, 0.34);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.legal-shell {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(83, 150, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(10, 133, 255, 0.34), transparent 34%),
    radial-gradient(circle at 92% 25%, rgba(38, 199, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(0, 112, 255, 0.13), transparent 54%),
    rgba(6, 18, 38, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(38, 199, 255, 0.11);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 199, 255, 0.14), transparent 60%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: #46b7ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.legal-hero .lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(226, 234, 248, 0.88);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.legal-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(83, 150, 255, 0.26);
  border-radius: 8px;
  color: rgba(225, 235, 250, 0.84);
  background: rgba(4, 14, 30, 0.52);
  font-size: 0.84rem;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.legal-toc {
  position: sticky;
  top: 106px;
  padding: 22px;
  border: 1px solid rgba(83, 150, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(8, 123, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(8, 25, 50, 0.91), rgba(5, 14, 29, 0.96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.legal-toc p {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-toc;
}

.legal-toc li {
  counter-increment: legal-toc;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a::before {
  content: counter(legal-toc, decimal-leading-zero);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.75;
}

.legal-toc a:hover {
  color: #ffffff;
}

.legal-document {
  min-width: 0;
}

.legal-section {
  scroll-margin-top: 112px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(83, 150, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 25, 50, 0.88), rgba(4, 13, 29, 0.96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.legal-section + .legal-section {
  margin-top: 16px;
}

.legal-section h2 {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(1.28rem, 3vw, 1.72rem);
  line-height: 1.18;
}

.legal-section h2 .index {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(38, 199, 255, 0.32);
  border-radius: 50%;
  color: #e7f7ff;
  background:
    radial-gradient(circle at 35% 28%, rgba(38, 199, 255, 0.42), rgba(8, 123, 255, 0.16) 58%, rgba(3, 12, 27, 0.72));
  box-shadow: 0 0 26px rgba(38, 199, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
}

.legal-section h3 {
  margin: 26px 0 10px;
  color: #dff5ff;
  font-size: 1.05rem;
  line-height: 1.3;
}

.legal-section p {
  margin: 0 0 14px;
  color: rgba(212, 224, 242, 0.88);
}

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

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 9px;
  margin: 14px 0;
  padding-left: 1.35rem;
  color: rgba(212, 224, 242, 0.88);
}

.legal-section li::marker {
  color: var(--cyan);
  font-weight: 900;
}

.legal-section strong {
  color: #ffffff;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.data-card {
  padding: 18px;
  border: 1px solid rgba(83, 150, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.48);
}

.data-card strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.data-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  margin: 20px 0;
  padding: 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  color: rgba(226, 234, 248, 0.92);
  background: rgba(8, 123, 255, 0.12);
}

.notice.warning {
  border-left-color: var(--warning);
  background: rgba(255, 210, 122, 0.08);
}

.notice.success {
  border-left-color: var(--green);
  background: rgba(25, 215, 107, 0.08);
}

.notice p {
  margin: 0;
}

.identity-block {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(83, 150, 255, 0.22);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.5);
  color: rgba(212, 224, 242, 0.9);
}

.identity-block strong {
  font-size: 1.02rem;
}

.steps {
  counter-reset: legal-steps;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: legal-steps;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(83, 150, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.46);
}

.steps li::before {
  content: counter(legal-steps, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(38, 199, 255, 0.32);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(8, 123, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 900;
}

.steps li > div {
  color: rgba(212, 224, 242, 0.88);
}

.steps strong {
  display: block;
  margin-bottom: 3px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(38, 199, 255, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(38, 199, 255, 0.14), transparent 42%),
    rgba(3, 14, 31, 0.78);
}

.contact-card div {
  display: grid;
  gap: 3px;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(38, 199, 255, 0.42);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b87ff, #0758d8);
  font-weight: 900;
  text-decoration: none;
}

.legal-footer {
  display: grid;
  place-items: center;
  gap: 10px;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 46px;
  border-top: 1px solid rgba(83, 150, 255, 0.16);
  color: var(--muted);
  text-align: center;
}

.legal-footer img {
  width: 170px;
  height: auto;
  opacity: 0.9;
}

.legal-footer p {
  margin: 0;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 6px 0;
}

.legal-footer-links a {
  color: #cfe7ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.legal-footer-identity {
  max-width: 780px;
  font-size: 0.82rem;
  line-height: 1.65;
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 96px;
  }

  .legal-header {
    min-height: 72px;
    padding: 10px 16px;
  }

  .legal-brand img {
    width: 168px;
  }

  .legal-brand span {
    display: none;
  }

  .legal-shell,
  .legal-footer {
    width: min(100% - 28px, 760px);
  }

  .legal-shell {
    padding: 28px 0 52px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-section {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .legal-brand img {
    width: 142px;
  }

  .back-home {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .legal-hero {
    padding: 24px 20px;
  }

  .legal-meta {
    display: grid;
  }

  .legal-meta span {
    width: 100%;
  }

  .legal-toc ol,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 22px 18px;
  }

  .legal-section h2 {
    gap: 10px;
  }

  .legal-section h2 .index {
    width: 34px;
    height: 34px;
  }

  .steps li {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  .steps li::before {
    width: 34px;
    height: 34px;
  }

  .contact-card {
    align-items: stretch;
  }

  .contact-card a {
    width: 100%;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    --text: #111827;
    --muted: #374151;
  }

  body {
    color: #111827;
    background: #ffffff;
    font-size: 11pt;
  }

  body::before,
  .skip-link,
  .legal-header,
  .legal-toc {
    display: none !important;
  }

  .legal-shell {
    width: 100%;
    padding: 0;
  }

  .legal-hero,
  .legal-section {
    color: #111827;
    border: 1px solid #d1d5db;
    background: #ffffff;
    box-shadow: none;
    break-inside: avoid;
  }

  .legal-layout {
    display: block;
  }

  .legal-section {
    margin-top: 12pt !important;
  }

  .legal-hero h1,
  .legal-section h2,
  .legal-section h3,
  .legal-section strong,
  .data-card strong {
    color: #111827;
  }

  .legal-hero .lead,
  .legal-section p,
  .legal-section ul,
  .legal-section ol,
  .data-card span,
  .identity-block,
  .steps li > div {
    color: #374151;
  }

  .legal-footer {
    width: 100%;
    color: #374151;
  }

  a {
    color: #0758d8;
  }
}
