/* playnokey.com — shared look for the privacy policy and account deletion pages (the landing has landing.css).
   Colours and font match the game (ui/kit.gd) and the invite page (server/web/join.html). */
:root {
  --ink: #241a4d; --cream: #f3f7ff; --edge: #a9bbec; --blue: #2eaaff; --blue-lo: #1452d4;
  --green: #5ccf2e; --green-lo: #2c8a17; --orange: #ffa21f; --orange-lo: #d4520c;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; padding: 28px 16px 72px; color: var(--ink);
  background: radial-gradient(120% 70% at 50% 0%, #c9e6ff 0%, transparent 60%),
    linear-gradient(180deg, #6fb6ff 0%, #a477ff 100%) fixed;
  font: 600 17px/1.55 "Baloo 2", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { width: 100%; max-width: 720px; margin: 0 auto; }
a { color: var(--blue-lo); }

/* ─── Landing ─── */
.hero { text-align: center; }
.hero .logo {
  width: 100%; max-width: 440px; display: block; margin: 6px auto 0;
  filter: drop-shadow(0 6px 0 #0002);
}
.hero .row { position: relative; max-width: 460px; margin: 0 auto; }
.hero .wave {
  position: absolute; width: 130px; right: calc(100% + 20px); bottom: 10px;
  transform-origin: 50% 100%; animation: hop 1.6s ease-in-out infinite;
}
.tagline { font-size: 21px; margin: 4px 0 20px; }
.card {
  position: relative; background: var(--cream); border: 4px solid var(--ink);
  border-radius: 28px; padding: 20px; box-shadow: 0 8px 0 var(--ink);
}
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 360px; margin: 0 auto; padding: 9px 14px;
  border: 3px solid var(--ink); border-radius: 999px; color: #fff; text-decoration: none;
  font: 800 18px "Baloo 2", sans-serif; text-shadow: 0 2px 0 #0003; transition: transform .08s;
}
.btn:active { transform: translateY(3px); }
.btn.store { background: var(--green); box-shadow: 0 5px 0 var(--green-lo); }
.btn svg { width: 21px; height: 21px; flex: none; }
.foot { margin: 26px 0 0; font-size: 15px; opacity: .85; }
.foot a { color: var(--ink); }

/* ─── Policy / document pages ─── */
.lang { display: flex; gap: 8px; justify-content: flex-end; margin: 0 0 14px; }
.lang button {
  border: 3px solid var(--ink); background: var(--cream); color: var(--ink);
  border-radius: 999px; padding: 4px 16px; font: 800 15px "Baloo 2", sans-serif; cursor: pointer;
}
.lang button.on { background: var(--ink); color: var(--cream); }
.doc[hidden] { display: none; }
.doc {
  background: var(--cream); border: 4px solid var(--ink); border-radius: 28px;
  padding: 26px 26px 30px; box-shadow: 0 8px 0 var(--ink);
}
.doc h1 { font-size: 30px; margin: 0 0 4px; }
.doc h2 { font-size: 21px; margin: 26px 0 6px; }
.doc p, .doc li { font-weight: 500; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 5px 0; }
.doc .updated { font-size: 14px; opacity: .65; margin: 0 0 6px; }
.doc .lede { font-size: 18px; }
.doc code {
  background: #e4ecff; border-radius: 6px; padding: 1px 6px;
  font: 600 15px ui-monospace, Menlo, monospace;
}
.top { margin: 22px 0 0; text-align: center; font-size: 15px; }

@keyframes hop {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
@media (max-width: 760px) {
  .hero .row { display: flex; flex-direction: column; }
  .hero .wave { order: 2; position: static; width: 110px; margin: 20px auto 0; }
  .doc { padding: 22px 18px 26px; }
}
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }
