/* Shared by /privacy and /support. Static pages outside the game bundle,
   using the game's light and dark palette and the system font, so they
   load nothing from third parties. */
:root {
  color-scheme: light dark;
  --page: #f5f3eb;
  --surface: #fffdf6;
  --text: #303e34;
  --strong: #354a3b;
  --muted: #6c7c62;
  --border: #d9dfcd;
  --link: #234d49;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "PingFang HK", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #171c1a;
    --surface: #242c28;
    --text: #e7eadf;
    --strong: #f2f2e9;
    --muted: #aeb7aa;
    --border: #39443d;
    --link: #8fc7bd;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) 20px
    max(48px, env(safe-area-inset-bottom));
}
main {
  max-width: 720px;
  margin: 0 auto;
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
header img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
header a {
  flex: none;
  color: var(--strong);
  font-weight: 650;
  font-size: 1.15rem;
  text-decoration: none;
}
/* One button for every language: a native <select> styled as a pill, so
   iPhone shows its own picker. legal.js reveals it and keeps it in sync;
   without JavaScript all languages show and the picker stays hidden. */
.language-picker {
  position: relative;
  display: inline-flex;
  /* May shrink on a narrow phone rather than push past the edge. */
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--strong);
}
html:not([data-locale]) .language-picker {
  display: none;
}
.language-picker:focus-within {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.language-picker svg {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.language-picker .globe {
  left: 12px;
}
.language-picker .chevron {
  right: 10px;
  width: 12px;
  height: 12px;
}
/* As wide as the chosen language where field-sizing works; elsewhere as
   wide as the longest name ("Português (Brasil)"), but never wider than
   the header leaves. */
.language-picker select {
  field-sizing: content;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  /* 16px keeps iOS Safari from zooming in when the picker opens. */
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  padding: 7px 30px 7px 36px;
  cursor: pointer;
}
.language-picker select:focus {
  outline: none;
}
section.locale {
  margin-top: 24px;
  padding: 4px 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
h1 {
  color: var(--strong);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 20px 0 4px;
}
h2 {
  color: var(--strong);
  font-size: 1.1rem;
  margin: 24px 0 4px;
}
.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
}
a {
  color: var(--link);
}
ul {
  padding-left: 1.2em;
}
li {
  margin: 4px 0;
}
footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
footer a + a {
  margin-left: 16px;
}
footer .get-app {
  margin: 0 0 10px;
}
footer .get-app a {
  font-weight: 600;
}
@media (max-width: 480px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
  }
  section.locale {
    padding: 4px 16px 12px;
  }
  /* Room for "Português (Brasil)" beside the name on a 375px phone. */
  header {
    gap: 8px;
  }
  .language-picker .globe {
    left: 10px;
  }
  .language-picker .chevron {
    right: 8px;
  }
  .language-picker select {
    padding: 7px 24px 7px 32px;
  }
}
