/* forfree.gg legal pages v1.0 (2026-10-29). ForFree Show LLC, SITE design.
   /terms, /terms/booking, /privacy, /do-not-sell and /rules: long reading pages, mostly type.
   Needs tokens.css, components.css and pages.css first; this file only adds what those pages need.
   Phone first (390 x 844, then 430 x 932); 768 for tablets; 1024 and up puts the jump list in a side rail.

   Reading rules: one measure (ff-measure, 680 px), Inter at body size on a 1.62 leading, paragraphs spaced
   at 0.9 em, each numbered section opened by an ink rule and an orange display numeral (the How to win
   rundown on the home page). Placeholders read as gold highlighter, never as finished copy. */

/* ------------------------------------------------------------- page tokens */
:root, .ff-ground-light, [data-theme="light"] {
  --ff-ph-bg: rgba(255, 224, 74, 0.45);
  --ff-ph-line: #A88A12;
  --ff-legal-leading: 1.62;
}
[data-theme="dark"], .ff-ground-dark {
  --ff-ph-bg: rgba(226, 198, 67, 0.2);
  --ff-ph-line: #E2C643;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] { --ff-ph-bg: rgba(226, 198, 67, 0.2); --ff-ph-line: #E2C643; }
  [data-theme="auto"] .ff-ground-light { --ff-ph-bg: rgba(255, 224, 74, 0.45); --ff-ph-line: #A88A12; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.ff-page-legal) { scroll-behavior: smooth; }
}

/* ------------------------------------------------------------------ layout */
.ff-legal { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: 8px; }
.ff-legal__head { padding-bottom: 6px; }
.ff-legal__head:focus { outline: none; }
.ff-legal__title { margin-top: 2px; color: var(--ff-text); text-wrap: balance; }
.ff-legal__title--long { max-width: 18ch; }
.ff-legal__lead { margin-top: 12px; max-width: 36ch; color: var(--ff-text-muted); }
.ff-legal__dropnote { margin-top: 14px; max-width: 52ch; font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); }
.ff-legal__meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; padding: 0;
  font-size: var(--ff-t-footnote-size); line-height: 1.4;
}
.ff-legal__meta div { display: flex; gap: 8px; align-items: baseline; }
.ff-legal__meta dt { font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-text-muted); }
.ff-legal__meta dd { margin: 0; }
.ff-kicker a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: var(--ff-link-line); }

/* The status strip: dashed like every provisional thing on the site, stamped like the rule card. */
.ff-draftstrip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 18px;
  padding: 11px 14px 11px 12px;
  background: var(--ff-surface);
  border: 2px dashed var(--ff-rule-strong);
}
.ff-draftstrip__stamp { flex: none; font-size: 0.9375rem; }
.ff-draftstrip__text { font-weight: 700; font-size: var(--ff-t-callout-size); line-height: 1.35; text-wrap: balance; }

/* --------------------------------------------------------------- jump list */
/* One list in the markup. Inline on a phone without JavaScript; legal.js copies it into the sheet and hides
   this copy below 1024 px; from 1024 px it is the sticky side rail. */
.ff-toc {
  margin: 10px 0 4px;
  padding: 14px 16px 6px;
  background: var(--ff-surface);
  border: 2px solid var(--ff-rule-strong);
  box-shadow: var(--ff-shadow-hard-m);
}
html.has-legal-ui .ff-toc { display: none; }
.ff-toc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ff-toc__title { color: var(--ff-text-muted); }
.ff-toc__list { margin: 8px 0 0; padding: 0; list-style: none; }
.ff-toc__list a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: baseline;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ff-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  border-top: 1.5px solid var(--ff-rule);
  -webkit-tap-highlight-color: transparent;
}
.ff-toc__list li:first-child a { border-top: 0; }
.ff-toc__list a:active { background: var(--ff-sunk); }
.ff-toc__num { font-family: var(--ff-font-display); font-weight: 400; font-size: 1rem; color: var(--ff-accent-text); font-variant-numeric: tabular-nums; }
.ff-toc__name { text-wrap: pretty; }
.ff-toc__list a[aria-current="location"] .ff-toc__name { text-decoration: underline; text-decoration-color: var(--ff-tab-mark); text-decoration-thickness: 3px; text-underline-offset: 0.28em; }
.ff-toc__foot { margin: 0; padding: 4px 0 8px; border-top: 1.5px solid var(--ff-rule); }
.ff-toc__foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--ff-t-callout-size); }

