/* Legal and business pages, in the same look as the home page: graphite, amber and Archivo. */

@font-face {
  font-family: 'Archivo';
  src: url('/site/fonts/Archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #111315;
  --surface: #1a1d21;
  --raised: #22262b;
  --border: #2d3238;
  --text: #eceae6;
  --muted: #aaa69e;
  --faint: #8a867e;
  --accent: #f0a830;
  --on-accent: #1a1204;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- header and footer */

.top,
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 700 19px/1 var(--display);
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 9px;
}

.brand:hover {
  text-decoration: none;
}

.lang {
  color: var(--muted);
  font-size: 15px;
}

.foot {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.foot-inner {
  flex-wrap: wrap;
  padding-top: 40px;
  padding-bottom: 48px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.foot nav a {
  color: var(--muted);
  font-size: 15px;
}

.foot-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  flex-basis: 100%;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 13px;
}

.foot-credit a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.foot-credit-k {
  margin-right: 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-credit-go {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.foot-credit a:hover .foot-credit-go,
.foot-credit a:focus-visible .foot-credit-go {
  transform: translate(2px, -2px);
}

/* ---------------------------------------------------------------- content */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The subtitle sits under the title in the pages that start with it. */
h1 + .meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

main {
  counter-reset: section;
}

h2 {
  counter-increment: section;
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font: 600 14px/1 var(--body);
  letter-spacing: 0.08em;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 14px;
}

/* The opening paragraph, right after the title and its subtitle. */
h1 + .meta + p,
h1 + p {
  margin-top: 28px;
  color: #d9d5ce;
  font-size: 19px;
  line-height: 1.55;
}

ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
}

li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

strong {
  font-weight: 600;
}

/* "In short" box at the top of the privacy policy. */
.summary-title {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary {
  margin: 28px 0 8px;
  padding: 22px 24px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.summary li::before {
  width: 12px;
  height: 7px;
  border-radius: 0;
  background: none;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  top: 0.5em;
}

/* Business page: ways to appear, as rows with the name on the left, and contact buttons. */
.options {
  margin: 8px 0;
  border-top: 1px solid var(--border);
}

.option {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

/* The next section's own rule closes the list. */
.option:last-child {
  border-bottom: 0;
}

.option h3 {
  margin: 0;
  font-size: 19px;
}

.option p {
  margin: 0;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 14px;
  color: var(--on-accent);
  font-weight: 600;
  background: var(--accent);
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.button.secondary {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
}

main.with-toc {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 64px;
  justify-content: center;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 8px;
}

.toc-title {
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin: 0;
  padding: 0;
}

.toc li::before {
  content: none;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--text);
  text-decoration: none;
}

h2[id] {
  scroll-margin-top: 24px;
}

@media (max-width: 1000px) {
  main.with-toc {
    display: block;
    max-width: 720px;
  }

  /* On narrow screens the index would sit above the title; the page reads fine without it. */
  .toc {
    display: none;
  }
}

@media (max-width: 560px) {
  .option {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body {
    font-size: 16px;
  }

  h1 + .meta + p,
  h1 + p {
    font-size: 17px;
  }

  .button {
    flex: 1 1 100%;
    text-align: center;
  }
}
