/* Shared stylesheet for extension privacy policies.
   No external fonts, no CDNs — everything is self-contained. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-card: #ffffff;
  --text: #1a1d21;
  --text-soft: #5a6270;
  --border: #e2e5ea;
  --border-strong: #cfd4dc;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --warn-bg: #fff8ec;
  --warn-border: #f0c67a;
  --warn-text: #7a4c07;
  --ok-bg: #f0f9f2;
  --ok-border: #a5d6b0;
  --ok-text: #1f5c32;
  --code-bg: #f1f3f6;
  --radius: 10px;
  --maxw: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --bg-soft: #1b1f24;
    --bg-card: #1b1f24;
    --text: #e6e9ee;
    --text-soft: #a2abb8;
    --border: #2b3138;
    --border-strong: #3a424b;
    --accent: #7aa5ff;
    --accent-soft: #1d2534;
    --warn-bg: #2c2517;
    --warn-border: #6d5423;
    --warn-text: #f0cf90;
    --ok-bg: #182620;
    --ok-border: #2f5740;
    --ok-text: #a8dfbb;
    --code-bg: #23282e;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 20px 80px;
  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.65;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- header ---------- */

header.page-header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header.page-header h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 14px;
  font-weight: 600;
}

.updated {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.backlink {
  display: inline-block;
  margin: 28px 0 0;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.backlink:hover { text-decoration: underline; }

/* ---------- typography ---------- */

h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  padding-top: 4px;
}

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

p { margin: 0 0 14px; }

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

li { margin-bottom: 7px; }

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

strong { font-weight: 600; }

code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  word-break: break-word;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 44px 0 0;
}

/* ---------- callouts ---------- */

.callout {
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 22px;
}

.callout p:last-child { margin-bottom: 0; }

.callout.warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.callout.warn a { color: inherit; }

.callout.ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-text);
}

.callout-title {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* ---------- tables ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.93rem;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }

td code { white-space: nowrap; }

/* ---------- index list ---------- */

.ext-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ext-list li { margin: 0; }

.ext-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}

.ext-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ext-card .name {
  font-weight: 650;
  font-size: 1.02rem;
  display: block;
  margin-bottom: 3px;
}

.ext-card .desc {
  color: var(--text-soft);
  font-size: 0.92rem;
  display: block;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--ok-border);
  background: var(--ok-bg);
  color: var(--ok-text);
  vertical-align: middle;
  margin-left: 8px;
}

.badge.net {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

/* ---------- footer ---------- */

footer.page-footer {
  margin-top: 20px;
  padding-top: 22px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

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

@media (max-width: 560px) {
  body { padding: 0 16px 60px; font-size: 15.5px; }
  header.page-header { padding: 32px 0 22px; }
  header.page-header h1 { font-size: 1.55rem; }
  h2 { font-size: 1.1rem; margin-top: 32px; }
}
