/* Seller Imago — feuille de style des pages légales
   À déposer dans /assets/css/legal.css sur le serveur (ou adapter le chemin
   dans les balises <link> des pages .html si votre arborescence diffère). */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --ink: #202522;
  --ink-soft: #4d554f;
  --paper: #f4f5ef;
  --paper-raised: #fcfcf9;
  --line: #e1e5dd;
  --accent: #4b7f6a;
  --accent-soft: #edf4ef;
  --max: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* --- Header, reprend la nav du site --- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}
.site-header nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-header .brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.site-header .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header .links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header .links a:hover { color: var(--ink); }

/* --- Contenu --- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.doc-kicker {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 6px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}

.doc-updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

section.clause { margin: 0 0 40px; }

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
h2 .num {
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 24px 0 8px;
  color: var(--ink);
}

p { margin: 0 0 14px; color: var(--ink); }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

.placeholder {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 3px;
  padding: 0 5px;
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.92rem;
}
table.legal-table th, table.legal-table td {
  text-align: left;
  padding: 9px 10px;
  border: 1px solid var(--line);
}
table.legal-table th { background: var(--paper); font-weight: 600; }

.doc-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 40px;
}
.doc-nav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.doc-nav a.current { color: var(--accent); border-color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.site-footer a { color: var(--ink-soft); }

@media (max-width: 560px) {
  h1 { font-size: 1.7rem; }
  main { padding: 40px 18px 64px; }
}

/* --- Bouton « Gérer mes cookies » (page Cookies) --- */
.cookie-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
}
.cookie-btn:hover { background: #365f4f; }
.legal-table code { font-size: 0.85em; }
