/*
 * Legal pages of «А-Мойка». Colours mirror mobile/src/theme/tokens.ts — the pages
 * open from inside the app, so they must not look like a different product.
 */
:root {
  --base: #0b0e10;
  --surface: #161b1f;
  --border: #232b31;
  --text: #f2f5f6;
  --muted: #97a3aa;
  --faint: #66727a;
  --cyan: #19a9be;
  --warning: #e8a33d;
  --warning-soft: rgba(232, 163, 61, 0.14);
}

* {
  box-sizing: border-box;
}

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

main {
  max-width: 720px;
  margin: 0 auto;
}

header {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

h1 {
  margin: 16px 0 8px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

p,
li {
  color: var(--muted);
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--cyan);
}

.revision {
  color: var(--faint);
  font-size: 13px;
}

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

.card p:first-child,
.card ul:first-child {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* Marks every value that must be replaced with the real sole-trader details. */
.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.95em;
  white-space: nowrap;
}

table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

footer {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 13px;
}

footer a {
  margin-right: 16px;
}
