/* ═══════════════════════════════════════════════════════════════════════
   Catscade — site stylesheet

   No build step: this file is served exactly as it sits in the repo, so it
   is written to be read rather than compiled.

   FOUR RULES, EACH ONE PAID FOR (the first one on the Tone Switch site):

   1. **No inline `style` attributes in the HTML.** The site is served with
      `style-src 'self'` and no `'unsafe-inline'`, so `style="…"` is dropped
      by the browser before it reaches the cascade. Every per-element colour
      here comes from a modifier class.

   2. **The palette is the app's palette, to the hex** — the values in
      Assets/Purradox/UI/Styles/Candy.uss: the peach wall, cream panels,
      tangerine candy, cocoa ink. A site whose orange is a different orange
      from the game's reads as a fan page.

   3. **Both display faces are the game's own** (Assets/Purradox/UI/Fonts,
      SIL OFL 1.1, licence in /assets/fonts/OFL.txt): Purr Display for titles
      and Fredoka Bold for headings and buttons. Both were rebuilt with
      ğ Ğ ş Ş İ, so Turkish titles may use them — unlike Tone Switch's
      Palamecia. Reading text uses the platform stack.

   4. **Candy is lit from above and stands on a cocoa edge.** Buttons and
      panels carry the in-game look: a light top, a darker bottom lip. Flat
      fills on the peach wall read as stickers, not as toys.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Purr Display';
  src: url('/assets/fonts/PurrDisplay.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/Fredoka-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */

:root {
  /* The room, top to bottom. */
  --wall: #fad9c0;
  --peach: #f6b48a;
  --cream: #fce6c1;
  --paper: #fff6e4;
  --paper-2: #fffaf1;

  /* Candy materials (Candy.uss). */
  --orange: #f68a2a;
  --orange-hi: #ffb25c;
  --orange-lo: #de6f17;
  --yellow: #fdcb3e;
  --lavender: #c79ac8;
  --sage: #afcd9f;
  --coral: #f15747;

  /* Ink. Cocoa is the game's outline colour; the lighter two keep at least
     4.5:1 on cream. */
  --cocoa: #45190a;
  --ink: #45190a;
  --ink-2: #6b3a22;
  --ink-3: #87573e;
  --link: #a4420c;

  --stroke: rgba(69, 25, 10, 0.14);
  --stroke-strong: rgba(69, 25, 10, 0.3);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --lift: 0 5px 0 rgba(69, 25, 10, 0.08), 0 18px 40px rgba(150, 70, 20, 0.12);
  --lift-lg: 0 7px 0 rgba(69, 25, 10, 0.1), 0 26px 60px rgba(150, 70, 20, 0.18);

  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --round: 'Fredoka', var(--ui);
  --display: 'Purr Display', 'Fredoka', var(--ui);

  --wrap: 1120px;
  --reading: 68ch;
  --topbar-h: 68px;

  color-scheme: light;
}

/* ── Reset ────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 24px);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--ui);
  font-size: clamp(15.5px, 0.95rem + 0.15vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--wall);
  overflow-x: hidden;
}

/* The room's wall, painted rather than shipped: warm light from the window
   at the top left, a cushion-coloured glow at the bottom right. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 6% 4%, rgba(255, 233, 166, 0.75), transparent 62%),
    radial-gradient(48vw 48vw at 98% 22%, rgba(246, 180, 138, 0.55), transparent 62%),
    radial-gradient(44vw 44vw at 10% 88%, rgba(175, 205, 159, 0.28), transparent 60%),
    radial-gradient(54vw 54vw at 92% 98%, rgba(199, 154, 200, 0.26), transparent 62%),
    linear-gradient(180deg, var(--wall) 0%, var(--cream) 60%, #fff1dd 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-color: rgba(164, 66, 12, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--orange-lo);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Language visibility ──────────────────────────────────────────────── */

/* Both languages ship in the document and one is hidden. Before the script
   resolves a language `[data-lang]` is absent from <html>, and in that
   window the Turkish copy shows — so a visitor with JavaScript disabled
   still gets one complete, readable legal page instead of two stacked ones. */
[data-lang='en'] [data-lang='tr'],
[data-lang='tr'] [data-lang='en'] {
  display: none !important;
}

html:not([data-lang]) [data-lang='en'] {
  display: none !important;
}

/* ── Layout primitives ────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--cocoa);
  color: var(--paper);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

/* ── Top bar ──────────────────────────────────────────────────────────── */

/* Sticky, translucent, and wrapping rather than collapsing: on a narrow
   screen the links take their own row and scroll sideways. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 228, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  min-height: var(--topbar-h);
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding: 10px clamp(16px, 4vw, 32px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--paper), 0 3px 0 2px rgba(69, 25, 10, 0.18);
}

.brand__name {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--cocoa);
}

.brand__sub {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(69, 25, 10, 0.06);
}

.nav a[aria-current='page'] {
  color: var(--cocoa);
  background: rgba(246, 138, 42, 0.18);
  box-shadow: inset 0 0 0 1.5px rgba(222, 111, 23, 0.55);
  font-weight: 600;
}

.langswitch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(69, 25, 10, 0.06);
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.langswitch button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  /* No transition: the script sets the pressed state on load, and a fade
     there reads as both buttons being half-selected. */
}

