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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #1a1a1a;
  background-color: #fafafa;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.3em;
  color: #111;
}

.legal > .subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4em;
}

.legal > .revision {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2.5em;
}

.legal > .preamble {
  margin-bottom: 2em;
}

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2.5em 0;
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  line-height: 1.35;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

p {
  margin-bottom: 0.85em;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

ul,
ol {
  margin-bottom: 1em;
  padding-left: 1.6em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  margin-bottom: 0.4em;
  line-height: 1.65;
}

li > ul,
li > ol {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.details-block {
  margin-bottom: 1.2em;
}

.details-block p {
  margin-bottom: 0.3em;
}

.requisites {
  margin-top: 2em;
}

.requisites p {
  margin-bottom: 0.25em;
}

.requisites-table {
  margin-top: 1em;
}

.requisites-table p {
  margin-bottom: 0.2em;
}

.legal em {
  font-style: italic;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .legal {
    padding: 40px 20px 60px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .legal {
    padding: 28px 16px 48px;
  }

  h1 {
    font-size: 1.4rem;
  }

  ul,
  ol {
    padding-left: 1.2em;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

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

  h1 {
    font-size: 18pt;
  }

  h2 {
    font-size: 14pt;
    page-break-after: avoid;
  }

  h3 {
    font-size: 12pt;
    page-break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  ul,
  ol {
    page-break-inside: avoid;
  }

  hr {
    border-top-color: #ccc;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: none;
  }
}
