/* Shared styles for Scholar Current static trust/legal/support pages.
   Tokens match index.html's design system so these pages feel like the
   same site rather than a bolted-on section. */

:root {
  --bg: #f3efe5;
  --paper: #fffdf8;
  --ink: #172033;
  --muted: #5e677a;
  --line: #d9cfbe;
  --accent: #0f6c5b;
  --accent-dark: #0b5346;
  --accent-soft: #dff1eb;
  --gold: #e0a126;
  --danger: #8f2f21;
  --danger-soft: rgba(143, 47, 33, 0.08);
  --warning: #8a5414;
  --warning-soft: rgba(173, 111, 34, 0.08);
  --ok: #0f6b3f;
  --ok-soft: rgba(15, 107, 63, 0.08);
  --shadow: 0 18px 44px rgba(23, 32, 51, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(224, 161, 38, 0.16), transparent 22rem),
    radial-gradient(circle at top right, rgba(15, 108, 91, 0.16), transparent 20rem),
    linear-gradient(180deg, #f7f2e8 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 56px;
  display: grid;
  gap: 20px;
}

.shell.narrow {
  max-width: 880px;
}

/* Header (shared across pages) */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brandLogo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  box-shadow: var(--shadow);
  border-radius: 50%;
  flex: 0 0 auto;
}

.brandText {
  display: grid;
  gap: 2px;
}

.brandName {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brandMeta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.navLink {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  color: var(--muted);
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.navLink:hover,
.navLink:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 108, 91, 0.4);
  color: var(--ink);
}

/* Page hero */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
}

h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

p,
li {
  line-height: 1.65;
  color: var(--ink);
}

.subhead {
  max-width: 46rem;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Cards */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}

@media (max-width: 640px) {
  .card {
    padding: 20px 18px;
  }
}

.card ul,
.card ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.card a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.heroCard {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.5fr);
  gap: 24px;
  align-items: center;
}

.heroCard .brandLogoLarge {
  width: min(180px, 46vw);
  justify-self: center;
  filter: drop-shadow(0 18px 24px rgba(23, 32, 51, 0.18));
}

@media (max-width: 760px) {
  .heroCard {
    grid-template-columns: 1fr;
  }

  .heroCard .brandLogoLarge {
    justify-self: start;
    width: 110px;
  }
}

.brandLockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brandLockup .brandLogo {
  width: 88px;
  height: 88px;
}

@media (max-width: 620px) {
  .brandLockup {
    align-items: flex-start;
    gap: 12px;
  }

  .brandLockup .brandLogo {
    width: 64px;
    height: 64px;
  }
}

/* Feature / mini-card grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.miniCard {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.miniCard strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.miniCard p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Callouts */

.callout {
  border-left: 5px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 14px 18px;
}

.callout.danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

/* Buttons */

.buttonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 108, 91, 0.18);
}

@media (max-width: 620px) {
  .row .button,
  .buttonRow .button {
    width: 100%;
  }
}

/* Tables */

.tableWrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid rgba(217, 207, 190, 0.8);
  vertical-align: top;
  text-align: left;
  line-height: 1.5;
  font-size: 15px;
}

th {
  background: #f8f1e6;
  color: var(--ink);
}

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

/* Status pills used on hosting-security / incident-response / vendor-inventory */

.status {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  margin: 0 6px 6px 0;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  white-space: nowrap;
}

.status.ok {
  border-color: rgba(15, 107, 63, 0.35);
  color: var(--ok);
  background: var(--ok-soft);
}

.status.verify,
.status.review {
  border-color: rgba(173, 111, 34, 0.35);
  color: var(--warning);
  background: var(--warning-soft);
}

.status.urgent {
  border-color: rgba(143, 47, 33, 0.35);
  color: var(--danger);
  background: var(--danger-soft);
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}

/* Footer (shared nav across every page) */

.footerLine {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid rgba(14, 40, 94, 0.12);
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
}

.footerLinks a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footerMeta {
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 640px) {
  .shell {
    padding: 20px 14px 42px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
