/* © 2026 Qder.ai (Itay Funes). All rights reserved. Proprietary and confidential; see LICENSE. */
/*
 * The legal pages.
 *
 * These are read on a phone, often by somebody who is mildly worried about
 * something — what happens to their allergy note, whether they can delete their
 * account. So they are set like a document a person can actually read: one
 * column, generous line height, real headings, and a measure that stops at
 * about 70 characters however wide the screen is.
 */

:root {
  --ink:      #111A33;
  --body:     #3E4866;
  --muted:    #6B7695;
  --line:     #E3E8F2;
  --line-soft:#EDF1F8;
  --bg:       #FFFFFF;
  --bg-soft:  #F7F9FC;
  --accent:   #0B3FD9;
  --warn-bg:  #FBF1E0;
  --warn:     #8A5600;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Assistant", system-ui, -apple-system, sans-serif;
  font-size: 17px;              /* comfortable to read, and never triggers zoom */
  line-height: 1.75;
}

/* ───────────────────────────────────────────────────────────── chrome */

.legal-top {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.legal-top .wrap {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .7rem;
}
.legal-top .lockup { direction: ltr;
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: "Readex Pro", system-ui, sans-serif; font-weight: 600;
  color: var(--ink); text-decoration: none; font-size: 1.02rem;
  direction: ltr;
}
.legal-top .lockup img { width: 24px; height: 24px; }
.legal-top .back {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--accent); text-decoration: none; font-weight: 700; font-size: .92rem;
}

.wrap { width: min(100% - 2rem, 46rem); margin-inline: auto; }

/* ──────────────────────────────────────────────────────────── document */

.doc { padding-block: 2rem 3.5rem; }

.doc h1 {
  font-family: "Heebo", system-ui, sans-serif;
  font-weight: 900; letter-spacing: -.03em;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.15; color: var(--ink); margin: 0 0 .5rem;
}
.doc .updated {
  color: var(--muted); font-size: .88rem; margin: 0 0 1.6rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.doc .lede { font-size: 1.06rem; color: var(--ink); margin-bottom: 1.8rem; }

.doc h2 {
  font-family: "Heebo", system-ui, sans-serif; font-weight: 800;
  font-size: 1.22rem; color: var(--ink);
  margin: 2.4rem 0 .7rem; line-height: 1.3;
  scroll-margin-top: 5rem;      /* so an anchor is not hidden by the sticky bar */
}
.doc h3 {
  font-family: "Heebo", system-ui, sans-serif; font-weight: 700;
  font-size: 1.02rem; color: var(--ink); margin: 1.6rem 0 .4rem;
}
.doc p { margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1.15rem; padding-inline-start: 1.3rem; }
.doc li { margin-bottom: .5rem; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--accent); }

/* A claim worth not skimming past. */
.doc .callout {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: 10px; padding: .9rem 1.1rem; margin: 1.4rem 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc .callout.warn { background: var(--warn-bg); border-color: #E8D3AC; border-inline-start-color: var(--warn); }
.doc .callout.warn strong { color: var(--warn); }

/* Anything the operator must fill in before launch, marked so it cannot be
   mistaken for a completed document. */
.doc .todo {
  background: #FCEBEF; border: 1px dashed #E4A9B7; color: #8A1E39;
  border-radius: 8px; padding: .15rem .5rem; font-weight: 700; font-size: .92rem;
}

/* ─────────────────────────────────────────────────────────────── tables */

/*
 * A table on a phone is the classic overflow bug, so every one of these
 * scrolls inside its own box and the page itself never moves sideways.
 */
.doc .table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 10px; margin: 1.2rem 0;
}
.doc table { border-collapse: collapse; width: 100%; min-width: 26rem; font-size: .94rem; }
.doc th, .doc td { padding: .65rem .8rem; text-align: start; vertical-align: top; }
.doc thead th {
  background: var(--bg-soft); color: var(--ink); font-weight: 800;
  font-size: .86rem; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.doc tbody tr + tr td { border-top: 1px solid var(--line-soft); }

/* ────────────────────────────────────────────────────────── other docs */

.legal-index {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.legal-index h2 { font-size: 1.02rem; margin-top: 0; }
.legal-index ul { list-style: none; padding: 0; margin: 0;
  display: grid; gap: .2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.legal-index a {
  display: flex; align-items: center; min-height: 44px;
  text-decoration: none; color: var(--body); font-size: .95rem;
}
.legal-index a:hover, .legal-index a:focus-visible { color: var(--accent); }
.legal-index a[aria-current="page"] { color: var(--ink); font-weight: 800; }

.legal-foot {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding-block: 1.6rem; color: var(--muted); font-size: .88rem;
}
.legal-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.legal-foot .copy { display: block; margin-top: .6rem; font-size: .8rem; opacity: .75; }