/* The same list in the sheet */
.ff-toc-sheet .ff-toc__list { margin-top: 6px; }
.ff-toc-sheet .ff-toc__list a { padding: 11px 0; font-size: 1rem; }
.ff-sheet__status { margin-left: auto; }

/* The thumb-zone pair: "On this page" and Back to top, on the bar material, above the tab bar. */
.ff-jump {
  position: fixed;
  z-index: var(--ff-z-bar);
  right: var(--ff-gutter-r);
  bottom: calc(var(--ff-tabbar-h) + var(--ff-safe-bottom) + 14px);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 180ms ease, translate 260ms var(--ff-ease-out), visibility 0s linear 0s;
}
html.has-legal-ui .ff-jump:not(.is-on) {
  opacity: 0;
  translate: 0 14px;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, translate 200ms ease, visibility 0s linear 200ms;
}
.ff-jump .ff-btn { --btn-bg: var(--ff-bar-bg); --btn-shadow: var(--ff-shadow); }
.ff-jump__toc { gap: 8px; padding: 0 14px 0 12px; }
.ff-jump__count { min-width: 3.4em; font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.02em; color: var(--ff-text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.ff-jump__count:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ff-jump, html.has-legal-ui .ff-jump:not(.is-on) { transition: none; translate: none; }
}

/* ------------------------------------------------------------------- prose */
.ff-legal__body { padding-top: 4px; max-width: var(--ff-site-measure); }
.ff-prose { font-size: var(--ff-t-body-size); line-height: var(--ff-legal-leading); text-wrap: pretty; }
.ff-lsec > * + *, .ff-legal-card > :not(.ff-tape) + *, .ff-legal--short .ff-legal__body > * + * { margin-top: 0.9em; }
.ff-prose strong { font-weight: 700; color: var(--ff-text); }
.ff-prose em { font-style: italic; }
.ff-prose code {
  font-family: var(--ff-font-mono);
  font-size: 0.875em;
  padding: 0.06em 0.36em;
  background: var(--ff-sunk);
  border: 1.5px solid var(--ff-rule);
  border-radius: 4px;
  white-space: nowrap;
}

/* Bullets: a small orange die-cut diamond. Numbers: a little ink-edged ticket. */
.ff-prose ul { list-style: none; padding: 0; }
.ff-prose ul > li { position: relative; padding-left: 1.4em; }
.ff-prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.66em;
  width: 0.4em;
  height: 0.4em;
  background: var(--ff-accent);
  border-radius: 1px;
  rotate: 45deg;
}
.ff-prose ol { list-style: none; padding: 0; counter-reset: ff-ol; }
.ff-prose ol > li { position: relative; padding-left: 2.15em; counter-increment: ff-ol; }
.ff-prose ol > li::before {
  content: counter(ff-ol);
  position: absolute;
  left: 0;
  top: 0.2em;
  display: grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.2em;
  font-family: var(--ff-font-mono);
  font-weight: 700;
  font-size: 0.75em;
  line-height: 1;
  color: var(--ff-text);
  background: var(--ff-surface);
  border: 1.5px solid var(--ff-rule-strong);
  border-radius: 4px;
  box-shadow: 1.5px 1.5px 0 0 var(--ff-shadow);
}
.ff-prose li + li { margin-top: 0.6em; }
.ff-prose li > ul, .ff-prose li > ol { margin-top: 0.6em; }

