/* Документы сайта: оферта, политика, контакты. Обычные страницы для чтения — без кода игры. */

:root {
  --ink: #2a1a55;
  --ink-soft: #5d5180;
  --line: #e6def5;
  --accent: #6a3fe0;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font: 400 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: #f6f2ff;
}

.top {
  background: linear-gradient(180deg, #4b2bb3, #2b1a78);
  color: #fff;
}

.top__in,
.doc,
.foot {
  width: min(100%, 820px);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.top__logo {
  margin-right: auto;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.top nav a {
  color: #e4daff;
  font-size: 15px;
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current='page'] {
  color: #fff;
  text-decoration: underline;
}

.doc {
  padding-top: 30px;
  padding-bottom: 40px;
}

.doc h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.2;
}

.doc .meta {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 15px;
}

.doc h2 {
  margin: 32px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 12px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--accent);
}

.card {
  margin: 0 0 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card > :last-child {
  margin-bottom: 0;
}

dl.req {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 8px 16px;
  margin: 0;
}

dl.req dt {
  color: var(--ink-soft);
}

dl.req dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

table.prices {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

table.prices th,
table.prices td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.prices th {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

table.prices td:last-child,
table.prices th:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.foot {
  padding-top: 18px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14.5px;
}

.foot a {
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .doc h1 {
    font-size: 25px;
  }

  dl.req {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  dl.req dd {
    margin-bottom: 10px;
  }
}

/* Пустые поля продавца (см. seller.js) не выводятся. */
[hidden] {
  display: none !important;
}
