:root {
  color-scheme: dark;
  --ink: #f7f9ff;
  --muted: #aab8d0;
  --line: rgba(179, 201, 235, 0.18);
  --blue: #3e94ff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #071225;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 4%, rgba(30, 111, 237, 0.24), transparent 32rem),
    radial-gradient(circle at 8% 88%, rgba(236, 62, 130, 0.12), transparent 30rem),
    #071225;
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: #8fc4ff;
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  color: white;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: #071225;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.legal-header,
.legal-footer,
.legal-shell {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: none;
  gap: 12px;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.legal-brand-copy {
  display: grid;
}

.legal-brand strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.legal-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

#legal-language {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  gap: 7px;
}

#legal-language[data-language="fr"] span:first-child,
#legal-language[data-language="en"] span:last-child {
  color: white;
  font-weight: 800;
}

#legal-language i {
  opacity: 0.45;
  font-style: normal;
}

.legal-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(10, 25, 50, 0.82);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

article {
  padding: clamp(34px, 7vw, 78px);
}

.legal-eyebrow {
  margin: 0 0 18px;
  color: #72b2ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 span {
  background: linear-gradient(90deg, #a9cdfc, #f392ba);
  background-clip: text;
  color: transparent;
}

.legal-lead {
  max-width: 760px;
  margin: 34px 0 64px;
  color: #c8d5e8;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

section {
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 15px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.025em;
}

section p,
section li {
  color: var(--muted);
}

section p {
  max-width: 780px;
  margin: 0 0 16px;
}

ol,
ul {
  padding-left: 1.25rem;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.source-list a {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(93, 160, 255, 0.25);
  border-radius: 999px;
  background: rgba(62, 148, 255, 0.08);
  text-decoration: none;
}

.legal-update {
  margin: 34px 0 0;
  color: #7688a4;
  font-size: 0.8rem;
}

.legal-footer {
  padding-block: 28px 44px;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .legal-header,
  .legal-footer,
  .legal-shell {
    width: min(100% - 24px, 980px);
  }

  .legal-shell {
    border-radius: 24px;
  }

  article {
    padding: 30px 22px;
  }

  .legal-lead {
    margin-bottom: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
