/* The colors, radii and the raised "lip" of the game: Boxed orange, Pipeline blue, Knight Hop purple, Tally green */
:root {
  --boxed: #e8590c;
  --pipeline: #1c7ed6;
  --knight: #7048e8;
  --tally: #099268;
  --bg: #f4f4f4;
  --surface: #ffffff;
  --lip: #d9dbe3;
  --text: #232323;
  --muted: #5d6070;
  --line: #e6e8ef;
  --chip: #ececf2;
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='4' y='4' width='48' height='48' rx='12' fill='%23000' fill-opacity='.045'/%3E%3C/svg%3E");
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #1a1b1f;
    --lip: #2c2e36;
    --text: #f1f2f6;
    --muted: #a5a8b8;
    --line: #2a2c35;
    --chip: #24262d;
    --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='4' y='4' width='48' height='48' rx='12' fill='%23fff' fill-opacity='.045'/%3E%3C/svg%3E");
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg) var(--grid);
  color: var(--text);
  font-family: "Google Sans", "Product Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 800px; margin: 0 auto; padding: 28px 16px 72px; }

/* Header: the four-square logo, the name, and the date as a pill */
header { text-align: center; margin: 12px 0 28px; }
.logo { display: inline-grid; grid-template-columns: repeat(2, 36px); gap: 6px; margin-bottom: 14px; }
.logo i { display: block; width: 36px; height: 36px; border-radius: 10px; }
.logo i:nth-child(1) { background: var(--boxed); }
.logo i:nth-child(2) { background: var(--pipeline); }
.logo i:nth-child(3) { background: var(--knight); }
.logo i:nth-child(4) { background: var(--tally); }
h1 { font-size: clamp(2.2rem, 7vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.subtitle { font-size: 1.15rem; font-weight: 700; color: var(--muted); margin: 6px 0 14px; }
.pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--chip);
  color: var(--muted); font-size: .9rem; font-weight: 600;
}

/* A raised surface: a solid face and a darker lower edge, like the cards of the game */
.surface {
  background: var(--surface); border-radius: var(--radius); padding: 20px 22px 22px;
  margin: 0 0 22px; box-shadow: 0 6px 0 var(--lip);
}
.surface > :last-child { margin-bottom: 0; }

.intro {
  background: var(--boxed); color: #fff; box-shadow: 0 6px 0 #a63f08; border-radius: var(--radius);
  padding: 22px 24px 24px; margin: 0 0 28px;
}
.intro p, .intro li { color: #fff; }
.intro strong { font-weight: 800; }
.intro .big { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; }
.intro ul { margin: 8px 0 12px; }
.intro li::marker { color: rgba(255, 255, 255, .8); }

/* Contents: round numbered chips that jump to a section */
nav { margin: 0 0 30px; }
nav h2 { font-size: 1rem; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600;
  box-shadow: 0 3px 0 var(--lip);
}
nav a b {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff;
  font-size: .8rem; font-weight: 800; background: var(--c, var(--boxed));
}
nav a:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--lip); }
nav li:nth-child(4n+1) a { --c: var(--boxed); }
nav li:nth-child(4n+2) a { --c: var(--pipeline); }
nav li:nth-child(4n+3) a { --c: var(--knight); }
nav li:nth-child(4n+4) a { --c: var(--tally); }

/* Sections: a number badge in the accent of one of the four categories */
section { counter-increment: sec; }
section h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; margin: 0 0 10px; line-height: 1.25; }
section h2::before {
  content: counter(sec); flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 12px; color: #fff; font-size: 1.05rem; font-weight: 800; background: var(--c, var(--boxed));
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}
section:nth-of-type(4n+1) { --c: var(--boxed); }
section:nth-of-type(4n+2) { --c: var(--pipeline); }
section:nth-of-type(4n+3) { --c: var(--knight); }
section:nth-of-type(4n+4) { --c: var(--tally); }
h3 { font-size: 1.02rem; font-weight: 800; margin: 20px 0 4px; color: var(--c, var(--boxed)); }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 1.3rem; }
li { margin-bottom: 6px; }
li::marker { color: var(--c, var(--boxed)); }
a { color: var(--pipeline); font-weight: 600; }
strong { font-weight: 700; }
.meta { color: var(--muted); }

/* Table of services */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 2px solid var(--line); margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; }
th { background: var(--chip); color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
td { border-top: 1px solid var(--line); }

.button {
  display: inline-block; margin-top: 4px; padding: 12px 22px; border-radius: 16px; background: var(--boxed); color: #fff;
  font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 #a63f08;
}
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 #a63f08; }

footer { margin-top: 36px; color: var(--muted); font-size: .88rem; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .surface, .intro { animation: rise .45s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
}
@media (max-width: 480px) {
  .surface { padding: 16px 16px 18px; }
  section h2 { font-size: 1.15rem; }
}

/* Links between the pages of the site, in the header and the footer */
.sitelinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.sitelinks a {
  padding: 6px 16px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none;
  font-size: .88rem; font-weight: 700; box-shadow: 0 3px 0 var(--lip);
}
.sitelinks a:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--lip); }
.sitelinks a[aria-current="page"] { background: var(--boxed); color: #fff; box-shadow: 0 3px 0 #a63f08; }
footer a { color: var(--muted); }

/* Home page: the two documents as big raised cards */
.cards { display: grid; gap: 22px; margin: 0 0 22px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); color: var(--text);
  text-decoration: none; box-shadow: 0 6px 0 var(--lip);
}
.card:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--lip); }
.card h2 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; color: var(--c, var(--boxed)); }
.card p { margin: 0 0 10px; color: var(--muted); }
.card span { font-weight: 800; color: var(--c, var(--boxed)); }
.card.privacy { --c: var(--pipeline); }
.card.terms { --c: var(--knight); }

/* Small labels under the intro of the home page */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.tags span {
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; font-size: .82rem; font-weight: 700;
}