/* A numbered section: an ink rule, an orange numeral, the name in the display face. Sections touch
   (padding, never margin) so the current-section marker always lands in exactly one. */
.ff-lsec { padding-top: 36px; }
.ff-lsec__title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 2px solid var(--ff-rule-strong);
  font-family: var(--ff-t-title2-family);
  font-weight: 400;
  font-size: var(--ff-t-title2-size);
  line-height: 1.1;
  letter-spacing: var(--ff-t-title2-tracking);
  color: var(--ff-text);
  scroll-margin-top: 8px;
}
.ff-lsec__title + * { margin-top: 16px; }
.ff-lsec__num {
  min-width: 1.35em;
  font-size: 1.18em;
  line-height: 0.9;
  color: var(--ff-accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ff-lsec__name { text-wrap: balance; }
.ff-lsec__title:focus { outline: none; }
.ff-lsec__title:focus-visible { outline: 3px solid var(--ff-focus); outline-offset: 4px; }
.ff-lsub {
  margin-top: 1.6em;
  font-family: var(--ff-t-title3-family);
  font-weight: 700;
  font-size: var(--ff-t-title3-size);
  line-height: var(--ff-t-title3-leading);
  scroll-margin-top: 8px;
}
.ff-lsub__num { font-family: var(--ff-font-mono); font-size: 0.8em; color: var(--ff-accent-text); }
.ff-lsub:focus { outline: none; }
.ff-lsub + * { margin-top: 8px; }

/* ------------------------------------------------------- marks in the text */
/* An open choice or a blank the attorney fills: gold highlighter with a pen line under it. */
.ff-placeholder {
  background: var(--ff-ph-bg);
  box-shadow: inset 0 -2px 0 0 var(--ff-ph-line);
  padding: 0 0.14em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ff-placeholder .ff-placeholder { background: none; box-shadow: none; padding: 0; }
[data-prize-value] { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The general rules point at each drop's own rules: an orange tag on the phrase, a dashed rule on a whole line. */
.ff-dropref { font-weight: 600; color: var(--ff-accent-text); white-space: normal; }
.ff-dropref::before {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin: 0 0.3em 0.06em 0.06em;
  background: currentColor;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 38% 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 42% 50%, transparent 0.09em, #000 0.11em);
  mask: radial-gradient(circle at 42% 50%, transparent 0.09em, #000 0.11em);
}
.ff-prose .ff-dropline, p.ff-dropline { padding-left: 14px; border-left: 3px dashed var(--ff-accent); }
.ff-prose ul > li.ff-dropline { padding-left: calc(1.4em + 2px); border-left: 0; }

/* The plain-words paragraph sits in Freebie's colour; the warning paragraph gets an orange shadow. */
.ff-plain { padding: 12px 14px 13px 16px; background: var(--ff-sunk); border-left: 4px solid var(--ff-voice); }
.ff-alert {
  padding: 12px 14px;
  font-weight: 700;
  background: var(--ff-surface);
  border: 2px solid var(--ff-rule-strong);
  box-shadow: 4px 4px 0 0 var(--ff-accent);
}

/* Cards: the short version, the make-good, the no-purchase rule. Taped like the rule card. */
.ff-legal-card { padding: 20px 16px 18px; }
.ff-legal-card .ff-tape, .ff-optout .ff-tape { z-index: var(--ff-z-raised); }
/* Inside the 16 px margin: a corner tape never reaches past the screen edge. */
.ff-legal-card .ff-tape[data-at="tr"], .ff-optout .ff-tape[data-at="tr"] { right: -9px; }
.ff-legal-card .ff-tape[data-at="tl"] { left: -9px; }
.ff-legal-card__stamp { font-size: 1.0625rem; margin: 0 0 4px -2px; }
.ff-legal-card__stamp:focus { outline: none; }
.ff-lsec--card { padding-top: 22px; }
.ff-legal-card--lead { margin-top: 18px; }
.ff-legal-card--lead > p:first-of-type strong:first-child {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ff-t-quote-family);
  font-weight: 400;
  font-size: var(--ff-t-quote-size);
  line-height: var(--ff-t-quote-leading);
  letter-spacing: var(--ff-t-quote-tracking);
  text-wrap: balance;
}
.ff-legal-card--quote { box-shadow: 6px 6px 0 0 var(--ff-cta-shadow); }
.ff-legal__body > .ff-legal-card--lead + .ff-lsec { padding-top: 40px; }

/* -------------------------------------------------------------------- tables */
/* Phones: each row is its own card, labeled field by field. 768 and up: a ruled table. */
.ff-ltable-wrap { margin-top: 1.1em; }
.ff-ltable { width: 100%; border-collapse: collapse; font-size: var(--ff-t-callout-size); line-height: 1.5; }
.ff-ltable th, .ff-ltable td { text-align: left; vertical-align: top; font-weight: 400; }
.ff-ltable strong { font-weight: 700; }
@media (max-width: 767.98px) {
  .ff-ltable, .ff-ltable tbody, .ff-ltable tr, .ff-ltable th, .ff-ltable td { display: block; }
  .ff-ltable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ff-ltable tr {
    padding: 12px 14px 13px;
    background: var(--ff-surface);
    border: 2px solid var(--ff-rule-strong);
    box-shadow: var(--ff-shadow-hard-s);
  }
  .ff-ltable tr + tr { margin-top: 12px; }
  .ff-ltable th[scope="row"] { font-size: var(--ff-t-body-size); line-height: 1.45; }
  .ff-ltable td { margin-top: 10px; padding-top: 9px; border-top: 1.5px solid var(--ff-rule); }
  .ff-ltable td::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    margin-bottom: 2px;
    font-family: var(--ff-font-mono);
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ff-text-muted);
  }
}
@media (min-width: 768px) {
  .ff-ltable { border-top: 2px solid var(--ff-rule-strong); border-bottom: 2px solid var(--ff-rule-strong); }
  .ff-ltable thead th {
    padding: 10px 14px 8px 0;
    font-family: var(--ff-font-mono);
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ff-text-muted);
    border-bottom: 2px solid var(--ff-rule-strong);
  }
  .ff-ltable tbody th, .ff-ltable tbody td { padding: 12px 14px 12px 0; border-top: 1.5px solid var(--ff-rule); }
  .ff-ltable tbody tr:first-child > * { border-top: 0; }
  .ff-ltable tbody th { width: 38%; }
}

/* --------------------------------------------------------------- end mark */
.ff-endmark { display: flex; align-items: center; gap: 12px; margin-top: 44px; padding-top: 16px; border-top: 2px solid var(--ff-rule-strong); }
.ff-endmark img { width: 32px; height: 32px; image-rendering: pixelated; rotate: -6deg; }
.ff-endmark a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--ff-t-callout-size); }

