/* The Mix Medic — legal pages.
   Shared by terms / privacy / refunds / dmca so the four can never drift apart.

   These are long-form documents someone reads when they are annoyed, worried, or
   about to ask for money back. So the job is READABILITY first, brand second:
   a real measure, a real type scale, and a table of contents that tracks where
   you are. The site's own language (Sora, ink, the red) carries it, rather than
   a generic legal-page look bolted onto a cinematic site. */

:root{
  --red:#f0394b; --red2:#ff5a6a; --red-deep:#cf1d31;
  --ink:#0a0b0d; --ink2:#0e1016; --ink3:#141720;
  --paper:#eef1f6; --muted:#a4acba; --faint:#7c8598;
  --line:rgba(255,255,255,.09); --line2:rgba(255,255,255,.16);
  --font:"Sora",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  /* NOT `ch`. `ch` is the width of the ZERO glyph, and Sora's figures are
     ~0.74em - far wider than its average lowercase - so 68ch measured 832px and
     rendered ~98 characters per line. Comfortable prose is 45-75; Stripe and
     Linear sit at 65-75. On a document this long, measure matters more than any
     other single value here.

     37em, and that number is MEASURED, not assumed. 40em looked right and was
     wrong: a per-character walk of every full line (ragged last lines dropped)
     put the median at 77-78 on all four pages, above the band this very comment
     claimed. At 37em (docW 611px) the medians are terms 72, privacy 71,
     refunds 71, dmca 69. Re-measure if the font size or family changes. */
  --measure:37em;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{
  background:var(--ink);color:var(--paper);font-family:var(--font);
  font-size:16.5px;line-height:1.72;-webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;overflow-x:hidden;min-height:100svh;
}
a{color:inherit}
::selection{background:rgba(240,57,75,.32);color:#fff}

/* Continuity with the landing page: the same grain and the same ambient wash,
   so a legal page reads as part of the product, not a bolted-on afterthought. */
.grain{position:fixed;inset:0;z-index:60;pointer-events:none;opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
.site-bg{position:fixed;inset:0;z-index:0;pointer-events:none;background:
  radial-gradient(70% 34% at 50% 0%, rgba(240,57,75,.09), transparent 62%),
  radial-gradient(90% 50% at 50% 118%, rgba(207,29,49,.10), transparent 64%),
  var(--ink)}

/* ---------- nav ---------- */
.lnav{position:fixed;top:0;left:0;right:0;z-index:50;height:64px;
  background:rgba(10,11,13,.74);backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);border-bottom:1px solid var(--line)}
.lnav-in{max-width:1180px;margin:0 auto;padding:0 26px;height:64px;
  display:flex;align-items:center;justify-content:space-between;gap:20px}
.lnav a{text-decoration:none}
.lnav .home{display:inline-flex;align-items:center;min-height:44px;gap:9px;font-weight:600;letter-spacing:-.01em}
.lnav .home .x{color:var(--red);font-size:17px;line-height:1}
.lnav .back{font-size:13px;color:var(--muted);transition:color .2s;
  display:inline-flex;align-items:center;min-height:44px;padding:0 2px}
.lnav .back:hover{color:var(--paper)}

/* ---------- layout ---------- */
.shell{position:relative;z-index:2;max-width:1180px;margin:0 auto;
  padding:104px 26px 90px;display:grid;grid-template-columns:1fr;gap:44px}
/* Source order is doc-then-aside for screen readers and for no-CSS fallback.
   Visually the TOC must come FIRST on mobile — it is the jump menu for a
   7,000px document. Setting order only inside the desktop query left .doc at
   the default order:0 below 1000px, which sorted the TOC card BELOW the entire
   document (measured: TOC at 6958px on terms.html). Every phone user got zero
   navigation. Both orders are now stated unconditionally so neither side can
   fall back to the default. */
.doc{order:2}
.toc-col{order:1}
@media(min-width:1000px){
  .shell{grid-template-columns:minmax(0,1fr) 232px;align-items:start;gap:64px}
  .toc-col{position:sticky;top:96px;order:2}
  .doc{order:1}
}
/* min-width:0 is load-bearing, not tidiness. Grid items default to
   min-width:auto, which refuses to shrink below the intrinsic width of their
   content — so the 480px-min table below blew the column past the viewport and
   .tw never got the chance to scroll. Caught at 390px: 119px of page overflow
   on exactly the two pages that have tables. */
.doc{max-width:var(--measure);min-width:0}
.shell > *{min-width:0}

/* ---------- masthead ---------- */
.eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--red);font-weight:700;margin-bottom:12px}
h1{font-size:clamp(1.95rem,4.2vw,2.7rem);line-height:1.06;letter-spacing:-.03em;
  font-weight:600;margin-bottom:14px}
