/*
 * Shared styling for the server-rendered compliance pages.
 *
 * These pages are plain static HTML so their content is present in the initial
 * response with JavaScript disabled — the React app renders client-side only,
 * which is why Amazon's automated review saw an empty page.
 *
 * Design tokens mirror the React app: base #0a0a10, accent #f58f24,
 * Clash Display for headings, Satoshi for body.
 */

:root {
  --bg: #0a0a10;
  --surface: #12121a;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f1f2f6;
  --muted: #9aa0b4;
  --accent: #f58f24;
  --accent-dim: rgba(245, 143, 36, 0.12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Clash Display", Satoshi, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); margin: 3rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 2rem 0 0.6rem; }

p, li { color: var(--muted); }
p { margin: 0 0 1.1rem; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #ffb060; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

.wrap { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 16, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }

.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

main { padding: 3rem 0 4rem; }

.lede {
  font-size: 1.08rem;
  color: #c9cddb;
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  margin-bottom: 2.5rem;
}

.updated { color: #6f7488; font-size: 0.85rem; margin-bottom: 2.5rem; }

/* ---------- components ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.25rem 0;
}

.card h3 { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(245, 143, 36, 0.3);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
}
.callout strong { color: #fff; }
.callout :last-child { margin-bottom: 0; }

/* Unresolved facts the owner must supply before this page goes live. */
.todo {
  background: #4a1d1d;
  border: 1px dashed #ff6b6b;
  color: #ffd7d7;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  font-weight: 600;
}

ul, ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
li { margin-bottom: 0.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.94rem;
}
th, td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.03); }
td { color: var(--muted); }

.table-scroll { overflow-x: auto; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0a10;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  margin-top: 0.5rem;
}
.btn:hover { background: #ffa347; color: #0a0a10; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.site-footer p { margin-bottom: 0.6rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 1rem; }

@media (max-width: 420px) {
  .site-nav { gap: 0.75rem; }
  .site-nav a { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; }
