/* ──────────────────────────────────────────────────────────────
   HorecAI — Pages légales
   Reprise du design system de la landing (landing.css). Volontairement
   sobre, lecture confortable, max-width 720px.
   ────────────────────────────────────────────────────────────── */

:root {
  --ink:       #151411;
  --ink-2:     #1c1b17;
  --ink-3:     #24221d;
  --line:      #2e2b24;
  --line-2:    #3d392f;
  --ink-text:  #f3ead7;
  --cream:     #f2ead5;
  --cream-2:   #e8deb9;
  --cream-ink: #1b1a17;
  --green:     #4ec38f;
  --green-2:   #0f7a52;
  --muted:     #8a8372;
  --muted-2:   #b8b098;
  --red-pen:   #c44738;
  --radius:    8px;
  --radius-sm: 4px;
  --maxw:      720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--ink-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; border-bottom: 1px dotted rgba(78,195,143,0.4); transition: color 0.15s, border-color 0.15s; }
a:hover { color: var(--cream); border-bottom-color: var(--cream); }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-weight: 500; letter-spacing: 0.02em; }
em, .em { font-style: italic; font-family: "Fraunces", Georgia, serif; font-weight: 500; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ══════ MASTHEAD (identique à la landing) ══════ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.mast-brand { display: inline-flex; align-items: baseline; gap: 10px; border: none; }
.mast-brand:hover { color: inherit; }
.mast-word {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-text);
}
.mast-led {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(78,195,143,0.2), 0 0 10px rgba(78,195,143,0.6);
}
.mast-back {
  font-size: 13px;
  color: var(--muted-2);
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}
.mast-back:hover { color: var(--green); border-color: var(--green); }

/* ══════ ARTICLE ══════ */
.legal-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-kick {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-wrap h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.legal-wrap h1 em {
  color: var(--green);
  font-style: italic;
}
.legal-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 24px 0 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.legal-wrap h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  margin: 36px 0 12px;
  color: var(--cream);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.legal-wrap h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.legal-wrap p {
  margin: 12px 0;
  color: var(--ink-text);
}
.legal-wrap ul, .legal-wrap ol {
  margin: 12px 0 12px 24px;
}
.legal-wrap li {
  margin: 6px 0;
}
.legal-wrap strong, .legal-wrap b {
  color: var(--cream);
  font-weight: 600;
}
.legal-wrap code {
  font-family: "JetBrains Mono", monospace;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13px;
}
.legal-wrap blockquote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 16px;
  margin: 16px 0;
  color: var(--muted-2);
  font-style: italic;
}
.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal-wrap th, .legal-wrap td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-wrap th {
  background: var(--ink-2);
  color: var(--cream);
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.legal-wrap td.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--muted-2);
}

.legal-callout {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 14px;
  color: var(--muted-2);
}

/* ══════ FOOT ══════ */
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-baseline { color: var(--muted); font-size: 13px; width: 100%; margin-top: 4px; }
.foot-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-align: right; font-family: "JetBrains Mono", monospace; }
.foot-meta a { color: var(--muted); border-bottom: 1px solid transparent; }
.foot-meta a:hover { color: var(--green); border-bottom-color: var(--green); }
.foot-credit { margin-top: 10px; opacity: 0.7; font-size: 11px; }
.foot-credit a { color: var(--ink-text); border-bottom: 1px dotted var(--muted); }
.foot-credit a:hover { color: var(--green); border-bottom-color: var(--green); }

/* ══════ RESPONSIVE ══════ */
@media (max-width: 720px) {
  .foot { flex-direction: column; text-align: left; }
  .foot-meta { text-align: left; }
  .legal-wrap { padding: 36px 20px 60px; }
  .legal-meta { flex-direction: column; gap: 4px; }
}
