/*
 * The privacy page's own stylesheet.
 *
 * It is a separate file rather than a <style> block because the site's CSP
 * allows no inline style: a policy that has to be relaxed for its own privacy
 * page is not much of a policy. The palette is the game's, kept here by hand —
 * this page is served straight out of `public/` and never touches the bundle,
 * so it stays readable even when the game itself fails to build.
 */
:root {
  color-scheme: dark;
  --felt-deep: #08351f;
  --felt-shadow: #062719;
  --ink: #132b22;
  --ivory: #f4e6c2;
  --ivory-mid: #d8c99f;
  --ivory-edge: #8b7d53;
  --gold: #d6ab52;
  --cinnabar: #c9603b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 48px 20px 96px;
  background: var(--felt-shadow);
  color: var(--ivory);
  font: 16px/1.68 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 46rem;
  margin: 0 auto;
}

header {
  border-bottom: 1px solid color-mix(in srgb, var(--ivory-edge) 45%, transparent);
  padding-bottom: 24px;
  margin-bottom: 8px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.25;
}

.updated {
  margin: 0;
  color: var(--ivory-mid);
  font-size: 14px;
}

h2 {
  margin: 44px 0 12px;
  font-size: 19px;
  color: var(--ivory);
}

h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--gold);
}

h3 {
  margin: 26px 0 8px;
  font-size: 16px;
  color: var(--gold);
}

p,
li {
  color: color-mix(in srgb, var(--ivory) 92%, transparent);
}

ul {
  padding-left: 1.25em;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--ivory-edge);
}

strong {
  color: var(--ivory);
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--ivory-edge) 35%, transparent);
  font-size: 0.9em;
  letter-spacing: 0.01em;
  color: var(--ivory-mid);
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ivory-lit, #fff4d3);
}

/* The one thing on the page that is a claim about the future rather than a
   description of the present, so it is marked as such. */
.pending {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px dashed color-mix(in srgb, var(--cinnabar) 65%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--felt-deep) 70%, transparent);
}

.pending p:last-child {
  margin-bottom: 0;
}

.card {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--ivory-edge) 40%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--felt-deep) 55%, transparent);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--ivory-edge) 28%, transparent);
}

th {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.scroller {
  overflow-x: auto;
}

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--ivory-edge) 45%, transparent);
  color: var(--ivory-mid);
  font-size: 14px;
}

@media (max-width: 520px) {
  body {
    padding: 32px 16px 72px;
    font-size: 15px;
  }
}