.dek{font-size:1.06rem;line-height:1.58;color:var(--muted);max-width:54ch;margin-bottom:20px}
.dates{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:12px;color:var(--faint);
  padding-bottom:22px;margin-bottom:4px;border-bottom:1px solid var(--line);
  letter-spacing:.04em;text-transform:uppercase}
.dates b{color:var(--muted);font-weight:600}

/* ---------- body copy ---------- */
h2{font-size:1.34rem;line-height:1.25;letter-spacing:-.018em;font-weight:600;
  margin:64px 0 4px;scroll-margin-top:96px}
h2 .num{color:var(--red);font-variant-numeric:tabular-nums;margin-right:12px;
  font-size:.78em;font-weight:700;letter-spacing:.04em}
h3{font-size:1.02rem;font-weight:620;margin:34px 0 6px;letter-spacing:-.008em}
p{margin:14px 0;color:#d7dce6}
ul,ol{margin:14px 0 14px 2px;padding-left:20px}
li{margin:7px 0;color:#d7dce6}
li::marker{color:var(--faint)}
strong{color:var(--paper);font-weight:620}
a.link{color:var(--red2);text-decoration:none;border-bottom:1px solid rgba(255,90,106,.32);
  transition:border-color .2s,color .2s}
a.link:hover{color:#fff;border-bottom-color:var(--red2)}
code{background:var(--ink3);border:1px solid var(--line);border-radius:5px;
  padding:.12em .42em;font-size:.88em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* ---------- the plain-English gloss ----------
   Every section leads with what it MEANS. A policy nobody reads protects nobody,
   and this is the part people actually read.

   Deliberately NOT a tinted, bordered box. Repeated on every section that
   treatment turned into visual noise that competed with the prose it exists to
   unlock — a rule and a weight change carry it with far less shouting. */
.plain{margin:14px 0 2px;padding:2px 0 2px 17px;border-left:2px solid var(--red)}
.plain .tag{display:block;font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;
  font-weight:700;color:var(--red);margin-bottom:5px}
.plain p{margin:0;color:var(--paper);font-size:1.02rem;line-height:1.58;
  font-weight:420;letter-spacing:-.004em}

/* ---------- callouts ---------- */
.note{margin:26px 0;padding:18px 20px;border-radius:12px;background:var(--ink2);
  border:1px solid var(--line);border-left:2px solid var(--red)}
.note p{margin:8px 0;font-size:.95rem}
.note p:first-child{margin-top:0}
.note p:last-child{margin-bottom:0}
.note .h{font-weight:640;color:var(--paper);letter-spacing:-.005em}

/* ---------- tables ---------- */
.tw{overflow-x:auto;margin:20px 0;border:1px solid var(--line);border-radius:12px;
  -webkit-overflow-scrolling:touch}

table{width:100%;border-collapse:collapse;font-size:.92rem;min-width:480px}
th,td{text-align:left;padding:12px 15px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--faint);
  font-weight:700;background:rgba(255,255,255,.018)}
tr:last-child td{border-bottom:0}
td{color:#d7dce6}

/* Under 620px the pricing table was cut mid-word ("6 credi", "unlimit"). It is the
   COMMERCIAL table, so it restacks into label/value rows rather than hiding the
   numbers behind a scroll a touch user cannot see. */
@media(max-width:620px){
  .tw{border:0;border-radius:0;overflow:visible}
  table{min-width:0;display:block}
  thead{display:none}
  tbody,tr,td{display:block;width:100%}
  tr{border:1px solid var(--line);border-radius:11px;padding:11px 14px;margin:0 0 10px;
    background:rgba(255,255,255,.016)}
  /* Label ABOVE the value, both as blocks - NOT a flex row.
     display:flex made every ELEMENT child of the cell its own flex column
     beside the ::before label, so a cell containing a link, a <strong> or an
     <em> shattered into two or three narrow columns, one word per line, with
     the last one clipped off-screen. Measured at 390px on the Payment,
     Phone, Role and Audio rows; it also pushed privacy.html 14px wide at
     320px, silently sheared off by body{overflow-x:hidden}.
     Blocks cannot be split by inline content, so the cell can hold whatever
     prose it needs. */
  td{border:0;padding:4px 0;display:block}
  td::before{content:attr(data-l);display:block;font-size:10px;letter-spacing:.12em;
    text-transform:uppercase;color:var(--faint);font-weight:700;margin-bottom:3px}
  td:first-child{font-weight:620;color:var(--paper);border-bottom:1px solid var(--line);
    padding-bottom:9px;margin-bottom:7px}
  td:first-child::before{display:none}   /* the row's own title needs no "ITEM" above it */
}

/* ---------- table of contents ---------- */
.toc{font-size:13px}
.toc .lbl{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--faint);
  font-weight:700;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.toc a{display:flex;align-items:center;min-height:44px;padding:4px 0 4px 13px;color:var(--muted);
  text-decoration:none;border-left:1px solid var(--line);transition:color .2s,border-color .2s;
  line-height:1.35}   /* 44px: these links ARE the navigation on a 7000px page */
.toc a:hover{color:var(--paper);border-left-color:var(--line2)}
.toc a.on{color:var(--red);border-left-color:var(--red)}
@media(max-width:999px){
  .toc{padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--ink2)}
  .toc a{border-left:0;padding-left:0}
  .toc a.on{border-left:0}
}

/* ---------- rail card ----------
   The table of contents on a 7-section page left ~1000px of empty gutter, which
   reads as an unfinished layout rather than restraint. This fills it with the
   thing a person on a refund page actually wants: how to reach a human. */
.rail{margin-top:26px;padding:17px 18px;border:1px solid var(--line);border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.008))}
.rail .lbl{font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--faint);
  font-weight:700;margin-bottom:9px}
