:root {
  color-scheme: light;
  --ink: #111315;
  --muted: #65717c;
  --line: #dfe5e8;
  --paper: #f6f7f3;
  --white: #ffffff;
  --green: #b6ff2e;
  --green-dark: #63b400;
}

* {
  box-sizing: border-box;
}

html {
  background: #050505;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  margin: 0;
  min-width: 0;
}

a {
  color: inherit;
}

.legal-header {
  align-items: center;
  background: rgba(5, 5, 5, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(10, 14, 18, 0.14);
  display: flex;
  justify-content: space-between;
  margin: 12px auto 0;
  min-height: 68px;
  padding: 12px 18px;
  position: sticky;
  top: 12px;
  width: min(calc(100% - 28px), 1180px);
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-brand {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
  text-transform: lowercase;
}

.legal-brand img {
  border-radius: 8px;
  height: 38px;
  width: 38px;
}

.legal-back {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 42px;
  padding: 0 15px;
  text-decoration: none;
}

.legal-hero {
  background: #050505;
  color: var(--white);
  margin-top: -80px;
  padding: 168px 24px 72px;
}

.legal-hero-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.legal-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.legal-hero h1 {
  font-size: 48px;
  line-height: 1.06;
  margin: 0;
  max-width: 940px;
}

.legal-summary {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.65;
  margin: 24px 0 0;
  max-width: 800px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
}

.legal-meta span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 600;
}

.legal-layout {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: 230px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 46px 24px 80px;
}

.legal-nav {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 8px;
  position: sticky;
  top: 102px;
}

.legal-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 11px;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  background: #eef2e8;
  color: var(--ink);
}

.legal-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--green);
}

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

.legal-notice {
  background: #e9ffd0;
  border-left: 4px solid var(--green-dark);
  border-radius: 0 8px 8px 0;
  color: #31441b;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 34px;
  padding: 16px 18px;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  scroll-margin-top: 104px;
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-section h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 18px;
}

.legal-section h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 24px 0 10px;
}

.legal-section p,
.legal-section li {
  color: #424b52;
  font-size: 14px;
  line-height: 1.75;
}

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

.legal-section ul,
.legal-section ol {
  margin: 12px 0 18px;
  padding-left: 22px;
}

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

.legal-section strong {
  color: var(--ink);
}

.legal-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  overflow-x: auto;
}

.legal-table {
  border-collapse: collapse;
  min-width: 700px;
  width: 100%;
}

.legal-table th,
.legal-table td {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #eef2e8;
  color: var(--ink);
  font-weight: 800;
}

.legal-table td {
  color: #424b52;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-requisites {
  background: #111315;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 20px;
}

.legal-requisites strong {
  color: var(--white);
  font-size: 15px;
}

.legal-requisites span,
.legal-requisites a {
  font-size: 12px;
  line-height: 1.55;
}

.legal-requisites a {
  color: var(--green);
}

.legal-footer {
  background: #060808;
  color: rgba(255, 255, 255, 0.56);
  padding: 26px 24px;
}

.legal-footer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.legal-footer p {
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.legal-footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .legal-header {
    top: 8px;
    width: min(calc(100% - 16px), 1180px);
  }

  .legal-hero {
    margin-top: -76px;
    padding: 154px 20px 50px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-layout {
    gap: 28px;
    grid-template-columns: 1fr;
    padding: 28px 20px 64px;
  }

  .legal-nav {
    display: flex;
    overflow-x: auto;
    position: static;
    scrollbar-width: thin;
  }

  .legal-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .legal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .legal-nav a {
    align-items: center;
    display: flex;
    min-height: 48px;
    white-space: normal;
  }

  .legal-brand span {
    display: none;
  }

  .legal-back {
    font-size: 11px;
    min-height: 40px;
  }

  .legal-hero h1 {
    font-size: 29px;
  }

  .legal-summary {
    font-size: 14px;
  }

  .legal-section h2 {
    font-size: 21px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 13px;
  }

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-footer-links {
    justify-content: flex-start;
  }
}

@media print {
  .legal-header,
  .legal-nav,
  .legal-footer {
    display: none;
  }

  .legal-hero {
    background: var(--white);
    color: var(--ink);
    margin: 0;
    padding: 24px 0;
  }

  .legal-kicker,
  .legal-summary,
  .legal-meta span {
    color: var(--ink);
  }

  .legal-layout {
    display: block;
    padding: 0;
  }
}
