/* Styles for the privacy policy pages (/en/privacy/ and /fr/confidentialite/) */
@font-face {
  font-family: 'Coconat';
  src: url('/Assets/fonts/Coconat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --black: #0a0a0a;
  --white: #f5f3ee;
  --accent: #9fd0ff;
  --gray: #8a8a8a;
  --text: #c9c5be;
  --line: rgba(255, 255, 255, 0.08);
  --mono: 'Chivo Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --serif: 'Coconat', Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(159, 208, 255, 0.6); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* Top bar */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.legal-logo img { width: 34px; height: 34px; border-radius: 50%; }
.legal-logo span { transform: translateY(0.05em); }
.legal-nav-right { display: flex; align-items: center; gap: 18px; }
.legal-back {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.72);
  text-decoration: none;
}
.legal-back:hover { color: var(--white); }
.legal-lang {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.72);
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid rgba(245, 243, 238, 0.2);
  border-radius: 999px;
}
.legal-lang:hover { color: var(--black); background: var(--accent); border-color: var(--accent); }

/* Header */
.legal-header {
  padding: 96px 40px 56px;
  border-bottom: 1px solid var(--line);
}
.legal-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}
.legal-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.88;
  color: var(--white);
  text-transform: uppercase;
}
.legal-title em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.8em;
  color: var(--accent);
  text-transform: none;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.legal-summary {
  max-width: 760px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--white);
}

/* Body: contents list + text */
.legal-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 72px;
  padding: 64px 40px 120px;
}
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.legal-toc-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}
.legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; display: flex; gap: 10px; font-size: 12px; line-height: 1.5; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--accent); flex-shrink: 0; }
.legal-toc a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.legal-toc a:hover { color: var(--white); }

.legal-content section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.legal-content section:first-child { border-top: 0; padding-top: 0; }
.legal-content h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}
.legal-content h2 .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.legal-content h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  margin: 24px 0 8px;
}
.legal-content p + p, .legal-content .table-wrap + p { margin-top: 14px; }
.legal-content .table-wrap + p { margin-top: 18px; }
.legal-content ul { margin: 12px 0 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-content li { position: relative; padding-left: 22px; }
.legal-content li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.legal-content strong { color: var(--white); font-weight: 500; }

.contact-card {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(159, 208, 255, 0.35);
  border-radius: 4px;
  background: rgba(159, 208, 255, 0.05);
}
.contact-card .name { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--white); letter-spacing: 0.04em; }
.contact-card .role { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin: 6px 0 14px; }

.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--white); white-space: nowrap; }

.legal-button {
  display: inline-block;
  margin-top: 20px;
  background: var(--accent);
  color: var(--black);
  border: 0;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
.legal-button:hover { background: var(--white); color: var(--black); }

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}
.legal-footer a { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; gap: 40px; padding: 40px 16px 80px; }
  .legal-toc { position: static; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .legal-header { padding: 64px 16px 40px; }
  .legal-nav { padding: 14px 16px; }
  .legal-footer { padding: 24px 16px; }
  .legal-back { display: none; }
  .legal-content h2 { font-size: 32px; }
  body { font-size: 13.5px; }
}
