/*
 * site.css — stylesheet for the static content pages.
 *
 * These pages (about, FAQ, guides, privacy, terms) do NOT go through the Expo
 * bundle: they are plain HTML inside `public/`, which the export copies verbatim
 * to the root of `dist/`. They are served without JavaScript so that any crawler
 * — AdSense's included — sees the full text in the first response, without
 * waiting for the SPA to hydrate.
 *
 * The palette mirrors `constants/colors.ts` by hand. If it changes there, change
 * it here too.
 */

:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --elevated: #242424;
  --border: #303030;
  --text: #f7f4f1;
  --muted: #b7ada4;
  --primary: #3498db;
  --chip-bg: #1b2a38;
  --usdt: #f0b90b;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --maxw: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

/* --- Structure --------------------------------------------------------- */

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  margin-bottom: 10px;
}

.site-header .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 12px;
  padding-top: 12px;
}

.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 18px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: -0.2px;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  height: 32px;
  width: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

main {
  padding: 40px 0 8px;
}

/* --- Typography -------------------------------------------------------- */

h1 {
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin: 0 0 12px;
}

h2 {
  border-top: 1px solid var(--border);
  font-size: 23px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 44px 0 14px;
  padding-top: 32px;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 30px 0 10px;
}

p {
  margin: 0 0 18px;
}

a {
  color: var(--primary);
  text-decoration-color: rgba(52, 152, 219, 0.45);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--primary);
}

strong {
  color: var(--text);
  font-weight: 650;
}

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

li {
  margin-bottom: 10px;
}

li::marker {
  color: var(--primary);
}

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

code {
  background: var(--elevated);
  border-radius: 6px;
  font-size: 0.9em;
  padding: 2px 6px;
}

/* --- Elements ----------------------------------------------------------- */

.lede {
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 28px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.chip {
  background: var(--chip-bg);
  border-radius: 999px;
  color: var(--primary);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 16px;
  padding: 5px 13px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin: 0 0 20px;
  padding: 22px 24px;
}

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

.card h3 {
  margin-top: 0;
}

.note {
  border-left: 3px solid var(--primary);
  color: var(--muted);
  margin: 0 0 22px;
  padding: 4px 0 4px 18px;
}

.table-scroll {
  margin: 0 0 24px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 15px;
  min-width: 100%;
  width: 100%;
}

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

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta {
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-weight: 650;
  padding: 11px 22px;
  text-decoration: none;
}

.cta:hover {
  filter: brightness(1.08);
}

.faq-q {
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 8px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 0 36px;
  padding: 18px 24px;
}

.toc p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
}

/* --- Pie -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  margin-top: 56px;
  padding: 32px 0 48px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.disclaimer {
  margin: 0;
  max-width: 62ch;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  main {
    padding-top: 28px;
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
  }
}
