/* legal.css — styles partagés des pages légales Cantiques EJCSK
   (mentions légales, CGU, politique de confidentialité) */

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

:root {
  --green-deep: #072E0F;
  --green-dark: #0D4A1A;
  --green: #1B6B2A;
  --green-light: #2D8B3E;
  --gold: #C5A028;
  --gold-dark: #9A7B1A;
  --text: #1a2e1f;
  --text-light: #5a6e5f;
  --text-muted: #8a9a8e;
  --border: #d8e0da;
  --paper: #ffffff;
  --bg-cream: #f5f3ee;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-cream);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Nav retour ===== */
.nav-back {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
.nav-back-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.back-link:hover { color: var(--gold-dark); }
.nav-back-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.05rem;
}

/* ===== Cover ===== */
.cover {
  background: linear-gradient(160deg, #072E0F 0%, #0D4A1A 40%, #1B6B2A 100%);
  color: #fff;
  padding: 64px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(197,160,40,1) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(197,160,40,1) 40px);
  pointer-events: none;
}
.cover-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cover-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-light, #D4B445);
  margin-bottom: 16px;
}
.cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}
.cover-sub { margin-top: 14px; color: rgba(255,255,255,0.82); font-size: 0.98rem; }

/* ===== Contenu ===== */
.doc {
  max-width: 800px;
  margin: -36px auto 0;
  padding: 0 20px 80px;
  position: relative;
  z-index: 3;
}
.doc-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px clamp(20px, 5vw, 52px);
  box-shadow: 0 20px 50px -28px rgba(7,46,15,0.4);
}
.doc-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.doc h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 36px 0 12px;
}
.doc h2:first-of-type { margin-top: 8px; }
.doc h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--green);
  margin: 22px 0 8px;
}
.doc p { margin-bottom: 14px; color: var(--text-light); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { margin: 0 0 16px 22px; color: var(--text-light); }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--gold-dark); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 0.92rem;
}
.doc th, .doc td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--border);
}
.doc th { background: #f1f6f1; color: var(--green-dark); font-weight: 600; }
.doc .note {
  background: #f1f6f1;
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 18px 0;
  color: var(--text-light);
}

/* ===== Footer ===== */
.legal-footer {
  text-align: center;
  padding: 32px 20px 48px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.legal-footer a { color: var(--green); text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }
.legal-footer .sep { margin: 0 8px; color: var(--border); }