/* The footer: the current page's link reads as the current one; room at the end for the floating pair. */
.ff-footer__links a[aria-current="page"] { font-weight: 700; text-decoration-color: currentColor; }
.ff-page-legal .ff-footer { padding-bottom: 104px; }
@media (min-width: 900px) { .ff-page-legal .ff-footer { padding-bottom: 88px; } }

/* --------------------------------------------------------------- /do-not-sell */
.ff-legal--short .ff-legal__body { padding-top: 10px; }
.ff-optout { padding: 18px 16px 18px; }
.ff-optout__form { display: grid; gap: 16px; margin-top: 16px; }
.ff-optout .ff-btn--primary { white-space: normal; text-align: center; min-height: 52px; padding: 12px 18px; line-height: 1.2; }
.ff-optout__state:empty { display: none; }
.ff-optout__state { margin-top: 16px; }
.ff-optout .ff-done { margin-top: 0; padding: 0; }
.ff-optout .ff-done:focus { outline: none; }
.ff-gpc { padding: 14px 16px 16px; background: var(--ff-sunk); border-left: 4px solid var(--ff-voice); }
.ff-gpc__title { color: var(--ff-text-muted); }
.ff-gpc > * + * { margin-top: 8px; }
.ff-gpc__status { margin-top: 12px; rotate: -2deg; }
.ff-legal__more { margin-top: 28px; }
.ff-page-optout .ff-footer { padding-bottom: 40px; }

