/* Privacy policy / terms pages (TR + EN), in the game's look: dark grey, green accents, Teko headings. */
:root {
  --bg: #181716;
  --panel: #201f1d;
  --panel-2: #262422;
  --ink: #e3dfda;
  --muted: #a59c8c;
  --green: #6eea79;
  --green-dim: #6eea7926;
  --line: #3a3835;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 320px at 50% -60px, #6eea7922, transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 500 16px/1.7 'Barlow Semi Condensed', sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}

/* top bar */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #1c1b1aee;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 22px/1 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img {
  width: 30px;
  height: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
nav a {
  padding: 6px 12px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
nav a:hover {
  color: var(--ink);
}
nav a[aria-current='page'] {
  background: var(--green-dim);
  color: var(--green);
  box-shadow: inset 0 0 0 1px #6eea7944;
}
nav a.lang {
  border-left: 1px solid var(--line);
  border-radius: 0 7px 7px 0;
  margin-left: 2px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* page heading */
main {
  padding: 34px 0 64px;
}
h1 {
  margin: 0 0 10px;
  font: 600 clamp(32px, 6vw, 46px)/1.02 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.01em;
}
.updated {
  display: inline-block;
  margin: 0 0 22px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}
main > p:first-of-type:not(.updated),
.updated + p {
  color: #cfc9c0;
}

/* table of contents: numbered tiles */
.box {
  margin: 18px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.toc > b {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
}
.toc li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}
.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  color: var(--green);
  font: 600 16px/1 'Barlow Semi Condensed', sans-serif;
}
.toc li a:hover {
  border-color: #6eea7944;
  background: var(--green-dim);
}

/* sections */
h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 600 28px/1.1 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.01em;
}
h2::before {
  content: '';
  flex: none;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 10px #6eea7966;
}
h3 {
  margin: 20px 0 4px;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
}
p {
  margin: 0 0 12px;
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin: 4px 0;
}
li::marker {
  color: var(--green);
}
b,
strong {
  color: #f1ede7;
}

/* tables */
.table-scroll {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
td:first-child {
  color: #f1ede7;
  font-weight: 600;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  background: #1c1b1a;
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}
footer a {
  color: var(--ink);
  text-decoration: none;
}
footer a:hover {
  color: var(--green);
}

@media (max-width: 560px) {
  header .wrap {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 10px;
    gap: 8px;
  }
  nav a {
    padding: 6px 9px;
    font-size: 13px;
  }
  main {
    padding-top: 24px;
  }
  .toc ol {
    grid-template-columns: 1fr;
  }
  h2 {
    font-size: 25px;
  }
}
