/*
 * Shared styling for the three pages that exist while the marketing site does not (NIV-10).
 *
 * Colours are the design's brand ramp, copied from packages/tokens/tokens.json rather than
 * imported: this site has no build step on purpose, and a build step for three static pages
 * would be the tail wagging the dog. If the ramp changes in Figma, it changes here too —
 * which is a real cost, and the reason this file stays small.
 *
 * Ltt Recoleta is deliberately absent. Nivo bought its *app* licence, which permits bundling
 * into the mobile app and says nothing about serving it from a web server — that is a third
 * licence again. See docs/FONTS.md.
 *
 * Google Sans Flex is self-hosted rather than linked from Google Fonts. A site that is about
 * to publish a privacy policy should not hand every visitor's IP address to a third party in
 * order to render its own headline.
 */

@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/GoogleSansFlex-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/GoogleSansFlex-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --brand-50: #e8f6fd;
  --brand-100: #d1f0fa;
  --brand-300: #7bd3f0;
  --brand-500: #1860f0;
  --brand-900: #07275e;
  --brand-950: #01101a;
  --ink: #212121;
  --ink-secondary: #575a55;
  --ink-tertiary: #888d86;
  --rule: #cccece;
}

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

body {
  margin: 0;
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-500);
}

/* The landing page: the brand ground the app's auth screens sit on. */
body.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  color: var(--brand-50);
  background: radial-gradient(120% 90% at 50% 0%, var(--brand-900) 0%, var(--brand-950) 62%);
}

.landing .mark {
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
}

.landing h1 {
  font-weight: 600;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}

.landing p {
  margin: 0;
  max-width: 46ch;
  color: var(--brand-100);
  font-size: 17px;
}

.landing .links {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.landing .links a {
  color: var(--brand-300);
}

/* The legal pages: documents, so they get a light ground and a reading measure. */
body.document {
  color: var(--ink);
  background: #fff;
  padding: 48px 24px 96px;
}

.document main {
  max-width: 68ch;
  margin: 0 auto;
}

.document h1 {
  font-weight: 600;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.25;
  margin: 0 0 8px;
}

.document .updated {
  color: var(--ink-tertiary);
  font-size: 14px;
  margin: 0 0 40px;
}

.document h2 {
  font-weight: 600;
  font-size: 20px;
  margin: 40px 0 12px;
}

.document h3 {
  font-weight: 600;
  font-size: 16px;
  margin: 24px 0 8px;
}

.document p,
.document li {
  color: var(--ink-secondary);
  font-size: 16px;
}

.document li {
  margin-bottom: 8px;
}

.document table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.document th,
.document td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-secondary);
}

.document th {
  font-weight: 600;
  color: var(--ink);
}

.document .home {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 15px;
}
