/* Оформление публичных правовых страниц (/legal/*). Файл встраивается в
   бинарник и отдаётся как /legal/legal.css: никаких внешних CDN и шрифтов,
   страница должна открываться у модератора Google Play при любых блокировках. */

:root {
  color-scheme: light dark;
  --brand: #e30613;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --bg: #ffffff;
  --surface: #f7f7f8;
  --border: #e2e2e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff5b62;
    --text: #ececef;
    --text-muted: #a3a3ad;
    --bg: #16161a;
    --surface: #1f1f25;
    --border: #303038;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 16px 64px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.page {
  max-width: 760px;
  margin: 0 auto;
}

header.page-head {
  padding: 40px 0 24px;
  border-bottom: 3px solid var(--brand);
  margin-bottom: 32px;
}

.brand {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}

h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--brand);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--text-muted);
}

.card {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card dl {
  margin: 0;
}

.card dt {
  margin-top: 12px;
  font-weight: 600;
}

.card dt:first-child {
  margin-top: 0;
}

.card dd {
  margin: 2px 0 0;
  color: var(--text-muted);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.steps li {
  position: relative;
  margin-bottom: 16px;
  padding: 14px 18px 14px 56px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

/* Скриншоты шагов удаления профиля. Ширина колонки ограничена, чтобы на
   десктопе снимки телефона не растягивались во всю страницу. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 620px;
  margin: 24px 0 32px;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.shots figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

footer.page-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

footer.page-foot p {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 18px;
  }
}
