/* Support and Privacy policy pages: the landing's tokens and type, set as one readable column. */
:root {
  --bg-page: #0E0F11;
  --bg-raised: #141619;
  --bg-sheet: #17191C;
  --bg-card: #1A1C1F;
  --border: #2A2D31;
  --divider: #1E2125;
  --text-primary: #F5F5F4;
  --text-secondary: #C9CDD2;
  --text-muted: #8A9099;
  --text-faint: #6B7076;
  --accent: #CDFF57;
  --on-accent: #232B0A;
  --accent-chip-bg: #232B0A;
  --accent-border: #4A5A20;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --radius-s: 12px;
  --radius-m: 20px;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3rem);
  --fs-h2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg-page); color: var(--text-secondary);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; border-radius: 8px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(720px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Header: same as the landing's. Phones: the wordmark centred, as wide as the landing's hero phone
   (88% of min(320px, column)), with the same faint glow faded out before the top edge.
   Same size and glow on desktop, left-aligned from 640px up. */
.site-header { padding-top: calc(28px + env(safe-area-inset-top)); padding-bottom: 14px; overflow-x: clip; }
.site-header .wrap { display: flex; align-items: center; justify-content: center; }
.brand { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: calc(min(320px, 100vw - 2 * var(--gutter)) * 0.88); height: auto; }
.brand::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -33%; width: 215%; height: 231%; transform: translateX(-50%);
  background: radial-gradient(50% 60.6% at 50% 39.4%,
    rgba(205, 255, 87, .065) 0%, rgba(205, 255, 87, .047) 40%, rgba(205, 255, 87, .026) 62%,
    rgba(205, 255, 87, .009) 82%, rgba(205, 255, 87, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.25) 10%, rgba(0,0,0,.7) 20%, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.25) 10%, rgba(0,0,0,.7) 20%, #000 30%);
  filter: blur(30px);
}
@media (min-width: 640px) {
  .site-header .wrap { justify-content: flex-start; }
}

/* Content */
main { padding-block: clamp(32px, 6vw, 64px) clamp(56px, 9vw, 96px); }
h1 {
  margin: 0; color: var(--text-primary); font-size: var(--fs-h1);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
}
.meta { margin: 12px 0 0; color: var(--text-muted); font-size: var(--fs-small); }
.lead { margin: 24px 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); }

h2 {
  margin: 48px 0 12px; color: var(--text-primary); font-size: var(--fs-h2);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.25;
  scroll-margin-top: 24px;
}
h3 { margin: 28px 0 6px; color: var(--text-primary); font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0 0 .5em; }
li::marker { color: var(--accent); }
strong { color: var(--text-primary); font-weight: 600; }
a { color: var(--text-primary); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* The short version, and the support contact: a lime-tinted card */
.card {
  margin: 28px 0 0; padding: 20px 22px;
  background: var(--accent-chip-bg); border: 1px solid var(--accent-border); border-radius: var(--radius-m);
  color: var(--text-secondary);
}
.card ul { margin: 0; }
.card li:last-child { margin-bottom: 0; }

/* Tables scroll inside their own box on phones */
.table-wrap {
  margin: 0 0 1.2em; overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--bg-card);
}
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: var(--text-primary); font-weight: 600; background: var(--bg-sheet); }
tr:last-child td { border-bottom: 0; }
/* Phones: each row becomes a small card, labelled from data-label */
@media (max-width: 559px) {
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--border); }
  tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 6px 14px; border: 0; }
  td::before { content: attr(data-label); color: var(--text-muted); font-size: var(--fs-small); }
  td:first-child { color: var(--text-primary); font-weight: 600; }
}

/* Support: the email button and the FAQ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 12px 22px; border-radius: var(--radius-s);
  background: var(--accent); color: var(--on-accent); font-weight: 500; text-decoration: none;
}
.btn:hover { color: var(--on-accent); filter: brightness(1.05); }
.faq { margin-top: 8px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 0;
  color: var(--text-primary); font-size: 1.08rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding-top: 28px; padding-bottom: max(28px, env(safe-area-inset-bottom));
  color: var(--text-muted); font-size: var(--fs-small);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--text-primary); }
