/* Burnt & Toast: "The Toast Room" content pages. Loads after chrome.css and site.css.
   Shared components for the press, support, legal, privacy and 404 pages, so each page is markup
   only: the page head, sections, link cards, download cards, the fact sheet, FAQ accordions,
   support blocks and long-form legal reading. */

/* The page head: a hand-lettered eyebrow, a big headline with its highlighted half, a lede */
.p-head { padding-block: clamp(24px, 5vw, 64px) clamp(20px, 3vw, 36px); max-width: 52rem; }
.p-eyebrow { color: var(--burnt); font-size: 1.35rem; transform: rotate(-2deg); display: inline-block; }
.p-head h1 { font-size: clamp(2.6rem, 9vw, 5.25rem); line-height: .96; letter-spacing: -0.045em; margin-top: 6px; }
.p-head h1 em, .p-section h2 em { font-style: normal; background: linear-gradient(transparent 58%, rgba(244, 201, 93, .85) 58% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: 2px; }
.p-lede { margin-top: 18px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 40rem; }
.p-lede a, .p-body a, .p-facts a, .kit p a, .faq a { color: var(--crust); font-weight: 650; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.p-lede a:hover, .p-body a:hover, .p-facts a:hover, .kit p a:hover, .faq a:hover { color: var(--burnt); }

/* Half a section space either side of the dashed rule: one section space between sections. */
.p-section { padding-block: calc(var(--space-section) / 2); border-top: 2.5px dashed rgba(122, 62, 29, .35); scroll-margin-top: 16px; }
.p-section:last-child { padding-bottom: 0; }
.p-section h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -0.04em; line-height: 1.02; }
.p-section h2 + .p-body { margin-top: 12px; }
.p-body { font-size: 1.0625rem; line-height: 1.6; max-width: 40rem; color: var(--ink-soft); }

/* Press kits: download cards */
.kits { display: grid; gap: 22px; margin-top: 26px; }
.kit { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 5px 0 var(--ink); padding: var(--card-pad); }
.kit:nth-child(odd) { transform: rotate(-.4deg); } .kit:nth-child(even) { transform: rotate(.4deg); }
.kit h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.kit p { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.kit .btn { align-self: flex-start; margin-top: 6px; }
.kit-meta { display: inline-flex; align-self: flex-start; align-items: center; min-height: 28px; padding: 2px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--butter); font-size: .8125rem; font-weight: 700; }
.kit-link a { display: inline-flex; align-items: center; min-height: 44px; }

/* The fact sheet: a ruled card of terms and values */
.p-facts { margin: 26px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 5px 0 var(--ink); padding: 6px 20px; }
.p-facts dt, .p-facts dd { margin: 0; line-height: 1.55; }
.p-facts dt { padding-top: 14px; font-family: var(--hand); color: var(--burnt); font-size: 1.15rem; }
.p-facts dd { padding: 2px 0 14px; border-bottom: 1.5px dashed rgba(122, 62, 29, .3); font-size: 1rem; }
.p-facts dd:last-of-type { border-bottom: 0; }
.p-facts dd > a { display: inline-flex; align-items: center; min-height: 44px; }
.p-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.p-games b { font-weight: 800; }
.p-games span { color: var(--ink-soft); }

/* Support: a block per game, its contact links, then its questions */
.sp-mail { display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; font-size: 1.25rem; font-weight: 800; color: var(--crust); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.sp-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sp-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--card); box-shadow: 0 3px 0 var(--ink); text-decoration: none; font-weight: 700; }
.sp-toc a:hover { background: var(--butter); }
.sp-game { display: grid; gap: 26px; }
.sp-game .p-eyebrow { font-size: 1.2rem; }
.sp-game h2 { margin-top: 2px; }
.sp-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 18px; }
.sp-links .btn { margin-bottom: 8px; }
.sp-links a.plain { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--crust); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sp-links a.plain:hover { color: var(--burnt); }