.langswitch button:hover {
  color: var(--ink);
}

.langswitch button[aria-pressed='true'] {
  background: var(--cocoa);
  color: var(--paper);
}

/* ── Type ─────────────────────────────────────────────────────────────── */

/* The wordmark: Purr Display in cream with the in-game cocoa outline, done
   with stacked shadows because text-stroke eats into the letterforms. */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(3rem, 1.8rem + 5vw, 5.8rem);
  color: var(--paper);
  text-shadow:
    0 3px 0 var(--cocoa), 0 -3px 0 var(--cocoa), 3px 0 0 var(--cocoa), -3px 0 0 var(--cocoa),
    2px 2px 0 var(--cocoa), -2px 2px 0 var(--cocoa), 2px -2px 0 var(--cocoa), -2px -2px 0 var(--cocoa),
    0 8px 0 rgba(69, 25, 10, 0.25);
}

/* Page titles: the same face (it has İ), plain cocoa — an outlined
   "Gizlilik Politikası" at this size would shout. */
.display--page {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  color: var(--cocoa);
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.6);
}

h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
}

.prose h2,
.card > h2,
.ruleblock h2,
.tile h2 {
  font-family: var(--round);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.prose h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  margin: 2.2em 0 0.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--round);
  font-size: 1.05rem;
  margin: 1.8em 0 0.4em;
  color: var(--orange-lo);
}

.prose p,
.prose li {
  color: var(--ink-2);
  max-width: var(--reading);
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--orange);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(36px, 7vw, 80px) 0 clamp(26px, 5vw, 52px);
  text-align: center;
}

.hero__icon {
  width: clamp(104px, 20vw, 148px);
  height: auto;
  margin: 0 auto clamp(18px, 3vw, 28px);
  border-radius: 24%;
  box-shadow: 0 0 0 4px var(--paper), 0 8px 0 4px rgba(69, 25, 10, 0.16),
    0 26px 60px rgba(200, 100, 30, 0.3);
}

.hero__icon--cat {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(150, 70, 20, 0.25));
}

.hero__lede {
  margin: clamp(16px, 2.4vw, 24px) auto 0;
  max-width: 56ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--ink-2);
}

.hero__lede strong {
  color: var(--ink);
  font-weight: 650;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}

/* A row of cat faces under the wordmark — the cast, before a word is read. */
.faces {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 2px;
  margin: clamp(18px, 3vw, 26px) auto 0;
  padding: 0;
  list-style: none;
  max-width: 620px;
}

.faces img {
  width: clamp(40px, 7vw, 54px);
  height: auto;
}

/* ── Buttons: tangerine candy ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--orange-hi), var(--orange) 55%, var(--orange-lo));
  color: var(--cocoa);
  font-family: var(--round);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid var(--cocoa);
  box-shadow: 0 4px 0 var(--cocoa), inset 0 2px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--cocoa), inset 0 2px 0 rgba(255, 255, 255, 0.55);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--cocoa), inset 0 2px 0 rgba(255, 255, 255, 0.55);
}

.btn--ghost {
  background: linear-gradient(180deg, #ffffff, var(--paper));
}

/* ── Cards, tiles, grids ──────────────────────────────────────────────── */

.card {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border: 2px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.4vw, 36px);
  box-shadow: var(--lift);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.card > h2:first-child {
  margin-top: 0;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
}

.card > p {
  color: var(--ink-2);
  max-width: var(--reading);
}

.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.tile {
  display: block;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border: 2px solid var(--stroke);
  box-shadow: var(--lift);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

a.tile:hover {
  transform: translateY(-3px);
  border-color: var(--tone, var(--stroke-strong));
  box-shadow: var(--lift-lg);
}

.tile h2 {
  margin: 14px 0 6px;
  font-size: 1.15rem;
}

.tile p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.tile__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--cocoa);
  background: var(--tone, var(--orange));
  border: 2px solid var(--cocoa);
  box-shadow: 0 3px 0 var(--cocoa), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.tile__icon svg {
  width: 24px;
  height: 24px;
}

/* Candy colours as modifier classes (rule 1: never inline). */
.t-orange {
  --tone: var(--orange);
}

.t-yellow {
  --tone: var(--yellow);
}

.t-sage {
  --tone: var(--sage);
}

.t-lavender {
  --tone: var(--lavender);
}

.t-peach {
  --tone: var(--peach);
}

/* ── Home: the Purr Chain ─────────────────────────────────────────────── */

.ruleblock h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
}

.ruleblock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

/* Three cats, one tap: the chain the store page describes, drawn as a row
   of faces with what each one goes for. */
.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.chain li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--stroke);
  border-left: 6px solid var(--tone, var(--orange));
}

.chain img {
  width: 64px;
  height: auto;
}

.chain b {
  display: block;
  font-family: var(--round);
  font-size: 1.05rem;
  color: var(--ink);
}

