/* ==========================================================
   DoZo Games — support + legal pages
   Same cardboard-diorama language as the main site: a kraft frame,
   cut-paper hills, and the text printed on a sheet of cream card.
   ========================================================== */
:root {
  --cream: #fff6ec;
  --ink: #160f26;
  --muted: rgba(255, 246, 236, .74);
  --gold: #ffcf6b;
  --accent: #ff5d5d;
  --paper: #f5ead6;
  --paper-ink: #2a1d14;
  --paper-muted: #5e4a3a;
  --rust: #b4502e;
  --kraft: #c09062;
  --kraft-dk: #8f6438;
  --fw: clamp(8px, 1.1vw, 16px);
  --gutter: clamp(18px, 5vw, 80px);
  --f-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; background: #1d1530; color: var(--cream); font-family: var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

/* paper fibre + cardboard frame */
body::after { content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 1.1 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.shadowbox { position: fixed; inset: 0; z-index: 44; pointer-events: none;
  box-shadow: inset 0 0 0 var(--fw) var(--kraft), inset 0 0 0 calc(var(--fw) + 2px) var(--kraft-dk), inset 0 calc(var(--fw) + 6px) 22px -4px rgba(0, 0, 0, .55); }
.shadowbox::before { content: ""; position: absolute; inset: 0; padding: var(--fw);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 7px), linear-gradient(180deg, #cfa071, #b5844f);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* header */
.dochead { position: relative; z-index: 5; display: flex; align-items: center; gap: 20px; padding: calc(14px + var(--fw)) var(--gutter) 14px; }
.dochead__logo img { width: 96px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.dochead__nav { margin-left: auto; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--paper); box-shadow: 0 2px 0 #cdb894, 0 8px 16px -6px rgba(0, 0, 0, .5); }
.dochead__nav a { color: var(--paper-ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 13px; border-radius: 99px; }
.dochead__nav a:hover, .dochead__nav a[aria-current="page"] { background: var(--paper-ink); color: var(--paper); }
.dochead__back { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--gold); white-space: nowrap; }
.dochead__back:hover { text-decoration: underline; }

/* intro with cut-paper hills behind it */
.docmain { position: relative; padding: 30px var(--gutter) 80px; }
.hills { position: absolute; left: 0; right: 0; top: -120px; height: 520px; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='s'%3E%3CfeDropShadow dx='0' dy='3' stdDeviation='5' flood-color='%23000' flood-opacity='.45'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23s)'%3E%3Cpath d='M0 220 C150 150 260 200 380 160 S640 90 760 150 1010 120 1200 170 V400 H0Z' fill='%233b2a6b'/%3E%3Cpath d='M0 270 C120 230 240 260 360 230 S600 190 720 240 980 210 1200 250 V400 H0Z' fill='%232c2054'/%3E%3Cpath d='M0 320 C160 290 300 320 450 300 S760 270 900 310 1100 290 1200 305 V400 H0Z' fill='%231d1530'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% 100% no-repeat,
    linear-gradient(180deg, #7a4f98 0%, #4b3378 45%, #1d1530 100%); }
.docintro { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 40px; padding-top: 30px; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--gold); margin: 0 0 16px; }
.kicker i { width: 22px; height: 1px; background: currentColor; }
.docintro h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 7vw, 104px); line-height: .92; letter-spacing: -.04em; margin: 0 0 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, .16), 0 5px 0 rgba(0, 0, 0, .1), 0 12px 22px rgba(0, 0, 0, .28); }
.docintro h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 52ch; margin: 0; }
.date { color: var(--muted); margin: 18px 0 0; }

