/* Funn — plain pages (legal pages and the split share page). Small on purpose: the launch site's styles.css
   carries the scroll story; these pages only need the brand, readable text and a few buttons. */

:root {
  --gum: #ff3d8b;
  --sun: #ffd60a;
  --volt: #2d5bff;
  --mint: #00d6a3;
  --tang: #ff7a1a;
  --blush: #ff9ec4;
  --ink: #1a1033;
  --stage: #0d0720;
  --paper: #ffffff;
  --mist: #f5f3f8;
  --cream: #fff8e6;
  --inksoft: rgba(26, 16, 51, 0.68);
  --line: rgba(26, 16, 51, 0.14);
  --display: 'Bagel Fat One', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--volt); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input { font: inherit; }
::selection { background: var(--gum); color: var(--paper); }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- top bar ---------- */

.bar { padding: 12px var(--gutter) 0; }
.bar__in {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: var(--sun);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 34px; margin: 0 6px 0 0; }
.wordmark { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 rgba(26, 16, 51, 0.4); }
.btn--ink:hover { color: var(--paper); }
.btn--gum { background: var(--gum); color: var(--paper); }
.btn--gum:hover { color: var(--paper); }

/* ---------- draft banner ---------- */

.draft {
  max-width: 980px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px dashed var(--ink);
  background: repeating-linear-gradient(-45deg, #fff1b8 0 14px, #ffe98a 14px 28px);
  font-weight: 700;
  font-size: 15px;
}
.draft strong { font-weight: 900; }
.wrapx { padding: 0 var(--gutter); }

/* ---------- legal document ---------- */

.doc { max-width: 980px; margin: 0 auto; padding: 28px var(--gutter) 56px; }
.doc__head { padding: 8px 0 18px; }
.doc__kicker { margin: 0 0 8px; font-weight: 900; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gum); }
.doc h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 7vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.doc__meta { margin: 12px 0 0; color: var(--inksoft); font-size: 15px; }
.doc__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.toc { align-self: start; padding: 16px 18px; border-radius: 20px; background: var(--paper); border: 2px solid var(--ink); }
.toc h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 900; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 700; }
.toc a:hover { text-decoration: underline; }
.prose { min-width: 0; padding: 22px clamp(18px, 4vw, 40px) 30px; border-radius: 24px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 34px 0 10px; font-size: clamp(22px, 3.4vw, 27px); line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; scroll-margin-top: 16px; }
.prose h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 900; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 800; }
.summary { margin: 0 0 8px; padding: 16px 18px; border-radius: 18px; background: #e6fbf5; border: 2px solid var(--mint); }
.summary h2 { margin: 0 0 6px; font-size: 18px; }
.summary ul { margin: 0; }
.note { padding: 12px 16px; border-left: 5px solid var(--sun); background: #fffbe6; border-radius: 0 12px 12px 0; }
.ph { padding: 1px 6px; border-radius: 6px; background: #ffe0ee; color: #a3004b; font-weight: 800; font-size: 0.92em; white-space: normal; }
.tablewrap { overflow-x: auto; margin: 12px 0; border: 2px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--mist); font-weight: 900; }
tr:last-child td { border-bottom: 0; }
.tablewrap table { min-width: 620px; }
.contact { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--mist); }
.contact p { margin: 0; }

@media (min-width: 900px) {
  .doc__grid { grid-template-columns: 240px 1fr; }
  .toc { position: sticky; top: 16px; }
}

/* ---------- footer ---------- */

.foot { padding: 28px var(--gutter) 36px; background: var(--stage); color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.foot__in { max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot .wordmark { color: var(--sun); font-size: 30px; text-decoration: none; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.legal-links a { color: rgba(255, 255, 255, 0.86); font-weight: 700; display: inline-block; padding: 6px 0; }
.legal-links a:hover { color: var(--sun); }
.legal-links a[aria-current='page'] { color: var(--sun); }

@media print {
  .bar, .toc, .foot, .skip { display: none; }
  .prose { border: 0; box-shadow: none; padding: 0; }
  body, html { background: #fff; }
}

/* Audit: 44 px targets for the logo and footer links, and an AA kicker colour (pink text on cream was 3.2:1). */
.brand, .foot .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.doc__kicker { color: #c40f57; }
.legal-links a { min-width: 44px; justify-content: center; }

/* Brand art: no drag, no iOS long-press save, no selection highlight (protect.js blocks its right-click menu). Images only, never text. */
img.no-save, [data-protect] img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
