/* PrivacyScope — About page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0F172A;
  --surface:  #1E293B;
  --surface2: #334155;
  --brand:    #A855F7;
  --text:     #F1F5F9;
  --muted:    #94A3B8;
  --critical: #EF4444;
  --high:     #F97316;
  --medium:   #EAB308;
  --low:      #22C55E;
  --border:   #1E293B;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

#page { max-width: 720px; margin: 0 auto; padding-bottom: 64px; }

/* ── code elements: readable on any background ── */
code {
  font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
  font-size: 0.85em;
  background: rgba(168, 85, 247, 0.14);
  color: #DDD6FE;   /* violet-200 — contrast ≥ 6:1 on dark bg */
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

/* ── Header ── */
.about-header {
  background: var(--surface);
  border-bottom: 1px solid #334155;
  padding: 28px 36px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner { display: flex; align-items: center; gap: 16px; }
.header-logo  { width: 44px; height: 44px; border-radius: 10px; }
h1 { font-size: 20px; font-weight: 700; }
.header-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Sections ── */
main { padding: 0 36px; }

section {
  padding: 36px 0;
  border-bottom: 1px solid #1E293B;
}
section:last-child { border-bottom: none; }

h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 24px 0 10px;
}

.section-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.75;
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  font-style: italic;
  opacity: 0.8;
}

/* ── Trust / notice block ── */
.notice-block {
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.notice-block.green {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: #86EFAC;
}
.notice-block.green p + p { margin-top: 8px; }
.notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── How it works — steps ── */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step  { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step strong { display: block; margin-bottom: 3px; font-size: 14px; }
.step p      { font-size: 13px; color: var(--muted); }

/* ── Permission rows (replaces cramped 3-col table) ── */
.perm-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }

.perm-row {
  display: grid;
  grid-template-columns: 200px 1fr 52px;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
}
.perm-row:hover { background: rgba(255,255,255,0.02); }

.pr-name {
  padding: 9px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
}
.pr-name code { font-size: 11px; }

.pr-desc {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid #1E293B;
  line-height: 1.5;
}

.pr-score {
  padding: 9px 8px;
  font-size: 11px;
  font-family: monospace;
  color: var(--muted);
  border-left: 1px solid #1E293B;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.perm-row.r-critical .pr-name { background: rgba(239,68,68,0.08); border-left: 3px solid var(--critical); }
.perm-row.r-high     .pr-name { background: rgba(249,115,22,0.08); border-left: 3px solid var(--high); }
.perm-row.r-medium   .pr-name { background: rgba(234,179,8,0.08);  border-left: 3px solid var(--medium); }
.perm-row.r-critical .pr-score { color: #FCA5A5; }
.perm-row.r-high     .pr-score { color: #FED7AA; }
.perm-row.r-medium   .pr-score { color: #FEF08A; }

/* ── Risk level badges ── */
.level-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.level-row  { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; }
.level-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.level-badge.critical { background: rgba(239,68,68,0.15);  color: #FCA5A5; }
.level-badge.high     { background: rgba(249,115,22,0.15); color: #FED7AA; }
.level-badge.medium   { background: rgba(234,179,8,0.15);  color: #FEF08A; }
.level-badge.low      { background: rgba(34,197,94,0.15);  color: #86EFAC; }
.level-row span:last-child { color: var(--muted); line-height: 1.6; }

/* ── Investigate list ── */
.investigate-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}
.investigate-list li {
  display: flex;
  gap: 14px;
  font-size: 13px;
  line-height: 1.7;
  counter-increment: step;
}
.investigate-list li::before {
  content: counter(step);
  min-width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.investigate-list strong { color: var(--text); }
.investigate-list p       { color: var(--muted); margin-top: 2px; }

/* ── Limitations ── */
.limit-list { display: flex; flex-direction: column; gap: 10px; }
.limit-item {
  background: var(--surface);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.limit-item strong { color: var(--text); }

/* ── Developer section ── */
.dev-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.dev-logo-link { display: block; flex-shrink: 0; border-radius: 6px; transition: opacity 0.15s; }
.dev-logo-link:hover { opacity: 0.8; }
.dev-logo { width: 56px; height: 56px; border-radius: 6px; object-fit: contain; display: block; }
.dev-name {
  font-size: 15px; font-weight: 700; margin-bottom: 4px;
  color: var(--text); text-decoration: none; display: inline-block;
}
.dev-name:hover { color: var(--brand); text-decoration: underline; }
.dev-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

.scope-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.scope-list { display: flex; flex-direction: column; gap: 4px; }
.scope-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  align-items: center;
}
.scope-item:hover            { background: #253045; }
.scope-item.active           { background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.2); cursor: default; }
.scope-img                   { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 7px; object-fit: cover; display: block; }
.scope-name                  { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.scope-item.active .scope-name { color: var(--brand); }
.scope-desc                  { font-size: 11px; color: var(--muted); }

/* ── Support section ── */
.support-section { border-top: 1px solid rgba(168,85,247,0.15); }

.kofi-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255,214,10,0.15);
  transition: border-color 0.2s;
}
.kofi-card:hover { border-color: rgba(255,214,10,0.3); }

.kofi-qr-link {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.kofi-qr-link:hover { transform: scale(1.04); box-shadow: 0 0 12px rgba(255,214,10,0.25); }
.kofi-qr { width: 88px; height: 88px; border-radius: 8px; display: block; }
.kofi-qr-fallback {
  width: 88px; height: 88px;
  background: #fff;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.kofi-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.kofi-link {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
.kofi-link:hover { text-decoration: underline; }
.kofi-note { font-size: 12px; color: var(--muted); }

/* ── Footer ── */
.about-footer {
  padding: 20px 36px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.about-footer a { color: var(--muted); text-decoration: none; }
.about-footer a:hover { color: var(--text); }
