/* Shared styling for Trawl's static pages outside the app (/terms.html,
   /privacy.html, /refunds.html, /404.html).

   These sit outside the React bundle on purpose: the app is a view-state SPA
   with no router, and four documents that must stay reachable — including to a
   signed-out visitor, a card issuer or a regulator — should not depend on the
   app booting. Tokens are copied from src/theme.js rather than imported,
   because nothing here runs through Vite. If the palette moves there, move it
   here too.

   Fonts are self-hosted from public/fonts rather than pulled from Google
   Fonts. Loading a Google-hosted font on a privacy policy would leak the
   reader's IP to a third party on the very page telling them who gets their
   data. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0A0A0C;
  color: #C6C6CC;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 22px 90px;
}

/* Header: the mark links home, so a reader who arrived cold has a way in. */
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 26px;
  border-bottom: 1px solid #1A1A1F;
  margin-bottom: 34px;
}
.top img { height: 22px; width: auto; display: block; }
.top a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #F0F0F0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #F0F0F0;
  font-weight: 600;
  margin: 0 0 8px;
}

/* The date line doubles as the version marker people cite in disputes. */
.updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #5B5B63;
  margin: 0 0 30px;
}

.lede {
  font-size: 16px;
  color: #A8A8B0;
  margin: 0 0 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1A1A1F;
}

h2 {
  font-size: 17px;
  color: #F0F0F0;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 38px 0 12px;
}

h3 {
  font-size: 14.5px;
  color: #E0E0E6;
  font-weight: 600;
  margin: 24px 0 8px;
}

p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 8px; }

strong { color: #E6E6EA; font-weight: 600; }

a { color: #F59E0B; text-decoration: none; }
a:hover { text-decoration: underline; }

/* A callout for the things a reader would be annoyed to discover later —
   used sparingly, or it stops meaning anything. */
.note {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 3px solid #F59E0B;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 20px;
  color: #D6D6DA;
  font-size: 14.5px;
}
.note p:last-child { margin-bottom: 0; }

/* Anything the owner still has to fill in before this goes live. Deliberately
   loud: a placeholder that ships unnoticed is worse than no page at all. */
.todo {
  background: rgba(240, 103, 90, 0.09);
  border: 1px dashed rgba(240, 103, 90, 0.45);
  border-radius: 8px;
  padding: 2px 7px;
  color: #F0675A;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #1A1A1F;
  vertical-align: top;
}
th {
  color: #8A8A93;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
}
td { color: #B8B8BE; }

.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #1A1A1F;
  font-size: 13.5px;
  color: #6A6A72;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 600px) {
  .wrap { padding: 28px 18px 70px; }
  h1 { font-size: 25px; }
  body { font-size: 14.5px; }
}