/* ------------------------------------------------------------- 430 and up */
@media (min-width: 420px) {
  .ff-legal-card { padding: 22px 20px 20px; }
}

/* ------------------------------------------------------------- 768 and up */
@media (min-width: 768px) {
  .ff-lsec { padding-top: 48px; }
  .ff-lsec__title { padding-top: 16px; }
  .ff-legal-card { padding: 26px 26px 24px; }
  .ff-toc { max-width: var(--ff-site-measure); }
  .ff-optout { padding: 22px 24px; }
  .ff-legal--short .ff-legal__body { max-width: 600px; }
}
@media (min-width: 900px) {
  .ff-jump { bottom: calc(var(--ff-safe-bottom) + 24px); right: max(var(--ff-margin-wide), var(--ff-safe-right)); }
  .ff-lsec__title, .ff-lsub { scroll-margin-top: 24px; }
}

/* ------------------------------------------------------------ 1024 and up */
/* The side rail: the jump list stays beside the text; only Back to top floats. */
@media (min-width: 1024px) {
  .ff-legal {
    grid-template-columns: minmax(200px, 250px) minmax(0, var(--ff-site-measure));
    column-gap: clamp(48px, 5vw, 88px);
    justify-content: center;
  }
  .ff-legal__head, .ff-legal__body { grid-column: 2; }
  .ff-legal__head { grid-row: 1; }
  .ff-legal__body { grid-row: 2; }
  html.has-legal-ui .ff-toc, .ff-toc {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--ff-safe-top) + 64px + 28px);
    max-height: calc(100dvh - var(--ff-safe-top) - 64px - 56px);
    margin: calc(var(--ff-safe-top) + 64px + 40px) 0 0;
    padding: 0 6px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .ff-toc__head { padding-bottom: 10px; border-bottom: 2px solid var(--ff-rule-strong); }
  .ff-toc__list { margin-top: 6px; }
  .ff-toc__list a {
    grid-template-columns: 2rem minmax(0, 1fr);
    min-height: 34px;
    padding: 6px 4px 6px 0;
    font-size: var(--ff-t-footnote-size);
    border-top: 0;
    border-radius: 4px;
  }
  .ff-toc__num { font-size: 0.875rem; }
  @media (hover: hover) {
    .ff-toc__list a:hover .ff-toc__name { text-decoration: underline; text-decoration-color: var(--ff-link-line); text-decoration-thickness: 2px; text-underline-offset: 0.24em; }
  }
  .ff-toc__list a[aria-current="location"] { box-shadow: inset 3px 0 0 0 var(--ff-tab-mark); padding-left: 10px; grid-template-columns: 1.6rem minmax(0, 1fr); }
  .ff-toc__foot { position: sticky; bottom: 0; background: var(--ff-ground); padding: 6px 0 2px; }
  .ff-jump__toc { display: none; }
  .ff-legal--short { grid-template-columns: minmax(0, 1fr); }
  .ff-legal--short .ff-legal__head, .ff-legal--short .ff-legal__body { grid-column: 1; }
  .ff-legal__title--long { max-width: 18ch; }
}

/* ----------------------------------------------------------------- print */
@media print {
  .ff-topbar, .ff-tabbar, .ff-jump, .ff-toc, .ff-skip, .ff-footer__row, .ff-endmark, dialog { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .ff-largetitle { padding-top: 0; }
  .ff-legal { display: block; }
  .ff-lsec__title { break-after: avoid; }
  .ff-ltable tr, .ff-legal-card { break-inside: avoid; box-shadow: none; }
  .ff-prose a { text-decoration: none; }
}
