/* The privacy and terms pages: a parchment card under the sunrise sky, in the game's own colours and letters. Static, no script. */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/ui/fonts/fredoka-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/ui/fonts/nunito-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/ui/fonts/nunito-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/ui/fonts/nunito-latin-800-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --oak: #8a5a3b;
  --oak-dark: #5e3f2a;
  --oak-deep: #3e2a1c;
  --ink: #3a2a1c;
  --ink-soft: #6b5640;
  --gold: #e3a93a;
  --gold-deep: #b37d1c;
  --green: #5f9a4a;
  --red-deep: #8e2f25;
  --display: 'Fredoka', 'Trebuchet MS', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  background: #f4bd86;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.65 var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* the sky stays put while the card scrolls (a fixed layer, not background-attachment, which phones get wrong) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #4f98d6 0%, #86bde6 26%, #c8e0ee 50%, #f9e1b4 76%, #f4bd86 100%);
}

.page {
  width: min(780px, 100% - 32px);
  margin: 0 auto;
  padding: 22px 0 48px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0 26px;
  text-align: center;
}
.brand a.logo {
  font: 600 clamp(36px, 9vw, 56px) / 1 var(--display);
  letter-spacing: 0.02em;
  color: #fff6e6;
  text-decoration: none;
  text-shadow: 0 3px 0 #b37d1c, 0 6px 0 #6b432b, 0 10px 18px rgba(62, 42, 28, 0.35);
}
.brand nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font: 800 14px/1.2 var(--body);
}
.brand a.logo img { display: block; width: min(400px, 88vw); height: auto; }
.brand nav a {
  color: #4a2f19;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
}
.brand nav a:hover,
.brand nav a[aria-current='page'] {
  border-bottom-color: var(--gold-deep);
}

.card {
  position: relative;
  padding: clamp(20px, 4.5vw, 38px);
  background: linear-gradient(180deg, #fffaf0, #f6e8c8);
  border: 4px solid var(--oak);
  border-radius: 22px;
  box-shadow: 0 8px 0 var(--oak-dark), 0 26px 44px rgba(40, 22, 8, 0.38);
}
.card::before,
.card::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9b27a, #8a5a3b 70%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.card::before {
  left: 12px;
}
.card::after {
  right: 12px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--oak-deep);
}
h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 6.5vw, 38px);
  line-height: 1.1;
}
h2 {
  margin: 34px 0 10px;
  padding-top: 6px;
  font-size: clamp(21px, 4.6vw, 25px);
  line-height: 1.2;
  scroll-margin-top: 12px;
}
h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--gold);
}
h3 {
  margin: 0 0 4px;
  font-size: 18.5px;
  line-height: 1.25;
}
p {
  margin: 0 0 12px;
}
ul,
ol {
  margin: 0 0 12px;
  padding-left: 1.3em;
}
li {
  margin: 0 0 6px;
}
a {
  color: var(--red-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: #5e1d16;
}
a:focus-visible {
  outline: 3px solid rgba(227, 169, 58, 0.8);
  outline-offset: 2px;
  border-radius: 4px;
}
strong,
b {
  font-weight: 800;
  color: var(--oak-deep);
}

.meta {
  margin: 0 0 18px;
  font: 700 14px/1.4 var(--body);
  color: var(--ink-soft);
}
.short {
  margin: 0 0 8px;
  padding: 14px 16px;
  background: rgba(95, 154, 74, 0.13);
  border: 3px solid rgba(95, 154, 74, 0.4);
  border-radius: 16px;
}
.short h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 19px;
}
.short h2::after {
  display: none;
}
.short ul {
  margin: 0;
}
.short li:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 20px 0 0;
  padding: 12px 16px;
  background: rgba(138, 90, 59, 0.08);
  border-radius: 14px;
  font: 700 15px/1.5 var(--body);
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2 220px;
  column-gap: 28px;
}
.toc li {
  margin: 0;
  break-inside: avoid;
}

.item {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 3px solid rgba(138, 90, 59, 0.28);
  border-radius: 16px;
}
.item p {
  margin-bottom: 8px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 18px;
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
}
.facts div {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: 2px 12px;
}
.facts dt {
  font-weight: 800;
  color: var(--oak-dark);
}
.facts dd {
  margin: 0;
}

.contact {
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(227, 169, 58, 0.16);
  border: 3px solid rgba(227, 169, 58, 0.5);
  border-radius: 16px;
}
.contact p:last-child {
  margin-bottom: 0;
}

.foot {
  margin-top: 26px;
  text-align: center;
  font: 800 12px/1.5 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(74, 47, 25, 0.75);
}
.foot a {
  color: inherit;
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }
  .page {
    width: calc(100% - 24px);
    padding-top: 12px;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .item {
    padding: 12px 13px;
  }
}
@media print {
  body::before {
    display: none;
  }
  .card {
    box-shadow: none;
    border-color: #999;
  }
}
