/*
 * Trust Center juridique /legal/ — généré par scripts/generate-legal-hub.mjs.
 * Référence : ancienne page https://cloudbizz.com/legal (hero sombre aligné à
 * gauche, deux sections de trois cartes, CTA centré, dock de sections).
 * Typographie : tokens --cb-* de styles.css (display 300, eyebrow 16/500/.08em,
 * lead 300/-.018em, accent --cb-accent-gradient).
 */
.legal-hub-page {
  --lh-bg: #030718;
  --lh-surface: rgba(14, 20, 48, .72);
  --lh-border: rgba(148, 166, 255, .16);
  --lh-text: rgba(203, 215, 234, .78);
  --lh-strong: #f4f7ff;
  --lh-shell: min(calc(100% - 48px), 1216px);
  min-width: 320px;
  color: var(--lh-strong);
  background:
    radial-gradient(circle at 78% 4%, rgba(86, 126, 255, .16), transparent 34%),
    radial-gradient(circle at 12% 52%, rgba(66, 187, 223, .07), transparent 32%),
    var(--lh-bg);
}

html:has(> body.legal-hub-page) { background: #030718; }
.legal-hub-page { display: flow-root; }
.legal-hub-page .skip-link { z-index: 2000; }
.legal-hub-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.legal-hub-shell { width: var(--lh-shell); margin: 0 auto; }
.legal-hub-page main { display: block; }
.legal-hub-page main svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.legal-hub-page :where(main a):focus-visible {
  outline: 3px solid #8fb0ff;
  outline-offset: 4px;
}

.legal-hub-accent {
  background: var(--cb-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Hero */
.legal-hub-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 9vw, 132px) 0 clamp(120px, 11vw, 168px);
  overflow: hidden;
}
.legal-hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 166, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 166, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 30%, #000 0, transparent 62%);
  mask-image: radial-gradient(ellipse at 72% 30%, #000 0, transparent 62%);
}
.legal-hub-hero__inner { max-width: var(--lh-shell); }
.legal-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px;
  border: 1px solid rgba(86, 126, 255, .38);
  border-radius: 999px;
  background: rgba(86, 126, 255, .1);
  color: var(--cb-eyebrow-ink-dark);
  font-size: var(--cb-eyebrow-size);
  font-weight: var(--cb-eyebrow-weight);
  letter-spacing: var(--cb-eyebrow-tracking);
  line-height: 1.2;
  text-transform: uppercase;
}
.legal-hub-badge svg { width: 18px; height: 18px; color: #8fb0ff; }
.legal-hub-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--cb-display-ink-dark);
  font-family: var(--cb-display-font);
  font-size: var(--cb-title-hero);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: var(--cb-display-leading);
}
.legal-hub-hero h1 > span { display: block; padding-bottom: .04em; }
.legal-hub-hero__lead {
  max-width: 620px;
  margin: 32px 0 0;
  padding-left: 22px;
  border-left: 3px solid #567eff;
  color: var(--cb-lead-ink-dark);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: var(--cb-lead-weight);
  letter-spacing: var(--cb-lead-tracking);
  line-height: 1.55;
}
.legal-hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 40px;
}
.legal-hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-hub-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(203, 215, 234, .82);
  font-size: 15px;
  font-weight: 500;
}
.legal-hub-chips svg { width: 18px; height: 18px; color: #7f9cff; }

.legal-hub-explore {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  transform: translateX(-50%);
  color: rgba(203, 215, 234, .6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}
.legal-hub-explore i {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(143, 176, 255, .8), transparent);
}

/* Boutons */
.legal-hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.legal-hub-button svg { width: 18px; height: 18px; flex: none; }
.legal-hub-button--light { background: #fff; color: #080b25; }
.legal-hub-button--light:hover { box-shadow: 0 12px 34px rgba(86, 126, 255, .32); transform: translateY(-2px); }
.legal-hub-button--primary {
  background: linear-gradient(90deg, #3a5cff, #567eff 60%, #42bbdf);
  color: #fff;
  box-shadow: 0 14px 34px rgba(58, 92, 255, .32);
}
.legal-hub-button--primary:hover { box-shadow: 0 18px 44px rgba(58, 92, 255, .46); transform: translateY(-2px); }
.legal-hub-button--ghost {
  border-color: rgba(148, 166, 255, .32);
  background: rgba(255, 255, 255, .04);
  color: var(--lh-strong);
}
.legal-hub-button--ghost:hover { border-color: rgba(143, 176, 255, .7); background: rgba(86, 126, 255, .12); }

/* Sections documents */
.legal-hub-section { padding: clamp(72px, 8vw, 120px) 0; scroll-margin-top: 24px; }
.legal-hub-section--protection {
  background: linear-gradient(180deg, rgba(9, 14, 40, 0), rgba(9, 14, 40, .8) 22%, rgba(9, 14, 40, .8) 78%, rgba(9, 14, 40, 0));
}
.legal-hub-section__head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.legal-hub-eyebrow {
  margin: 0 0 16px;
  color: var(--cb-eyebrow-ink-dark);
  font-size: var(--cb-eyebrow-size);
  font-weight: var(--cb-eyebrow-weight);
  letter-spacing: var(--cb-eyebrow-tracking);
  text-transform: uppercase;
}
.legal-hub-eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 50%;
  background: #567eff;
  vertical-align: .12em;
}
.legal-hub-section--protection .legal-hub-eyebrow::before { background: #67e0b9; }
.legal-hub-section h2,
.legal-hub-help h2 {
  margin: 0;
  color: var(--cb-display-ink-dark);
  font-family: var(--cb-display-font);
  font-size: var(--cb-title-section-side);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: var(--cb-display-leading);
  text-wrap: balance;
}
.legal-hub-section__lead {
  margin: 20px auto 0;
  max-width: 680px;
  color: var(--cb-lead-ink-dark);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: var(--cb-lead-weight);
  letter-spacing: var(--cb-lead-tracking);
  line-height: 1.6;
}

.legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
}
.legal-hub-card {
  --tone: #567eff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 322px;
  padding: 32px;
  border: 1px solid var(--lh-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0, color-mix(in srgb, var(--tone) 12%, transparent), transparent 46%),
    var(--lh-surface);
  box-shadow: 0 24px 60px rgba(0, 3, 20, .35);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.legal-hub-card--indigo { --tone: #8b86ff; }
.legal-hub-card--green { --tone: #67e0b9; }
.legal-hub-card--violet { --tone: #b58cff; }
.legal-hub-card--rose { --tone: #ff7d9c; }
.legal-hub-card--cyan { --tone: #42bbdf; }
.legal-hub-card:hover,
.legal-hub-card:focus-within {
  border-color: color-mix(in srgb, var(--tone) 52%, transparent);
  box-shadow: 0 28px 70px rgba(0, 3, 20, .45), 0 0 0 1px color-mix(in srgb, var(--tone) 18%, transparent);
  transform: translateY(-4px);
}
.legal-hub-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.legal-hub-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--tone) 34%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
}
.legal-hub-card__icon svg { width: 24px; height: 24px; }
.legal-hub-card__tag {
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  color: color-mix(in srgb, var(--tone) 70%, #fff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.legal-hub-card h3 {
  margin: 0;
  color: var(--lh-strong);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.legal-hub-card p {
  margin: 14px 0 22px;
  color: var(--lh-text);
  font-size: 16px;
  line-height: 1.6;
}
.legal-hub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 166, 255, .14);
  color: var(--lh-strong);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.legal-hub-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.legal-hub-card__link svg { width: 18px; height: 18px; color: var(--tone); transition: transform .2s ease; }
.legal-hub-card:hover .legal-hub-card__link svg { transform: translateX(4px); }
.legal-hub-card__link:focus-visible { outline: none; }
.legal-hub-card:has(.legal-hub-card__link:focus-visible) {
  outline: 3px solid #8fb0ff;
  outline-offset: 4px;
}

/* Aide */
.legal-hub-help {
  padding: clamp(80px, 9vw, 140px) 0 clamp(120px, 11vw, 170px);
  border-top: 1px solid rgba(148, 166, 255, .1);
  scroll-margin-top: 24px;
}
.legal-hub-help__inner { max-width: 860px; text-align: center; }
.legal-hub-help h2 > span { display: block; }
.legal-hub-help__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}
.legal-hub-help__notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 18px;
  color: #a9c0ff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(169, 192, 255, .4);
  text-underline-offset: 4px;
}
.legal-hub-help__notice svg { width: 16px; height: 16px; }
.legal-hub-help__notice:hover { color: #fff; }

/* Dock de sections */
.legal-hub-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 900;
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(148, 166, 255, .22);
  border-radius: 18px;
  background: rgba(10, 14, 36, .86);
  box-shadow: 0 18px 50px rgba(0, 2, 16, .5);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.legal-hub-dock a {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: rgba(203, 215, 234, .74);
  transition: background-color .2s ease, color .2s ease;
}
.legal-hub-dock a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.legal-hub-dock a[aria-current='true'] { background: #3a5cff; color: #fff; }
.legal-hub-dock svg { width: 21px; height: 21px; }
.legal-hub-dock.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 16px);
}

/* Entrées */
@media (prefers-reduced-motion: no-preference) {
  .legal-hub-hero__inner > * { animation: legal-hub-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .legal-hub-hero__inner > :nth-child(2) { animation-delay: .08s; }
  .legal-hub-hero__inner > :nth-child(3) { animation-delay: .16s; }
  .legal-hub-hero__inner > :nth-child(4) { animation-delay: .24s; }
  @supports (animation-timeline: view()) {
    .legal-hub-card {
      animation: legal-hub-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}
@keyframes legal-hub-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(> body.legal-hub-page) { scroll-behavior: auto; }
  .legal-hub-card,
  .legal-hub-button,
  .legal-hub-dock { transition: none; }
  .legal-hub-card:hover,
  .legal-hub-card:focus-within,
  .legal-hub-button:hover { transform: none; }
}

@media (max-width: 1080px) {
  .legal-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .legal-hub-page { --lh-shell: calc(100% - 40px); }
  .legal-hub-hero { padding: 52px 0 72px; }
  .legal-hub-explore { display: none; }
  .legal-hub-hero__lead { margin-top: 24px; padding-left: 16px; }
  .legal-hub-hero__actions { margin-top: 32px; }
  .legal-hub-hero__actions .legal-hub-button { width: 100%; }
  .legal-hub-grid { grid-template-columns: 1fr; }
  .legal-hub-card { min-height: 0; padding: 26px 24px; }
  .legal-hub-card__top { margin-bottom: 24px; }
  .legal-hub-help__actions .legal-hub-button { width: 100%; }
  .legal-hub-dock { bottom: 14px; }
  .legal-hub-dock a { width: 44px; height: 44px; }
}
