@font-face {
  font-family: "Tektur";
  src: url("./fonts/Tektur-variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --ink: #0b0a08;
  --ink-raised: #14120d;
  --paper: #fff4cc;
  --paper-dim: rgb(255 244 204 / 0.82);
  --warning: #f3bd2c;
  --warning-light: #ffe27a;
  --rule: rgb(255 244 204 / 0.16);
  --display-font: "Tektur", "Arial Black", system-ui, sans-serif;
  --text-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper-dim);
  font: 400 1.0625rem / 1.6 var(--text-font);
  -webkit-text-size-adjust: 100%;
}

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem max(3rem, env(safe-area-inset-bottom));
}

.legal-header {
  padding-bottom: 1.25rem;
  border-bottom: 0.125rem solid var(--rule);
}

.legal-home {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--warning-light);
  font: 700 0.9rem / 1.2 var(--display-font);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.legal-home:hover,
.legal-home:focus-visible {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--paper);
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
}

h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: 1.35rem;
}

h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--warning-light);
}

.legal-meta {
  margin: 0;
  color: var(--paper-dim);
  font: 600 0.85rem / 1.2 var(--display-font);
}

.legal-lead {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 0.25rem solid var(--warning);
  background: var(--ink-raised);
}

/*
 * The one control on a legal page: the link to the deletion form.
 *
 * Square-cornered like the game's own buttons, and the only emphatic thing on these pages —
 * somebody who arrived here from a store listing came to DO something, and a paragraph link
 * buried in prose is how they end up writing an email instead.
 */
.legal-cta {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--warning);
  color: var(--ink);
  font: 700 1rem / 1.2 var(--display-font);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.legal-cta:hover,
.legal-cta:focus-visible {
  text-decoration: underline;
}

.legal-toc {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 0.0625rem solid var(--rule);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2;
  column-gap: 2rem;
}

.legal-toc li {
  break-inside: avoid;
  padding: 0.1rem 0;
}

@media (max-width: 36rem) {
  .legal-toc ol {
    columns: 1;
  }
}

p,
ul,
address {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

address {
  font-style: normal;
  padding: 0.75rem 1rem;
  background: var(--ink-raised);
  border-left: 0.25rem solid var(--rule);
}

strong {
  color: var(--paper);
  font-weight: 600;
}

a {
  color: var(--warning-light);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--warning);
}

section {
  scroll-margin-top: 1rem;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 0.125rem solid var(--rule);
  font: 600 0.78rem / 1.2 var(--display-font);
  color: var(--paper-dim);
}

.legal-footer a {
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  text-decoration: underline;
}
