/* arcanforge-pages — shared styling for privacy/support/terms pages.
   One source of truth. Pushed to /assets/common.css in the repo.  */

:root {
  --bg: #ffffff;
  --fg: #1a1c1e;
  --muted: #6c7079;
  --accent: #198c73;
  --surface: #f4f4f5;
  --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1c1e;
    --fg: #f2f4f5;
    --muted: #9aa0a6;
    --accent: #4fc3a1;
    --surface: #2b2d31;
    --border: #3a3c40;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px 80px;
  color: var(--fg);
  background: var(--bg);
}

h1 { font-size: 28px; margin-top: 0; }
h2 { font-size: 20px; margin-top: 36px; }
h3 { font-size: 17px; margin-top: 24px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.meta { color: var(--muted); font-size: 13px; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.faq-q { font-weight: 600; margin-top: 16px; }
.faq-a { margin-top: 4px; }

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

.action-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}
.action-list li {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.action-list a {
  font-weight: 700;
}
.action-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

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

.support-hero {
  margin: 28px 0 34px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  gap: 14px;
}
.support-hero h2 { margin: 0 0 6px; }
.support-hero p { margin: 0; color: var(--muted); }
.primary-link {
  width: fit-content;
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.primary-link:hover { border-bottom-color: transparent; }

.first-value-lab {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface), var(--bg));
}

.first-value-lab h2 {
  margin-top: 0;
}

.first-value-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.first-value-form label,
.first-value-form legend {
  font-weight: 700;
}

.first-value-form select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  background: var(--bg);
  font: inherit;
}

.first-value-form fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.first-value-form fieldset label {
  font-weight: 500;
}

.first-value-form button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.first-value-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
}

.first-value-grid > div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.first-value-grid h3 {
  margin-top: 0;
}

.organic-proof,
.organic-system {
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.organic-proof h2,
.organic-system h2 {
  margin-top: 0;
}

.proof-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.proof-list li {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.proof-list strong,
.proof-list span {
  display: block;
}

.proof-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

/* Shared footer */
.af-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.af-footer a { color: var(--muted); border-bottom: 1px dotted var(--muted); }

/* Index-page specific */
.af-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.af-app-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--surface);
}
.af-app-card h3 { margin: 0 0 6px 0; font-size: 16px; }
.af-app-card .af-app-links { display: flex; gap: 10px; font-size: 13px; }