.rail p{margin:0 0 10px;font-size:12.8px;line-height:1.55;color:var(--muted)}
.rail a.mail{display:flex;align-items:center;min-height:44px;font-size:13px;color:var(--red2);
  text-decoration:none;word-break:break-all;line-height:1.4;transition:color .2s}
.rail a.mail:hover{color:#fff}
@media(max-width:999px){ .rail{display:none} }   /* the doc's own Contact section covers it */

/* ---------- cross-links between the four documents ---------- */
.siblings{margin-top:72px;padding-top:30px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:10px}
.siblings a{display:inline-flex;align-items:center;min-height:44px;font-size:12.5px;
  letter-spacing:.03em;color:var(--muted);text-decoration:none;padding:0 16px;
  border:1px solid var(--line);border-radius:99px;transition:all .2s}
.siblings a:hover{color:var(--paper);border-color:var(--line2);background:rgba(255,255,255,.03)}
.siblings a[aria-current]{color:var(--red);border-color:rgba(240,57,75,.4)}

/* ---------- footer ---------- */
.foot{position:relative;z-index:2;max-width:1180px;margin:0 auto;
  padding:34px 26px 60px;border-top:1px solid var(--line);
  color:var(--faint);font-size:12.5px;line-height:1.85;text-align:center}
.foot a{color:var(--muted);text-decoration:none;transition:color .2s;
  display:inline-block;padding:10px 4px}   /* inline in a sentence: WCAG 2.5.8 exempt */
/* Out of the sentence, so the WCAG 2.5.8 inline exemption no longer applies:
   these need a real 44px target like any other standalone control. */
/* Middot-separated links cannot survive a wrap: glue the separator to the link
   and a line can START with one, leave it loose and a line can END with one.
   Both measured at 390px. A flex row has no separator to strand.
   Consequence worth stating: out of the sentence, these lose the WCAG 2.5.8
   inline-link exemption, so they need a real 44px target like any control. */
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 14px;margin-top:2px}
.foot-links a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
.foot a:hover{color:var(--red2)}
.e2net{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;justify-content:center;
  margin-top:16px;padding:14px 20px 2px;border-top:1px solid rgba(240,57,75,.14);
  font-size:10.5px;letter-spacing:.14em;text-transform:uppercase}
.e2net a{color:rgba(244,243,241,.58);min-height:44px;display:inline-flex;align-items:center}   /* .36 composited to ~3.0:1 over --ink, below the 4.5:1 AA floor */
.e2net a:hover{color:var(--red2)}
.e2net a[aria-current="page"]{color:var(--red)}
.e2n-tag{color:var(--red);opacity:.72;font-weight:700}

/* There were no focus styles at all. Chrome supplies a default ring; Safari
   shows nothing on links unless full keyboard access is on. Four link-dense
   documents need this stated. */
a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--red2);outline-offset:3px;border-radius:4px}

/* Skip link — 36 headings deep, keyboard users should not tab the whole nav. */
.skip{position:absolute;left:-9999px;top:8px;z-index:70;background:var(--ink3);color:var(--paper);
  padding:11px 17px;border:1px solid var(--line2);border-radius:9px;font-size:13px;text-decoration:none}
.skip:focus{left:16px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