/* FAQ accordions: a stack of index cards */
.faq { display: grid; gap: 12px; align-content: start; }
.faq details { background: var(--card); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 4px 0 var(--ink); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 16px 10px 18px; cursor: pointer; font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: var(--butter) no-repeat center / 14px 14px; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 12px 2.5px, 2.5px 12px; }
.faq details[open] summary::after { background-size: 12px 2.5px, 0 0; }
.faq details[open] summary { border-bottom: 1.5px dashed rgba(122, 62, 29, .35); }
.faq details > p { padding: 12px 18px 0; line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.faq details > p:last-child { padding-bottom: 16px; }

/* Link cards (help, privacy, other pages) */
.p-cards { display: grid; gap: 18px; margin-top: 24px; }
.p-cards a { display: block; text-decoration: none; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 5px 0 var(--ink); padding: var(--card-pad); transition: transform .35s var(--spring), background-color .2s ease; }
.p-cards a:hover { background: #FFF6E2; transform: translateY(-2px); }
.p-cards h3 { font-size: 1.4rem; letter-spacing: -0.025em; }
.p-cards p { margin-top: 6px; color: var(--ink-soft); line-height: 1.55; }

/* The list of privacy policies */
.lg-list { margin-top: 26px; display: grid; gap: 14px; }
.lg-list a { display: grid; gap: 4px 28px; text-decoration: none; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 5px 0 var(--ink); padding: 16px 20px; transition: transform .35s var(--spring), background-color .2s ease; }
.lg-list a:hover { background: #FFF6E2; transform: translateY(-2px); }
.lg-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.025em; }
.lg-note { color: var(--ink-soft); line-height: 1.5; align-self: center; }

/* Long-form legal reading: a comfortable measure, clear headings, a summary card */
.legal-doc { max-width: calc(68ch + 2 * var(--gutter)); margin-inline: auto; padding-bottom: var(--space-section); font-size: 1.0625rem; line-height: 1.7; }
.legal-doc nav[aria-label="Breadcrumb"], .legal-doc > .back { margin-top: clamp(16px, 3vw, 32px); }
.legal-doc .back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--crust); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal-doc .eyebrow { margin-top: 18px; font-family: var(--hand); color: var(--burnt); font-size: 1.35rem; line-height: 1.1; transform: rotate(-2deg); transform-origin: 0 50%; }
.legal-doc h1 { font-size: clamp(2.2rem, 6.5vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; margin-top: 6px; }
.legal-doc .updated { margin-top: 10px; font-weight: 650; color: var(--muted); }
.legal-doc h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -0.025em; line-height: 1.15; margin: 2em 0 .4em; scroll-margin-top: 16px; }
.legal-doc p { margin: .75em 0; }
.legal-doc ul { list-style: disc; padding-left: 1.4em; margin: .75em 0; }
.legal-doc li { margin: .4em 0; }
.legal-doc li::marker { color: var(--burnt); }
.legal-doc a { color: var(--crust); font-weight: 650; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--burnt); }
.legal-doc strong { font-weight: 800; }
.legal-doc .muted { color: var(--ink-soft); }
.legal-doc .short { margin: 28px 0 0; padding: var(--card-pad); background: var(--butter); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); }
.legal-doc .short > :first-child { margin-top: 0; }
.legal-doc .short h2 { margin-top: 0; }
.legal-doc .short ul { margin-bottom: 0; }
.legal-doc details { margin: 1em 0; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; }
.legal-doc details > summary { min-height: 48px; display: flex; align-items: center; padding: 8px 16px; cursor: pointer; font-weight: 800; }
.legal-doc details > :not(summary) { padding-inline: 16px; }
/* The policy's own bottom space is the footer gap: its last paragraph adds none, and a <main> inside it adds none. */
.legal-doc main { padding-bottom: 0; }
.legal-doc > :last-child, .legal-doc > main > :last-child, .legal-doc > section:last-child > :last-child, .legal-doc > main > section:last-child > :last-child { margin-bottom: 0; }
.legal-doc .foot { margin-top: 48px; padding-top: 18px; border-top: 2.5px dashed rgba(122, 62, 29, .4); color: var(--muted); font-size: .9375rem; }

/* 404: the slice that went in the bin */
.nf { display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: clamp(40px, 8vw, 96px) var(--space-section); }
.nf svg { width: 120px; height: auto; transform: rotate(-8deg); filter: drop-shadow(3px 4px 0 rgba(43, 29, 20, .3)); }
.nf .p-eyebrow { margin-top: 8px; }
.nf h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -0.045em; }
.nf p { max-width: 34rem; font-size: 1.125rem; }
.nf .btn { margin-top: 12px; }
.subscribed p { max-width: 32rem; }
.subscribed-next { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; margin-top: 14px; max-width: 40rem; }
.subscribed-next .btn { margin-top: 0; }
.subscribed-next .text-link { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 760px) {
  .kits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-facts { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); column-gap: 24px; padding: 6px 24px; }
  .p-facts dt { padding: 16px 0; border-bottom: 1.5px dashed rgba(122, 62, 29, .3); }
  .p-facts dd { padding: 16px 0; }
  .p-facts dt:last-of-type { border-bottom: 0; }
  .p-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-list a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding: 20px 24px; }
}
@media (min-width: 960px) {
  .sp-game { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 48px; align-items: start; }
}
@media (max-width: 480px) {
  .kit, .p-facts, .p-cards a, .lg-list a { box-shadow: 3px 4px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .p-cards a:hover, .lg-list a:hover { transform: none; }
}
