/* =========================================================================
   ganas — legal and help pages (privacy, terms, support, delete account)
   One stylesheet for every static page in public/. Tokens and faces mirror
   src/index.css; keep the two in step. The page is the app's blue ground and
   the text sits on a cream sheet, the way the app's own sheets read.
   ========================================================================= */

@font-face {
  font-family: 'Muring';
  src: url('/fonts/muring-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2945e5;
  --blue-deep: #1f36c8;
  --ink: #040509;
  --surface: #f5f2ea;
  --acid: #c7ff4d;
  --warn: #ff7da8;
  --warn-text: #b4235a; /* 5.6:1 on the cream */
  --tx: #040509;
  --tx-dim: rgba(4, 5, 9, 0.78); /* body copy */
  --tx-faint: rgba(4, 5, 9, 0.6); /* small meta text, 5.3:1 */
  --panel: rgba(4, 5, 9, 0.05);
  --hair: rgba(4, 5, 9, 0.1);
  --rule: rgba(4, 5, 9, 0.16);
  --w-80: rgba(255, 255, 255, 0.8);
  --display: 'Bricolage Grotesque', 'Muring', system-ui, sans-serif;
  --body: 'Muring', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 800px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--blue);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: var(--blue);
  color: var(--tx);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 0 clamp(0.75rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
}
::selection {
  background: var(--acid);
  color: var(--ink);
}
a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--blue-deep);
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* header on the blue ground (same wordmark as the site) -------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.75rem 0.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  display: block;
  height: 34px;
  width: auto;
}
.top a:focus-visible,
.foot a:focus-visible {
  outline-color: var(--acid);
}
/* the app's glass row */
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* the cream sheet -------------------------------------------------------- */
main {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(1.4rem, 5vw, 3.4rem);
  box-shadow: 0 18px 40px rgba(4, 5, 9, 0.18);
}
.eyebrow {
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tx-faint);
  margin-bottom: 0.6rem;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.033em;
  margin-bottom: 0.8rem;
}
.updated {
  font-size: 0.86rem;
  color: var(--tx-faint);
  margin-bottom: 2rem;
}
.lede {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--tx);
  margin-bottom: 2.2rem;
  padding: 1.15rem 1.35rem;
  border-radius: 18px;
  background: var(--panel);
}

/* draft marker + placeholders: remove the note and fill every .ph before
   publishing (grep for class="ph") */
.draft-note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--warn-text);
  background: rgba(255, 125, 168, 0.12);
  border: 1px dashed var(--warn-text);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-bottom: 2rem;
}
.ph {
  color: var(--warn-text);
  background: rgba(255, 125, 168, 0.16);
  border: 1px dashed var(--warn-text);
  border-radius: 6px;
  padding: 0 0.3em;
  font-weight: 600;
  font-size: 0.92em;
}

/* contents ----------------------------------------------------------------- */
.toc {
  margin: 0 0 2.4rem;
  padding: 1.1rem 1.3rem 0.8rem;
  border-radius: 18px;
  background: var(--panel);
}
.toc__h {
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tx-faint);
  margin-bottom: 0.5rem;
}
.toc ol {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}
.toc li {
  break-inside: avoid;
}
.toc a {
  display: flex;
  align-items: baseline;
  padding: 0.3rem 0;
  color: var(--tx-dim);
  text-decoration: none;
}
.toc a span {
  min-width: 1.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.toc a:hover {
  color: var(--blue);
}

/* sections ----------------------------------------------------------------- */
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  scroll-margin-top: 1rem;
}
h2 .num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
h2:target {
  border-top-color: var(--blue);
}
h2 .anchor {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tx-faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}
h2:hover .anchor,
h2 .anchor:focus-visible {
  opacity: 1;
}
h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  margin: 1.6rem 0 0.5rem;
}
p {
  color: var(--tx-dim);
  margin-bottom: 1rem;
}
strong {
  color: var(--tx);
  font-weight: 700;
}
main ul {
  list-style: none;
  margin: 0 0 1.2rem;
}
main ul > li {
  color: var(--tx-dim);
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.6rem;
}
main ul > li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--blue);
}

/* numbered steps: blue rounds, like the app's + buttons */
ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.4rem;
}
ol.steps > li {
  counter-increment: step;
  color: var(--tx-dim);
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.9rem;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
}

/* call to action (mailto): the app's blue pill */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  margin: 0.2rem 0 1.4rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn:hover {
  color: #fff;
  background: var(--blue-deep);
}

/* contact block */
.card {
  border-radius: 18px;
  background: var(--panel);
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.6rem;
}
.card p {
  margin-bottom: 0.3rem;
}
.card p:last-child {
  margin-bottom: 0;
}

/* tables: real tables on desktop, stacked label/value cards on phones */
.table-wrap {
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 1.6rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--hair);
}
th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tx-faint);
  background: var(--panel);
}
td {
  color: var(--tx-dim);
}
tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 600px) {
  table.stack thead {
    display: none;
  }
  table.stack tr {
    display: block;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--hair);
  }
  table.stack tr:last-child {
    border-bottom: 0;
  }
  table.stack td {
    display: block;
    padding: 0.1rem 0;
    border: 0;
  }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tx-faint);
    margin-top: 0.45rem;
  }
  table.stack td:first-child::before {
    margin-top: 0;
  }
  .toc ol {
    columns: 1;
  }
}

/* footer, back on the blue ---------------------------------------------- */
.foot {
  margin-top: 1.6rem;
  padding: 0.4rem 0.25rem 0;
  font-size: 0.86rem;
  color: var(--w-80);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.2rem;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}
.foot a:hover {
  color: var(--acid);
}
.foot a[aria-current='page'] {
  color: var(--acid);
}
.foot .ph {
  color: #fff;
  background: rgba(255, 125, 168, 0.3);
  border-color: var(--warn);
}

/* print: black on white, no chrome ----------------------------------------- */
@media print {
  :root {
    --tx: #000;
    --tx-dim: #222;
    --tx-faint: #555;
    --hair: #ccc;
    --rule: #999;
    --panel: transparent;
    --blue: #000;
  }
  html,
  body {
    background: #fff;
  }
  body {
    padding: 0;
  }
  main {
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .brand,
  .foot,
  .foot a {
    color: #000;
  }
  .back,
  .anchor,
  .draft-note,
  .btn {
    display: none !important;
  }
  a {
    text-decoration: underline;
  }
  .ph {
    background: none;
    color: #000;
  }
}
