/*
  legal.css
  vozzy

  Created by Kévin Naudin on 10/08/2026.

  Shared stylesheet of the legal pages, mirroring the "Studio Vozzy, ON AIR"
  direction: night indigo ground, signal yellow for titles and links,
  Archivo Black speaks, IBM Plex Mono labels, IBM Plex Sans carries the
  paragraphs. Tokens mirror lib/design.dart.
*/

/* Self-hosted faces, copied from the app bundle (assets/fonts/): loading
   them from Google Fonts would send every visitor's IP to a US third party
   from the very page that promises no trackers. Bold is synthesised from
   the regular, as in the app. */

@font-face {
  font-family: 'Archivo Black';
  src: url('fonts/ArchivoBlack-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --backdrop: #12142A;
  --surface: #1B1E38;
  --surface-deep: #171A32;
  --ink: #F2F3F7;
  --ink-soft: #C6CADD;
  --ink-dim: #9BA2C4;
  --muted: #7E86AE;
  --separator: #2A2E52;
  --signal: #FFD447;
  --signal-bright: #FFE58A;
  --ok: #4CC38A;
  --radius: 12px;
  --radius-card: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink-soft);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--signal-bright); }

/* Header: station ident on the left, language switch on the right. */

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--signal);
  text-decoration: none;
}

.wordmark:hover { color: var(--signal); }

.lang {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.lang a { color: var(--ink-dim); text-decoration: none; }
.lang a:hover { color: var(--signal); }
.lang strong { color: var(--signal); font-weight: 400; }

/* The test card: the twelve channel accents as one striped band. */

.testcard {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin: 18px 0 34px;
}

.testcard span { flex: 1; }

/* Title block: the framed logo beside the one Archivo Black title. */

/* The framed logo beside the title, composed like the consent screen's
   mascot card: surface ground, hairline border, media radius. */

.title-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 10px;
}

.title-row h1 { margin: 0; }

.logo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 18px;
  border: 1px solid var(--separator);
  background: var(--surface);
  display: block;
}

h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--signal);
  margin: 0 0 10px;
}

.updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 28px;
}

.intro { margin: 0 0 30px; }

/* Sections: a chyron heading, then prose on the ground. */

h2 {
  display: inline-flex;
  align-items: stretch;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 36px 0 12px;
}

h2 .bar {
  width: 6px;
  background: var(--signal);
  border-radius: 3px;
  margin-right: 12px;
}

p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 22px; }

li { margin-bottom: 8px; }

li::marker { color: var(--muted); }

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

/* A raised card for the blocks worth isolating: recipients, contact. */

.card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin: 0 0 14px;
}

.card .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 6px;
}

.card p:last-child { margin-bottom: 0; }

footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--separator);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

footer a { color: var(--ink-dim); }