.chain span {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.rulesteps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.rulesteps li {
  position: relative;
  padding: 0 0 0 48px;
  margin: 0 0 18px;
  color: var(--ink-2);
  max-width: 46ch;
}

.rulesteps li:last-child {
  margin-bottom: 0;
}

.rulesteps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--cocoa);
  box-shadow: 0 2px 0 var(--cocoa);
  color: var(--cocoa);
  font-family: var(--round);
  font-size: 15px;
  font-weight: 700;
}

.rulesteps strong {
  color: var(--ink);
  display: block;
  font-weight: 650;
}

/* ── Home: the cast ───────────────────────────────────────────────────── */

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cat {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--stroke);
}

.cat img {
  width: 58px;
  height: auto;
}

.cat__name {
  display: block;
  font-family: var(--round);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.2;
}

.cat__room {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.cat p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ── Home: rooms ──────────────────────────────────────────────────────── */

.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rooms li {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--stroke);
  border-top: 5px solid var(--tone, var(--peach));
}

.rooms b {
  display: block;
  font-family: var(--round);
  font-size: 1.02rem;
  color: var(--ink);
}

.rooms span {
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ── Home: facts ──────────────────────────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--stroke);
  text-align: center;
}

.fact b {
  display: block;
  font-family: var(--round);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--orange-lo);
  margin-bottom: 2px;
}

.fact span {
  font-size: 0.85rem;
  color: var(--ink-2);
}

/* ── Legal pages: sidebar + reading column ────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 80px);
}

.toc {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.85);
  border: 2px solid var(--stroke);
  font-size: 0.9rem;
}

.toc h2 {
  font-family: var(--round);
  font-size: 1rem;
  margin: 0 0 8px 10px;
}

.toc ol,
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.toc a:hover {
  color: var(--ink);
  background: rgba(69, 25, 10, 0.05);
}

.toc a.is-active {
  color: var(--cocoa);
  border-left-color: var(--orange);
  background: rgba(246, 138, 42, 0.14);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.meta b {
  color: var(--ink-2);
}

/* A pulled-out paragraph the reader must not skim past. */
.callout {
  margin: 1.6em 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(253, 203, 62, 0.18);
  border: 2px solid rgba(222, 111, 23, 0.35);
  border-left-width: 6px;
}

.callout p {
  margin: 0;
  color: var(--ink);
  max-width: none;
}

.callout p + p {
  margin-top: 0.7em;
}

.callout ul {
  margin: 0;
}

.callout li {
  color: var(--ink);
}

.tablewrap {
  overflow-x: auto;
  margin: 1.4em 0;
  border-radius: var(--radius);
  border: 2px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  -webkit-overflow-scrolling: touch;
}

.tablewrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tablewrap th,
.tablewrap td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--stroke);
  color: var(--ink-2);
}

.tablewrap th {
  background: rgba(246, 180, 138, 0.3);
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}

.tablewrap tr:last-child td {
  border-bottom: 0;
}

/* ── Support: FAQ ─────────────────────────────────────────────────────── */

.faq details {
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 46px 15px 18px;
  position: relative;
  color: var(--ink);
  font-weight: 650;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2.5px solid var(--orange-lo);
  border-bottom: 2.5px solid var(--orange-lo);
  transform: rotate(45deg);
  transition: transform 0.18s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq details > *:not(summary) {
  padding-left: 18px;
  padding-right: 18px;
}

.faq details > *:last-child {
  padding-bottom: 16px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  border-top: 2px solid var(--stroke);
  background: rgba(255, 246, 228, 0.8);
  margin-top: clamp(40px, 7vw, 90px);
}

.footer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(24px, 4vw, 36px) clamp(16px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.88rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--link);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The table of contents becomes a strip above the document. */
  .toc {
    position: static;
    padding: 12px;
  }

  .toc h2 {
    display: none;
  }

  .toc ol,
  .toc ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .toc ol::-webkit-scrollbar,
  .toc ul::-webkit-scrollbar {
    display: none;
  }

  .toc a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .toc a.is-active {
    border-left: 0;
    border-bottom-color: var(--orange);
  }

  .ruleblock {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .topbar__inner {
    padding-bottom: 6px;
  }

  .nav {
    order: 3;
    width: 100%;
    padding-bottom: 4px;
  }

  .brand__sub {
    display: none;
  }

  .hero {
    padding-top: clamp(28px, 8vw, 44px);
  }

  .btn {
    width: 100%;
  }
}

/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Print ────────────────────────────────────────────────────────────── */

/* A privacy policy gets printed and attached to things: black on white,
   no wall, no navigation. */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .topbar,
  .footer,
  .toc,
  .skip,
  .hero__icon,
  .faces {
    display: none !important;
  }

  .card,
  .tile {
    background: none;
    border: 1px solid #999;
    box-shadow: none;
  }

  .prose p,
  .prose li,
  .display,
  .display--page,
  h2,
  h3 {
    color: #000;
    text-shadow: none;
    max-width: none;
  }

  a {
    color: #000;
  }
}
