/* 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: #f7f3ea; --ink: #111; --paper: #fffdf8; --muted: #6d675b; --line: #e4dcc9; --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: #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: #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; }