/* sheet of card */
.docgrid { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.doc--support .docgrid, .doc--accessibility .docgrid { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.sheet { background: var(--paper); color: var(--paper-ink); border-radius: 18px; padding: clamp(24px, 4vw, 56px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 #cdb894, 0 30px 50px -20px rgba(0, 0, 0, .7); font-size: 16.5px; line-height: 1.7; }
.sheet > :first-child { margin-top: 0; }
.sheet h2 { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; line-height: 1.15; margin: 2.1em 0 .6em; padding-top: .9em; border-top: 2px dashed rgba(42, 29, 20, .14); }
.sheet h2:first-child, .sheet .contactcard + h2 { border-top: 0; padding-top: 0; }
.sheet h3 { font-size: 17px; margin: 1.5em 0 .4em; }
.sheet p { margin: 0 0 1em; color: var(--paper-muted); }
.sheet strong { color: var(--paper-ink); }
.sheet ul { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 8px; }
.sheet li { position: relative; padding-left: 26px; color: var(--paper-muted); }
.sheet li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--rust); transform: rotate(45deg); }
.sheet a { color: var(--rust); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sheet a:hover { color: var(--paper-ink); }

/* table of contents */
.toc { position: sticky; top: calc(var(--fw) + 20px); background: rgba(0, 0, 0, .22); border-radius: 16px; padding: 18px 18px 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.toc .mono { color: var(--gold); margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--cream); text-decoration: underline; }

/* support: contact card, form, faq */
.contactcard { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--paper-ink); color: var(--paper); border-radius: 16px; padding: 26px 28px; margin-bottom: 8px; box-shadow: 0 3px 0 #120c08, 0 18px 30px -14px rgba(0, 0, 0, .6); }
.contactcard .mono { color: var(--gold); margin: 0 0 6px; }
.contactcard h2 { margin: 0 0 6px; padding: 0; border: 0; color: var(--paper); }
.contactcard p:not(.mono) { color: rgba(245, 234, 214, .78); margin: 0; max-width: 46ch; }
.mailbtn { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); color: var(--paper-ink) !important; text-decoration: none; font-weight: 800; font-size: 17px; padding: 14px 20px; border-radius: 99px; box-shadow: 0 4px 0 #c6ad84; transition: transform .2s, box-shadow .2s, background .2s; }
.mailbtn:hover { transform: translateY(-2px); background: #ffe3a3; box-shadow: 0 6px 0 #d4a95e; }
.mailbtn__icon { font-size: 20px; }

.supportform { display: grid; gap: 14px; }
.supportform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.supportform label { display: grid; gap: 6px; min-width: 0; }
.supportform label .mono { font-size: 10px; color: var(--paper-muted); }
.supportform input, .supportform select, .supportform textarea { font: 500 15px var(--f-body); color: var(--paper-ink); background: #fffaf1; border: 0; border-radius: 12px; padding: 12px 14px; width: 100%; box-shadow: inset 0 2px 3px rgba(80, 50, 20, .18), inset 0 0 0 1px rgba(42, 29, 20, .12); }
.supportform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper-muted) 50%), linear-gradient(135deg, var(--paper-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.supportform textarea { resize: vertical; min-height: 120px; }
.supportform input:focus, .supportform select:focus, .supportform textarea:focus { outline: none; box-shadow: inset 0 2px 3px rgba(80, 50, 20, .18), 0 0 0 2px var(--rust); }
.supportform .is-bad { box-shadow: inset 0 0 0 2px var(--accent); }
.supportform .fine { font-size: 13px; margin: 0; }
.btn { justify-self: start; font: 800 15px var(--f-body); color: var(--paper); background: var(--paper-ink); border: 0; border-radius: 99px; padding: 14px 24px; cursor: pointer; box-shadow: 0 4px 0 #000, 0 12px 18px -8px rgba(0, 0, 0, .5); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--rust); box-shadow: 0 6px 0 #6e2c16; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.form__msg { margin: 0; min-height: 1.3em; font-weight: 700; color: #2f7a43; }
.form__msg.is-err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.faq { display: grid; gap: 10px; margin-bottom: 1.4em; }
.faq details { background: #fffaf1; border-radius: 14px; box-shadow: 0 2px 0 #e1d2b6; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 800; color: var(--paper-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); color: var(--rust); font-size: 20px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* footer */
.docfoot { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 40px var(--gutter) calc(40px + var(--fw)); background: #140e22; color: var(--muted); }
.docfoot p { margin: 0; }
.docfoot a { color: var(--cream); }
.docfoot nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.docfoot nav a { color: var(--muted); text-decoration: none; }
.docfoot nav a:hover { color: var(--cream); }

@media (max-width: 900px) {
  :root { --fw: 6px; }
  .dochead { flex-wrap: wrap; gap: 12px; }
  .dochead__nav { order: 3; margin: 0; width: 100%; justify-content: space-between; overflow-x: auto; }
  .dochead__nav a { padding: 7px 10px; font-size: 13px; }
  .dochead__back { margin-left: auto; }
  .docgrid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 600px) {
  .supportform .row { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .sheet { font-size: 15.5px; }
  .mailbtn { font-size: 15px; }
}

@media (max-width: 900px), (pointer: coarse) { .supportform input, .supportform select, .supportform textarea { font-size: 16px; } }
.docintro h1 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 380px) {
  .docintro h1 { font-size: clamp(32px, 11vw, 44px); }
  .mailbtn { font-size: 14px; padding: 12px 14px; max-width: 100%; }
  .contactcard { padding: 20px; }
  .sheet { padding: 20px 16px; }
  .dochead__nav a { padding: 6px 8px; font-size: 12px; }
}
