/*
 * The three legal documents notfour.com serves: /privacy, /terms and
 * /impressum. Static pages, no JavaScript, and nothing loaded from anywhere
 * but this site — Instrument Sans is served from /fonts here rather than from
 * Google's servers, because a German site that fetches a font from a third
 * party has told that party who is reading, and these pages of all pages must
 * not.
 *
 * Every number is the app's own: the tokens of docs/notfour-spec.md and the
 * four spacings of `layout.legal` in src/theme/theme.ts (32 between sections, 6
 * under a heading, 10 between paragraphs, 32 to the date), so the page a person
 * opens in a browser is laid out exactly as the same document is in the app.
 */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/InstrumentSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/InstrumentSans-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/InstrumentSans-SemiBold.ttf') format('truetype');
}

:root {
  --background: #F6F4F8;
  --text: #1A1523;
  --accent: #5B2C83;
  --secondary: #6B6577;
  --divider: #E3E0E9;
  --dot: rgba(26, 21, 35, .12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1A1523;
    --text: #F6F4F8;
    --accent: #AE87DC;
    --secondary: #A79FB3;
    --divider: #3A3346;
    --dot: rgba(246, 244, 248, .12);
  }
}

html { background: var(--background); }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 4px 9px;
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main {
  max-width: 440px;
  margin: 0 auto;
  padding: 54px 28px 48px;
  box-sizing: border-box;
}

/* The mark and the wordmark of spec section 6, at their own sizes. */
.logo { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.mark { display: flex; gap: 5px; transform: skewX(-8deg); }
.mark span { width: 4px; height: 29px; background: var(--text); border-radius: 2px; }
.wordmark { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -.01em; }
.wordmark s { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

.eyebrow {
  margin: 44px 0 0;
  font-size: 12px; line-height: 18px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--secondary);
}
h1 { margin: 8px 0 0; font-size: 30px; line-height: 36px; font-weight: 600; }
/* The lead keeps the body copy's 300px cap; a document's own paragraphs do not,
 * because prose set narrower than its own column reads as a mistake. */
.lead { margin: 16px 0 0; max-width: 300px; color: var(--secondary); }

/* A section: the heading in ink at the row size, its paragraphs in secondary.
 * No dividers anywhere on these pages — a divider says a line can be tapped,
 * and nothing here can be. */
section { margin-top: 32px; }
section h2 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 500; }
section p { margin: 6px 0 0; color: var(--secondary); }
section p + p { margin-top: 10px; }
/* The postal address, which is one paragraph with its own line breaks. */
section p.address { white-space: pre-line; }

.caption { margin: 32px 0 0; font-size: 13px; line-height: 18px; color: var(--secondary); }
a { color: var(--text); text-decoration-color: var(--divider); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }

/* The other two documents and the way back, at the foot of every page. */
nav { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 24px; }
nav a { font-weight: 500; color: var(--secondary); text-decoration: none; }
nav a:hover { color: var(--text); }
