/* Общий вид страниц сайта cottelapp.ru: документы и форма заявки.
   Цвета — знак Cottel (#4A3E94); тёмная тема — по настройке телефона. */
:root {
  --bg: #ffffff;
  --text: #1c1b1f;
  --muted: #626262;
  --accent: #4a3e94;
  --accent-text: #ffffff;
  --line: #dddddd;
  --field: #f7f7f7;
  --error: #b3261e;
  --ok-bg: #f1f1f1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #e6e6e6;
    --muted: #b0b0b0;
    --accent: #d0d0d0;
    --accent-text: #1d1d1d;
    --line: #3a3a3a;
    --field: #1f1f1f;
    --error: #f2b8b5;
    --ok-bg: #2a2a2a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 640px; margin: 0 auto; padding: 32px 16px 48px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.brand { font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: 24px; display: block; text-decoration: none; }
.notice { background: var(--ok-bg); border-radius: 12px; padding: 16px; margin: 24px 0; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=text], input[type=tel] {
  width: 100%; font: inherit; color: inherit; background: var(--field);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px;
}
input[readonly] { color: var(--muted); }
/* Номер: неудаляемый «+7» слева (join/index.html). */
.phone { display: flex; align-items: stretch; }
.phone-prefix {
  display: flex; align-items: center; padding: 0 10px 0 12px; background: var(--field);
  border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; font-weight: 600;
}
.phone input[type=tel] { border-radius: 0 8px 8px 0; }
.hint { color: var(--muted); font-size: 14px; min-height: 1.5em; margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 8px; font-weight: 400; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
button {
  width: 100%; margin-top: 16px; font: inherit; font-weight: 600; border: 0;
  border-radius: 24px; min-height: 48px; background: var(--accent); color: var(--accent-text);
}
button:disabled { opacity: .5; }
.error { color: var(--error); min-height: 1.5em; margin-top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer { margin-top: 40px; font-size: 14px; color: var(--muted); }
footer a { margin-right: 16px; }
/* Тексты документов (legal/*.html) и «Поддержать» (support/index.html). */
h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 12px; }
.doc h1 { margin-bottom: 24px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin: 0 0 8px; }
li > p { margin-bottom: 8px; }
li > ul { margin-top: 8px; }
.doc a { overflow-wrap: anywhere; }
.pay { margin: 28px 0; }
.pay iframe { display: block; max-width: 100%; border: 0; }

/* Document pages share one reading layout and footer; legal wording is separate. */
main.doc { max-width: 700px; padding: 36px 24px 32px; }
.document-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.document-header a { text-decoration: none; }
.document-back { color: var(--muted); font-size: 12px; line-height: 20px; }
.document-brand { color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.document-body { font-size: 14px; line-height: 1.75; }
.doc .document-body h1 { font-size: 25px; line-height: 1.35; font-weight: 600; letter-spacing: -.45px; margin: 0 0 26px; }
.document-body h2 { font-size: 18px; line-height: 1.45; font-weight: 600; letter-spacing: -.2px; margin: 32px 0 12px; }
.document-body p { margin-bottom: 15px; }
.document-body ul, .document-body ol { padding-left: 22px; margin-bottom: 20px; }
.document-body li { padding-left: 3px; margin-bottom: 13px; }
.document-body li > p { margin-bottom: 9px; }
.document-body a { text-underline-offset: 3px; }
.document-body > .muted:last-child { font-size: 11px; line-height: 19px; margin: 28px 0 0; }
.doc .document-footer { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 12px; color: var(--muted); }
.doc .document-footer a { color: inherit; margin: 0; text-underline-offset: 3px; }
.document-footer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.document-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.document-links a { font-size: 11px; line-height: 19px; text-decoration: none; }
.document-links a:hover { text-decoration: underline; }
.document-links a[aria-current=page] { color: var(--text); }
.doc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
@media(max-width:480px) {
  main.doc { padding-top: 24px; padding-left: 20px; padding-right: 20px; }
  .document-header { margin-bottom: 29px; }
  .doc .document-body h1 { font-size: 23px; margin-bottom: 23px; }
  .document-footer-top { flex-wrap: wrap; gap: 7px 16px; }
}
