/* ==========================================================
   VERSO-OI — LEGAL PAGES SHARED STYLES
   Used by: mentions-legales.html, cgv.html, cgu.html,
            confidentialite.html, cookies.html
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #0A0A0B;
  color: #C4C5CB;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #9EB4FF;
  text-decoration: none;
  transition: color 200ms;
}
a:hover { color: #FFFFFF; text-decoration: underline; }

/* === Top Nav (sticky) === */
.nav-legal {
  position: sticky; top: 0;
  background: rgba(10,10,11,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250,250,252,0.08);
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #9EB4FF;
}
.nav-back .brand {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  background: linear-gradient(175deg, #FFFFFF 0%, #C0CFFF 50%, #9EB4FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-back:hover { text-decoration: none; }
.nav-page {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8E9098;
}

/* === Container === */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px 100px;
}

/* === Heading === */
.label-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #9EB4FF;
}
h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(175deg, #FFFFFF 0%, #C0CFFF 35%, #9EB4FF 55%, #FFFFFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 14px 0 26px;
}
.intro-line {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #C4C5CB;
  margin-bottom: 28px;
  line-height: 1.5;
}
.meta-row {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E9098;
  padding-bottom: 32px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(250,250,252,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* === Section headings === */
h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: #FAFAFC;
  margin: 56px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  scroll-margin-top: 80px;
}
h2 .num {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 12px;
  color: #9EB4FF;
  letter-spacing: 0.2em;
  flex-shrink: 0;
  min-width: 30px;
}
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #FAFAFC;
  margin: 28px 0 10px;
}

p { margin-bottom: 14px; }
ul, ol { padding-left: 24px; margin-bottom: 14px; }
li { margin-bottom: 8px; }
strong { color: #FAFAFC; font-weight: 500; }
em { color: #9EB4FF; font-style: italic; }

/* Info callouts */
.info-box {
  background: rgba(158,180,255,0.06);
  border-left: 2px solid #9EB4FF;
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 6px 6px 0;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box .label-mono { margin-bottom: 10px; }

/* Placeholder (yellow highlight to fill in) */
.placeholder {
  background: rgba(255,200,100,0.12);
  color: #FFC864;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  letter-spacing: 0.04em;
}

/* Table of contents */
.toc {
  background: rgba(158,180,255,0.04);
  border: 1px solid rgba(158,180,255,0.15);
  padding: 24px 28px;
  border-radius: 8px;
  margin: 32px 0 48px;
}
.toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #9EB4FF;
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 24px;
  margin-bottom: 0;
}
.toc li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.toc li a { color: #C4C5CB; }
.toc li a:hover { color: #9EB4FF; }
.toc li .num { color: #9EB4FF; margin-right: 8px; }

.signature-block {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(250,250,252,0.1);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 15px;
  color: #8E9098;
}

/* === Footer === */
.footer-legal {
  border-top: 1px solid rgba(250,250,252,0.1);
  margin-top: 80px;
}
.footer-legal-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E9098;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #8E9098; }
.footer-nav a:hover { color: #9EB4FF; }
.footer-nav a.current { color: #9EB4FF; }

@media (max-width: 720px) {
  .legal-container { padding: 60px 20px 80px; }
  .toc ol { columns: 1; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.5rem; }
  .nav-inner { padding: 14px 20px; flex-wrap: wrap; }
  .footer-legal-inner { padding: 30px 20px; flex-direction: column; align-items: flex-start; }
}
