/* ==============================================================
   HELVETIQUE PARTNERS — Shared styles for legal pages
   Loaded by: mentions-legales.html, confidentialite.html,
              conformite-nlpd.html, conformite-lsa.html
   ============================================================== */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F3F1EA;
  --surface: #FFFFFF;
  --ink: #0A1220;
  --ink-2: #1E2837;
  --muted: #64707D;
  --line: #E5E2D6;
  --line-soft: #EFECE1;
  --gold: #A98A45;
  --gold-soft: #C9A961;
  --swiss: #DA291C;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 900px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--swiss); }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
.container-wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container-wide { padding: 0 40px; } }

/* Swiss cross */
.swiss-cross {
  position: relative;
  display: inline-block;
  background: var(--swiss);
  flex-shrink: 0;
}
.swiss-cross::before, .swiss-cross::after {
  content: "";
  position: absolute;
  background: #fff;
}
.swiss-cross.sm { width: 14px; height: 14px; }
.swiss-cross.sm::before { top: 3px; bottom: 3px; left: 6px; right: 6px; }
.swiss-cross.sm::after { left: 3px; right: 3px; top: 6px; bottom: 6px; }
.swiss-cross.xs { width: 10px; height: 10px; }
.swiss-cross.xs::before { top: 2px; bottom: 2px; left: 4px; right: 4px; }
.swiss-cross.xs::after { left: 2px; right: 2px; top: 4px; bottom: 4px; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 12px 0;
  font-weight: 500;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-mark { display: inline-flex; align-items: center; gap: 12px; }
.topbar-locales { display: inline-flex; align-items: center; gap: 8px; }
.topbar-locales .dot { width: 3px; height: 3px; background: var(--gold-soft); border-radius: 50%; opacity: .5; flex-shrink: 0; }
.topbar-locales .locale { padding: 4px 2px; }
.topbar-locales .locale.active { color: #FFF; position: relative; }
.topbar-locales .locale.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--swiss);
}
.topbar-locales .locale.disabled { opacity: .35; }

/* Nav */
.nav {
  background: rgba(250, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  position: relative;
  text-decoration: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -3px; bottom: -3px;
  width: 6px; height: 6px;
  background: var(--swiss);
}
.brand-text {
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 500;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  transition: background .2s, color .2s;
}
.nav-back::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--swiss);
}
.nav-back:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 900px) {
  .nav-inner { padding: 14px 0; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; flex-shrink: 0; }
  .brand-name { font-size: 15px; letter-spacing: .1em; }
  .brand-sub { font-size: 9px; letter-spacing: .18em; margin-top: 4px; }
  .nav-back { padding: 9px 14px; font-size: 11px; letter-spacing: .1em; }
  .topbar { padding: 10px 0; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .topbar-mark span:not(.swiss-cross) { font-size: 10.5px; letter-spacing: .1em; }
  .topbar-locales { font-size: 10.5px; }
}
@media (max-width: 430px) {
  .brand-sub { display: none; }
}

/* ============================================================
   LEGAL PAGE CONTENT
   ============================================================ */
.legal-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
@media (min-width: 700px) { .legal-hero { padding: 90px 0 60px; } }
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
  font-weight: 600;
}
.legal-eyebrow .square-swiss {
  width: 10px; height: 10px;
  background: var(--swiss);
  flex-shrink: 0;
}
.legal-eyebrow .line-gold {
  width: 28px; height: 1px; background: var(--gold);
}
.legal-hero h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.legal-hero .lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}
@media (min-width: 700px) { .legal-hero .lede { font-size: 17px; } }
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.legal-updated::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  display: inline-block;
}

.legal-content {
  padding: 60px 0 100px;
}
@media (min-width: 700px) { .legal-content { padding: 80px 0 130px; } }

.legal-content h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
@media (min-width: 700px) { .legal-content h2 { font-size: 26px; } }

.legal-content h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -.005em;
}

.legal-content p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 16px;
}
@media (min-width: 700px) { .legal-content p { font-size: 16px; } }

.legal-content ul, .legal-content ol {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 20px;
  padding-left: 24px;
}
@media (min-width: 700px) { .legal-content ul, .legal-content ol { font-size: 16px; } }
.legal-content li { margin-bottom: 8px; }
.legal-content li::marker { color: var(--swiss); }

.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--swiss);
  text-underline-offset: 3px;
  font-weight: 500;
}
.legal-content a:hover { color: var(--swiss); }

.legal-block {
  padding: 24px 26px;
  background: var(--bg-alt);
  border-left: 3px solid var(--swiss);
  margin: 24px 0 28px;
}
.legal-block p { margin: 0 0 6px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block strong { display: block; font-size: 13px; letter-spacing: .05em; margin-bottom: 4px; color: var(--ink); }

/* Footer */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 70px 0 36px;
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 60px;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.footer-brand-name {
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: 600;
}
.footer-desc {
  color: var(--gold-soft);
  font-size: 14px;
  line-height: 1.65;
  opacity: .85;
  max-width: 340px;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col h4::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--swiss);
  display: inline-block;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; }
.footer-col a {
  color: var(--bg);
  opacity: .75;
  font-size: 13.5px;
  text-decoration: none;
  transition: opacity .2s, color .2s;
}
.footer-col a:hover { opacity: 1; color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: var(--gold-soft);
  opacity: .7;
  letter-spacing: .08em;
  font-weight: 500;
}
.footer-bottom-left {
  display: flex; align-items: center; gap: 12px;
}
