/* Shared by the landing, support and privacy pages.
   The palette mirrors Views/Components/Theme.swift in the app. */

:root {
  --cream: #fff6e9;
  --peach: #ffe3d0;
  --lilac: #ede6ff;
  --ink: #2e2a5b;
  --ink-soft: #6b6690;
  --grape: #7b6cf6;
  --mint: #3fc7a8;
  --coral: #ff7a6b;
  --sunny: #ffc94d;
  --card: #ffffff;
  --line: #e7e1f5;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--peach) 45%, var(--lilac) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Hero */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 36px;
  text-align: center;
}

.hero img {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(46, 42, 91, 0.22);
}

.hero h1 {
  margin: 22px 0 8px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 18px;
}

/* Content */

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

section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(46, 42, 91, 0.07);
}

section h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
}

section h3 {
  margin: 22px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

section p { margin: 0 0 12px; }
section p:last-child, section ul:last-child, section ol:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 12px; padding-inline-start: 1.3em; }
li { margin-bottom: 7px; }

a { color: var(--grape); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--coral); }

strong { font-weight: 700; }

.lede {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 18px;
}

/* Steps, mirroring the game's tile look */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }

.steps li {
  position: relative;
  padding-inline-start: 44px;
  margin-bottom: 14px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grape);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}

/* A small crossword, drawn as tiles. The page is right-to-left, so the grid
   fills from the right like the game's board. */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 5px;
  margin: 6px 0 16px;
  font-weight: 800;
}

.mini-grid span,
.mini-grid i {
  height: 38px;
}

.mini-grid span {
  display: grid;
  place-items: center;
  background: var(--mint);
  color: #fff;
  font-size: 19px;
  border-radius: 9px;
}

/* Data table on the privacy page */

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 4px 0 6px;
}

.data th, .data td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: start;
  vertical-align: top;
}

.data th { font-weight: 700; color: var(--ink); }
.data td { color: var(--ink-soft); }

.table-scroll { overflow-x: auto; }

/* Footer */

footer {
  max-width: 720px;
  margin: 30px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

footer a { margin: 0 8px; }

@media (max-width: 520px) {
  body { font-size: 16px; padding: 0 14px 56px; }
  .hero { padding: 40px 0 26px; }
  .hero h1 { font-size: 28px; }
  section { padding: 20px 18px; border-radius: 18px; }
}
