/* Mahjong Winds — static site (privacy, terms, landing).
   Same felt-and-brass palette as the game so the pages feel like the product,
   not a legal appendix bolted on. No build step, no fonts to fetch. */

:root {
  --felt: #0d4a37;
  --felt-dk: #0a3a2b;
  --panel: #0e3123;
  --brass: #c9a24b;
  --gold: #f0d68a;
  --cream: #f5f0dc;
  --muted: #9fc9b0;
  --jade: #69d6ad;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #081d14;
  color: var(--cream);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 0 20px 64px;
}

.wrap { max-width: 720px; margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 18px;
  flex-wrap: wrap;
}

.logo {
  width: 40px; height: 52px; border-radius: 7px;
  background: linear-gradient(180deg, #faf4e3, #f2e9d2 55%, #dfd2b2);
  box-shadow: 0 4px 0 #b9a77f, 0 8px 16px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 900; color: #a4262e;
  transform: rotate(-5deg);
  flex: none;
}

header .name { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
header nav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
header nav a { color: var(--brass); font-size: 14px; font-weight: 600; }

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1 { font-size: 27px; font-weight: 800; margin: 8px 0 4px; text-wrap: balance; }
h2 {
  font-size: 17px; font-weight: 800; color: var(--gold);
  margin: 28px 0 6px; text-wrap: balance;
}
p, li { color: var(--cream); }
.lede { color: var(--muted); font-size: 15.5px; }
.updated { color: var(--muted); font-size: 13px; margin: 0 0 6px; }

ul { padding-left: 20px; }
li { margin: 5px 0; }

/* The point of the whole document: what we do NOT take. */
.callout {
  background: linear-gradient(180deg, #10382a, var(--panel));
  border: 1px solid rgba(201,162,75,.4);
  border-left: 3px solid var(--brass);
  border-radius: 10px;
  padding: 13px 16px;
  margin: 16px 0;
}
.callout.good { border-left-color: var(--jade); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.scroll { overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(201,162,75,.22); vertical-align: top; }
th { color: var(--brass); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }

/* hidden until lang.js proves it can do anything — see the .js rules below */
.langbar { gap: 6px; margin: 14px 0 0; }
.langbar button {
  background: rgba(4,18,12,.5); color: var(--muted);
  border: 1px solid rgba(201,162,75,.35); border-radius: 8px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.langbar button[aria-pressed="true"] { background: var(--brass); color: #241a06; }

footer {
  margin-top: 44px; padding-top: 18px;
  border-top: 1px solid rgba(201,162,75,.25);
  color: var(--muted); font-size: 13.5px;
}

/* Progressive enhancement: with no JavaScript BOTH language sections show,
   which is correct-but-long rather than a blank page. `js` is set by lang.js
   the moment it runs, and only then does one-at-a-time kick in. A privacy
   policy that renders nothing without JS is a policy Google cannot read. */
.js section[lang] { display: none; }
.js section[lang].on { display: block; }
.langbar { display: none; }
.js .langbar { display: flex; }
