/* Закупки INFO — стили для страниц EULA и лицензий */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg2: #f7f8fa;
  --text: #1a1a1a;
  --text-dim: #6b7280;
  --accent: #1a56a0;
  --accent-light: #e8f0fb;
  --border: #e5e7eb;
  --h1: #1a1a1a;
  --h2: #1a56a0;
  --tag-mit: #1e4d6b;    --tag-mit-bg: #e0f0fb;
  --tag-bsd: #4a3900;    --tag-bsd-bg: #fef9e0;
  --tag-apache: #5a1f00; --tag-apache-bg: #fff0e8;
  --code-bg: #f3f4f6;    --code-text: #374151;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --bg2: #1a1d24;
    --text: #e2e4e9;
    --text-dim: #9ca3af;
    --accent: #4a8fd4;
    --accent-light: #1a2338;
    --border: #2a2d36;
    --h1: #e2e4e9;
    --h2: #4a8fd4;
    --tag-mit: #90caf9;   --tag-mit-bg: #0d2035;
    --tag-bsd: #fdd835;   --tag-bsd-bg: #1f1800;
    --tag-apache: #ff8a65;--tag-apache-bg: #1f0f00;
    --code-bg: #1e2128;   --code-text: #c9d1d9;
  }
}

body {
  font-family: 'Segoe UI', 'SF Pro Text', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  padding: 24px 16px 48px;
}
.container       { max-width: 740px; margin: 0 auto; }
.container--wide { max-width: 820px; }

header { margin-bottom: 36px; padding-bottom: 20px; border-bottom: 2px solid var(--accent); }
h1 { font-size: 22px; font-weight: 800; color: var(--h1); margin-bottom: 8px; }
.meta { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

h2 {
  font-size: 15px; font-weight: 700; color: var(--h2);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 14px; font-weight: 700; margin: 24px 0 8px; }

p { margin-bottom: 10px; font-size: 14px; }
ul { margin: 6px 0 12px 20px; font-size: 14px; }
li { margin-bottom: 5px; }
strong { color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

footer {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center; font-size: 12px; color: var(--text-dim);
}

/* ── EULA ── */
.notice {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}

/* ── Лицензии компонентов ── */
.pkg-grid { display: flex; flex-direction: column; gap: 0; }
.pkg-row {
  display: grid; grid-template-columns: 1fr 90px 1fr;
  gap: 12px; align-items: center;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.pkg-row:first-child {
  background: var(--bg2); font-weight: 700;
  font-size: 12px; color: var(--text-dim);
  border-radius: 4px 4px 0 0;
}
.pkg-name { font-weight: 600; }
.pkg-ver  { color: var(--text-dim); font-size: 12px; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.tag-mit    { color: var(--tag-mit);    background: var(--tag-mit-bg); }
.tag-bsd    { color: var(--tag-bsd);    background: var(--tag-bsd-bg); }
.tag-apache { color: var(--tag-apache); background: var(--tag-apache-bg); }

.license-block {
  background: var(--code-bg); color: var(--code-text);
  border-radius: 6px; padding: 16px 18px; margin: 12px 0 24px;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.notice-box {
  background: var(--accent-light); border-left: 3px solid var(--accent);
  border-radius: 4px; padding: 12px 16px; margin: 16px 0; font-size: 14px;
}
.pkg-note { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.pkg-list { font-size: 14px; margin: 8px 0 16px 20px; }

/* ── Таблица с поддержкой тёмной темы ── */
.data-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0; font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead tr { background: var(--bg2); }
.data-table th { font-weight: 700; color: var(--text-dim); }
