/* The legal pages (terms, privacy, legal notice, security): their text is the .md beside each page,
   written into it by scripts/render-legal-pages.py. The texts come from the Kinodio repo (Resources/Legal). */
@font-face {
  font-family: 'Instrument Serif';
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400.woff2") format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-400.woff2") format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-500.woff2") format('woff2');
}
:root {
  --night: #06080c;
  --ink: #ededea;
  --muted: #8b8f96;
  --line: rgba(185, 207, 234, 0.14);
  --blue: #155cb1;
  --blue-deep: #0b3970;
  --blue-pale: #b9cfea;
}
html, body { margin: 0; }
body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--night);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, 'Helvetica Neue', sans-serif;
}

.bg, .bg > * { position: absolute; pointer-events: none; }
.bg { inset: 0; z-index: 0; overflow: hidden; }
.glow { border-radius: 50%; filter: blur(80px); }
.glow-a { width: 70vmax; height: 70vmax; left: -30vmax; top: -36vmax; background: radial-gradient(circle, var(--blue) 0%, transparent 65%); opacity: 0.4; }
.glow-b { width: 60vmax; height: 60vmax; right: -26vmax; bottom: -30vmax; background: radial-gradient(circle, var(--blue-deep) 0%, transparent 68%); opacity: 0.8; }
.grain {
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}

.legal h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 72px 0 40px;
}
/* A text's second Heading 1 (the CGV's parts): a title, smaller than the page's. */
.legal h1 ~ h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 56px 0 24px;
}
.legal h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-pale);
  margin: 28px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1rem; font-weight: 500; margin: 24px 0 12px; }
.legal p, .legal li { line-height: 1.6; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal li { margin: 0 0 6px; }
/* A box (encadré): the legal-guarantee information, which the law requires framed. */
.legal .box {
  border: 1px solid rgba(185, 207, 234, 0.45);
  border-radius: 6px;
  padding: 24px 24px 12px;
  margin: 16px 0 24px;
}
.legal .box h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-pale);
  margin: 0 0 16px;
}
.note { color: var(--muted); margin: 32px 0 0; }

a { color: var(--ink); text-decoration-color: rgba(185, 207, 234, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--blue-pale); outline-offset: 3px; }
.download { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }

/* The About page's footer: the legal mentions, in the home footer's type. */
.legal-mentions {
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(139, 143, 150, 0.8);
}
.legal-mentions span { white-space: nowrap; }
.legal-mentions a { color: inherit; text-decoration-color: rgba(139, 143, 150, 0.4); }
.legal-mentions a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .legal h1 { margin: 48px 0 32px; }
}
