/* Pages légales Weclimb — feuille de style partagée.
   Cohérente avec la landing (tokens, typo, espacements). */

:root {
  --bg: #F7F6F2;
  --fg: #0E2A2E;
  --muted: #6B6E70;
  --border: #E5E4E0;
  --card: #FFFFFF;
  --flame: #F26230;
  --flame-deep: #B43F15;
  --bone-100: #F4F4F3;
  --bone-200: #EBEBEA;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background: var(--flame);
  color: #fff;
}

/* Nav header */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(45 38% 96% / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.legal-nav__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 24px) clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 32px;
}
.legal-nav__logo span {
  display: block;
  width: 111px;
  height: 32px;
  background-color: var(--flame);
  -webkit-mask-image: url('/weclimb-logo-teal.png');
  mask-image: url('/weclimb-logo-teal.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
}
.legal-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 0.2s, background 0.2s;
}
.legal-nav__back:hover {
  border-color: var(--fg);
  background: var(--bone-200);
}

/* Main */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) 80px;
}

.legal-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--flame);
  margin-bottom: 18px;
}

.legal-h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}
.legal-h1 em {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--flame);
  letter-spacing: -0.005em;
}

.legal-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

/* Content */
.legal-content h1,
.legal-content h2 {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 48px 0 16px;
  color: var(--fg);
}
.legal-content h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}
.legal-content h4,
.legal-content h5,
.legal-content h6 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 28px 0 8px;
}
.legal-content p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.65;
  color: hsl(180 17% 12% / 0.88);
}
.legal-content ul,
.legal-content ol {
  margin: 8px 0 20px;
  padding-left: 1.5em;
}
.legal-content li {
  margin: 6px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: hsl(180 17% 12% / 0.88);
}
.legal-content li::marker {
  color: var(--flame);
}
.legal-content strong {
  font-weight: 700;
  color: var(--fg);
}
.legal-content a {
  color: var(--flame);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: var(--flame-deep);
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-content th {
  background: var(--bone-100);
  font-weight: 600;
}

/* Footer */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px, 4vw, 56px);
  margin-top: 64px;
}
.legal-footer__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.legal-footer a {
  color: var(--muted);
  text-decoration: none;
}
.legal-footer a:hover { color: var(--flame); }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
