/* The landing page. Colours are the game's (src/palette.ts), fonts are shared with the game in game/fonts/. */

@font-face {
  font-family: 'Figtree';
  font-weight: 400;
  font-display: swap;
  src: url('game/fonts/figtree-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 500;
  font-display: swap;
  src: url('game/fonts/figtree-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 600 700;
  font-display: swap;
  src: url('game/fonts/figtree-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-weight: 500 600;
  font-display: swap;
  src: url('game/fonts/geist-mono-latin-600-normal.woff2') format('woff2');
}

:root {
  --dark: #3d4550;
  --silver: #c1c3c2;
  --red: #df6165;
  --cyan: #11a6c5;
  --lime: #baba1b;
  --green: #2eae60;
  --text: #3d4550;
  --muted: #555d68;
  --caption: #6e7580;
  --ground: #f4f5f4;
  --line: #e3e5e4;
  --gutter: 80px;
  --section: 120px;
  --mono: ui-monospace, 'SF Mono', 'Geist Mono', monospace;
  --sans: Figtree, system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:hover {
  color: var(--cyan);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

strong {
  font-weight: 600;
}

.mono {
  font-family: var(--mono);
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--caption);
}

/* Buttons: flat bands like the game's menu. */

.button {
  height: 64px;
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid var(--dark);
  background: var(--dark);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.button:hover {
  background: #2c323b;
  border-color: #2c323b;
  color: #fff;
}

.button.small {
  height: 48px;
  padding: 0 24px;
  font-size: 17px;
}

.button.outline {
  background: transparent;
  color: var(--dark);
}

.button.outline:hover {
  background: var(--dark);
  color: #fff;
}

.button.light {
  background: #fff;
  border-color: #fff;
  color: var(--dark);
}

.button.light:hover {
  background: #e8eaec;
  border-color: #e8eaec;
}

.button.outline.light {
  background: transparent;
  color: #fff;
}

.button.outline.light:hover {
  background: #fff;
  color: var(--dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Nav */

.nav {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.nav nav {
  margin-left: auto;
  display: flex;
  gap: 32px;
  font-size: 17px;
  font-weight: 500;
}

.nav nav a {
  text-decoration: none;
}

/* Hero */

.hero {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 780px;
  display: grid;
  grid-template-columns: minmax(0, 760fr) minmax(0, 680fr);
}

.hero-text {
  padding: 96px 64px 80px max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(60px, 7.8vw, 112px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 .mono {
  letter-spacing: -0.06em;
}

.lead {
  max-width: 540px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
}

.hero .actions {
  margin-top: 8px;
}

.facts {
  font-size: 16px;
  color: var(--caption);
}

.facts span {
  margin: 0 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.tiles-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.tiles-bg span:nth-child(1) {
  background: var(--silver);
}
.tiles-bg span:nth-child(2) {
  background: var(--red);
}
.tiles-bg span:nth-child(3) {
  background: var(--cyan);
}
.tiles-bg span:nth-child(4) {
  background: var(--lime);
}

/* The phone shows a round like the game draws it. */

.phone {
  --scale: 1;
  position: relative;
  width: 320px;
  height: 660px;
  padding: 12px;
  background: #20252c;
  border-radius: 52px;
  box-shadow: 0 40px 80px rgb(20 24 30 / 0.35);
}

.screen {
  height: 100%;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-bar {
  height: 64px;
  padding: 26px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
}

.phone-bar .mono {
  font-size: 16px;
  color: #b8bcc2;
}

.phone-number {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-number .big {
  font-size: 92px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.phone-number .time {
  font-size: 13px;
  color: #b8bcc2;
}

/* A still of the game's timer (src/ui/timer.ts): stripes 1 : 4, gaps ¾ of a
   stripe's width, spent stripes a faded dot. */
.stripes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stripes i {
  width: 8px;
  height: 32px;
  border-radius: 4px;
  background: var(--dark);
}

.stripes i.spent {
  height: 8px;
  opacity: 0.2;
}

.phone-tiles {
  height: 296px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  font-size: 44px;
  color: #fff;
}

.phone-tiles span,
.closing-tiles span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-tiles span:nth-child(1) {
  background: linear-gradient(135deg, #c6c8c7, #bbbdbc);
}
.phone-tiles span:nth-child(2) {
  background: linear-gradient(135deg, #e56d71, #d9565a);
}
.phone-tiles span:nth-child(3) {
  background: linear-gradient(135deg, #0f9cbb, #1aaecb);
}
.phone-tiles span:nth-child(4) {
  background: linear-gradient(135deg, #c2c226, #b2b216);
}

/* How to play */

.how {
  padding-top: var(--section);
  padding-bottom: var(--section);
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
}

.section-head h2 {
  max-width: 720px;
}

.section-head p {
  max-width: 420px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step p,
.card p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.step-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.step-icon.red {
  background: var(--red);
  font-size: 36px;
}

.step-icon.dark {
  background: var(--dark);
}

.step-icon.light {
  background: #f2f3f2;
}

.tip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #f2f3f2;
  font-size: 17px;
  line-height: 1.5;
}

.tip-badge {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* The game's own timer (src/ui/timer.ts), drawn by main.ts. */

.timer {
  position: relative;
}

.stripe {
  position: absolute;
  background: var(--dark);
}

/* Two-column sections: scoring and multiplayer */

.split {
  padding-top: var(--section);
  padding-bottom: var(--section);
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 96px;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.split-text > p:not(.eyebrow) {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.scoring {
  background: var(--ground);
}

.split-text > p.classic {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: var(--text);
}

.switch {
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--silver);
  padding: 3px;
}

.switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}

/* The calculation, written out like the game's panel between rounds. */

.sum {
  background: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-family: var(--mono);
  font-weight: 600;
}

.sum-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: stretch;
}

.column {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.column-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--caption);
  margin-bottom: 6px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 22px;
}

.row dt {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--caption);
}

.row dd {
  margin: 0 0 0 auto;
  white-space: nowrap;
}

.row.total {
  /* Pushed to the bottom, so the totals of the base and the multiplier line up side by side. */
  border-top: 2px solid var(--dark);
  margin-top: auto;
  padding-top: 12px;
  font-size: 28px;
}

.row.subtotal {
  /* An intermediate result, ruled off like the totals but left in place. */
  border-top: 2px solid var(--dark);
  padding-top: 10px;
}

.points {
  margin-top: auto;
  border-top: 7px double var(--dark);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.points span:first-child {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  color: var(--caption);
}

.points .mono {
  font-size: clamp(56px, 6vw, 88px);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Multiplayer */

.multiplayer {
  background: var(--dark);
  color: #fff;
}

.multiplayer .split {
  gap: 80px;
}

.multiplayer .eyebrow {
  color: #bfc4cb;
}

.multiplayer .split-text > p:not(.eyebrow) {
  color: #d5d9de;
}

.features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.5;
  color: #d5d9de;
}

.features strong {
  display: block;
  font-size: 19px;
  color: #fff;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgb(255 255 255 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.match {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.match-head {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  color: #bfc4cb;
}

.match-head b {
  color: #fff;
  letter-spacing: 0.12em;
}

.boards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.board {
  min-height: 190px;
  background: #fff;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.board-head {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.board-head span:last-child {
  color: var(--caption);
  white-space: nowrap;
}

.board-number {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  letter-spacing: -0.04em;
}

.board-bar {
  height: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.board.solved .board-number {
  color: var(--green);
}
.board.solved .board-bar {
  background: var(--green);
}
.board.solved:not(.second) .board-head span:last-child {
  color: #2e8f55;
}
.board.failed .board-number,
.board.failed .board-head span:last-child {
  color: #c24a4e;
}
.board.failed .board-bar {
  background: var(--red);
}
.board.playing .board-bar i:nth-child(1) {
  background: var(--silver);
}
.board.playing .board-bar i:nth-child(2) {
  background: var(--red);
}
.board.playing .board-bar i:nth-child(3) {
  background: var(--cyan);
}
.board.playing .board-bar i:nth-child(4) {
  background: var(--lime);
}

.shares {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shares div {
  padding: 18px 20px;
  background: rgb(255 255 255 / 0.08);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
  color: #d5d9de;
}

.shares b {
  font-size: 28px;
  color: #fff;
}

/* Plays anywhere */

.anywhere {
  padding-top: var(--section);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.anywhere h2 {
  max-width: 820px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 4px solid;
}

.card.cyan {
  border-color: var(--cyan);
}
.card.red {
  border-color: var(--red);
}
.card.lime {
  border-color: var(--lime);
}

/* The app icon, rounded like on an iPhone's home screen. */
.app-icon {
  display: block;
  border-radius: 22.5%;
  box-shadow: 0 1px 2px rgb(20 24 30 / 0.12), 0 8px 24px rgb(20 24 30 / 0.12);
}

.home-icon {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
}

.keys {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.keys span {
  width: 40px;
  height: 40px;
  border: 2px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Story */

.story {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-top: var(--section);
  padding-top: 80px;
  padding-bottom: var(--section);
  border-top: 1px solid var(--line);
}

.story .year {
  font-size: clamp(64px, 8vw, 120px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--silver);
}

.story p {
  max-width: 640px;
  font-size: 24px;
  line-height: 1.5;
}

/* Closing call to action */

.closing {
  background: var(--dark);
  color: #fff;
  padding-top: 96px;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}

.closing-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 120px;
}

.closing-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.closing h2 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.closing-tiles {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  grid-template-rows: repeat(2, 120px);
  font-size: 40px;
}

.closing-tiles span:nth-child(1) {
  background: var(--silver);
}
.closing-tiles span:nth-child(2) {
  background: var(--red);
}
.closing-tiles span:nth-child(3) {
  background: var(--cyan);
}
.closing-tiles span:nth-child(4) {
  background: var(--lime);
}

.footer-bar {
  padding-top: 32px;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #bfc4cb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Tablets */

@media (max-width: 1100px) {
  :root {
    --gutter: 40px;
    --section: 96px;
  }

  .nav nav {
    display: none;
  }

  .nav .button {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 56px var(--gutter) 64px;
  }

  .hero-visual {
    min-height: 780px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* Phones */

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section: 72px;
  }

  .nav {
    height: 64px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 36px;
    height: auto;
  }

  .hero-text {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 20px;
  }

  .lead {
    font-size: 18px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    height: 56px;
    font-size: 18px;
  }

  .facts {
    font-size: 15px;
    text-align: center;
  }

  .facts span {
    margin: 0 4px;
  }

  .hero-visual {
    min-height: 0;
    padding: 36px 0;
  }

  .phone {
    width: 236px;
    height: 488px;
    padding: 9px;
    border-radius: 40px;
  }

  .screen {
    border-radius: 31px;
  }

  .phone-bar {
    height: 46px;
    padding: 18px 16px 0;
  }

  .phone-bar svg {
    width: 18px;
  }

  .phone-number .big {
    font-size: 68px;
    margin-bottom: 14px;
  }

  .phone-number .stripes {
    gap: 5px;
  }

  .phone-number .stripes i {
    width: 6px;
    height: 24px;
  }

  .phone-number .stripes i.spent {
    height: 6px;
  }

  .phone-tiles {
    height: 218px;
    font-size: 32px;
  }

  h3 {
    font-size: 22px;
  }

  .how {
    gap: 40px;
  }

  .section-head p,
  .split-text > p:not(.eyebrow),
  .step p,
  .card p {
    font-size: 16px;
  }

  .steps,
  .cards {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 6px 18px;
  }

  .step-icon {
    grid-row: span 2;
    width: 64px;
    height: 64px;
  }

  .step-icon.red {
    font-size: 22px;
  }

  .step-icon svg {
    width: 30px;
    height: 30px;
  }

  .tip {
    padding: 16px 18px;
    font-size: 15px;
  }

  .tip-badge {
    display: none;
  }

  .split,
  .split-text {
    gap: 20px;
  }

  .sum {
    padding: 24px 20px;
    gap: 28px;
  }

  .sum-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .row {
    font-size: 18px;
  }

  .row dt {
    font-size: 15px;
  }

  .row.total {
    font-size: 22px;
  }

  .boards,
  .shares {
    gap: 10px;
  }

  .board {
    min-height: 132px;
  }

  .board-head {
    padding: 10px 12px 0;
    font-size: 13px;
    flex-direction: column;
    gap: 2px;
  }

  .board-number {
    font-size: 44px;
  }

  .board-bar {
    height: 6px;
  }

  .shares div {
    padding: 12px;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
  }

  .shares b {
    font-size: 22px;
  }

  .anywhere {
    gap: 28px;
  }

  .story {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .story p {
    font-size: 18px;
  }

  .closing {
    padding-top: 64px;
  }

  .closing-main {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 28px;
    padding-bottom: 56px;
  }

  .closing-tiles {
    grid-template-columns: repeat(4, 56px);
    grid-template-rows: 56px;
    font-size: 20px;
  }

  .footer-bar {
    flex-direction: column-reverse;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Privacy pages (privacy.html, datenschutz.html) */

.nav .legal-lang {
  margin-left: auto;
  font-size: 17px;
  font-weight: 500;
}

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

.legal {
  padding-top: 64px;
  padding-bottom: var(--section);
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.legal > * {
  max-width: 760px;
}

.legal h1 {
  margin: 12px 0 32px;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}

.legal h2 {
  margin: 56px 0 16px;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal p,
.legal ul {
  margin: 0 0 16px;
}

.legal ul {
  padding-left: 24px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--cyan);
}

.legal code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text);
}

.legal-summary {
  padding: 20px 24px;
  background: var(--ground);
  font-size: 20px;
  color: var(--text);
}

/* Details still to be filled in before the page goes live. */
.todo {
  background: #fff3a8;
  color: var(--text);
}

.legal-footer {
  padding-top: 0;
}

@media (max-width: 1100px) {
  .nav .legal-lang {
    display: flex;
  }

  .nav .legal-lang + .button {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .legal {
    padding-top: 32px;
    font-size: 16px;
  }

  .legal h2 {
    margin-top: 40px;
    font-size: 22px;
  }

  .legal-summary {
    padding: 16px 18px;
    font-size: 17px;
  }

  .nav:has(.legal-lang) {
    gap: 16px;
  }

  .nav .legal-lang {
    font-size: 15px;
  }

  .nav .legal-lang + .button {
    padding: 0 16px;
    white-space: nowrap;
  }
}

/* Small phones: the logo alone, so the language link and the button still fit. */
@media (max-width: 420px) {
  .nav:has(.legal-lang) .brand span {
    display: none;
  }
}
