/* Shared styles for Pourdle's text pages (privacy, terms, feedback) */

/* Space Grotesk, self-hosted (SIL Open Font License, see fonts/OFL.txt) */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { --bg: #eadfc9; --ink: #111; --paper: #fffdf8; --muted: #5f584b; --line: #d6c9ad; --water: #3a8dde; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
header { height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 23px; letter-spacing: -0.03em; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink);
  transition: transform .06s, box-shadow .06s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--water); color: #fff; }
.btn-big { height: 54px; font-size: 17px; width: 100%; }

.doc { padding: 34px 0 10px; line-height: 1.6; font-size: 16px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 20px; letter-spacing: -0.02em; margin: 30px 0 6px; }
.doc p, .doc li { color: var(--text, #2f2c26); }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc .card { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); padding: 16px 18px; margin: 18px 0; }
.doc .card p { margin: 0; }

/* Feedback form */
.form { display: grid; gap: 16px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form .hint { font-weight: 500; color: var(--muted); font-size: 13px; }
.form input[type="email"], .form textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; outline: none;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 3px rgba(58,141,222,.35); }
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.types input { position: absolute; opacity: 0; pointer-events: none; }
.types span {
  display: inline-block; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px;
  border: 2px solid var(--ink); background: var(--paper);
}
.types input:checked + span { background: var(--ink); color: var(--bg); }
.types input:focus-visible + span { box-shadow: 0 0 0 3px rgba(58,141,222,.45); }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.sent { background: var(--sent, #e2f3e8); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; font-weight: 600; }

footer { margin-top: 40px; padding-top: 16px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--muted); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 8px; }
footer a { font-weight: 600; color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* FAQ: question cards that open on tap */
.faq { display: grid; gap: 10px; margin: 10px 0 8px; }
.faq details { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; font-weight: 700; font-size: 16px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--ink); font-size: 18px; line-height: 1; font-weight: 700; transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ok, #f0b52a); color: #111; }
.faq summary:focus-visible { outline: 3px solid rgba(58,141,222,.5); outline-offset: 2px; border-radius: 12px; }
.faq details p { margin: 0; padding: 0 16px 15px; }

/* Night mode (chosen in the game's Settings) */
html[data-theme="night"] {
  --bg: #1c1915; --ink: #f1e7d3; --paper: #2a251e; --muted: #b2a58d; --line: #4a4135; --text: #ddd2bd; --sent: #1f3a2a;
  color-scheme: dark;
}
