/*
 * FOGSPACE — Custody Disclaimer
 * Стиль совместим с security.css / about.css
 */

:root {
  color-scheme: light dark;
  --bg: #f6f7f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #fff;
  --text: #111315;
  --muted: #70757d;
  --soft: #a2a7ae;
  --line: rgba(15, 23, 42, 0.07);
  --major-line: rgba(15, 23, 42, 0.05);
  --warning: #b45309;
  --warning-bg: rgba(180, 83, 9, 0.08);
  --warning-border: rgba(180, 83, 9, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f10;
    --surface: rgba(24, 26, 28, 0.90);
    --surface-solid: #181a1c;
    --text: #f2f3f4;
    --muted: #959a9f;
    --soft: #6f7479;
    --line: rgba(255, 255, 255, 0.08);
    --major-line: rgba(255, 255, 255, 0.05);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.08);
    --warning-border: rgba(251, 191, 36, 0.24);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid var(--major-line);
  margin-bottom: 48px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 18px;
  letter-spacing: -.045em;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
}
.wordmark strong { font-weight: 760; }
.wordmark span { font-weight: 380; }

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.top-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 580;
  text-decoration: none;
  transition: color .15s;
}
.top-link:hover { color: var(--text); }

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 620;
  letter-spacing: -.045em;
}

.lede {
  margin: 0 0 32px;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.alert {
  margin: 0 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--warning-border);
  border-radius: 14px;
  background: var(--warning-bg);
  color: var(--warning);
}
.alert strong {
  color: inherit;
  font-weight: 650;
}

section {
  padding: 24px 0;
  border-top: 1px solid var(--major-line);
}
section:first-of-type { border-top: 0; padding-top: 0; }

section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -.03em;
  line-height: 1.2;
}

section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
section li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--muted);
  line-height: 1.6;
}
section li::before {
  content: "·";
  position: absolute;
  left: 8px;
  top: 6px;
  color: var(--soft);
  font-weight: 700;
}
section li strong {
  color: var(--text);
  font-weight: 620;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 0;
  margin-top: 48px;
  border-top: 1px solid var(--major-line);
  color: var(--soft);
  font-size: 12px;
}
.page-footer nav { display: inline-flex; gap: 16px; }
.page-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.page-footer a:hover { color: var(--text); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 580;
  text-decoration: none;
  transition: color .15s;
}
.back-link:hover { color: var(--text); }
