/* ============================================================
   Legal Pages — Politique de confidentialité, Mentions légales,
   Gestion des cookies
   Namespace: .ri-legal-* (shared), .ri-privacy-* (privacy illustration),
              .ri-ml-* (mentions légales), .ri-cks-* (cookies)
   ============================================================ */

/* ── Shared: hero ──────────────────────────────────────────────────────────── */

.ri-legal-hero {
  background: radial-gradient(circle at 80% 45%, #102b68, #071a40 27%, #020d1d 65%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.ri-legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2,13,29,.22), transparent 55%);
}
.ri-legal-hi {
  max-width: 1124px;
  margin: auto;
  min-height: 385px;
  padding: 42px 28px;
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(310px,.88fr);
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 48px;
}
.ri-cks-hero .ri-legal-hi { min-height: 330px; }
.ri-legal-crumb {
  font-size: 13px;
  color: #aebbd1;
  margin-bottom: 28px;
}
.ri-legal-crumb a {
  color: #aebbd1;
  text-decoration: none;
}
.ri-legal-crumb a:hover { color: #fff; }
.ri-legal-badge {
  display: inline-block;
  background: linear-gradient(90deg, #5738ff, #346cff);
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 7px;
  letter-spacing: .07em;
  color: #fff;
}
.ri-legal-hero h1 {
  font-size: 50px;
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: 16px 0 17px;
  max-width: 650px;
  color: #fff;
}
.ri-legal-hero-p {
  color: #c2cde0;
  line-height: 1.7;
  max-width: 620px;
  font-size: 15.5px;
  margin: 0;
}
.ri-legal-date {
  font-size: 11px;
  color: #8fa1bd;
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Shared: brief bar ─────────────────────────────────────────────────────── */

.ri-legal-brief {
  background: #fbfcff;
  border-bottom: 1px solid #e2e7f0;
}
.ri-legal-brief-in {
  max-width: 1124px;
  margin: auto;
  padding: 18px 28px;
  font-size: 12px;
  color: #53627d;
  min-height: 67px;
  display: flex;
  align-items: center;
  line-height: 1.6;
}
.ri-legal-brief-in strong { color: #0b1730; }

/* ── Shared: TOC + content layout ──────────────────────────────────────────── */

.ri-legal-layout {
  max-width: 1124px;
  margin: auto;
  padding: 58px 28px 72px;
  display: grid;
  grid-template-columns: 255px minmax(0,1fr);
  gap: 54px;
  align-items: start;
}
.ri-legal-toc {
  position: sticky;
  top: 24px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  padding: 20px 17px;
  box-shadow: 0 12px 35px rgba(20,37,76,.035);
  width: 100%;
}
.ri-legal-toc b {
  display: block;
  font-size: 11px;
  color: #8995aa;
  margin-bottom: 10px;
  letter-spacing: .08em;
  padding: 0 10px 5px;
}
.ri-legal-toc a {
  display: block;
  padding: 10px 11px;
  border-radius: 7px;
  font-size: 12px;
  color: #53617b;
  text-decoration: none;
  margin: 2px 0;
  transition: .18s;
}
.ri-legal-toc a:hover,
.ri-legal-toc a.is-active {
  background: #f3f2ff;
  color: #513cff;
  transform: translateX(2px);
}
.ri-legal-toc a.is-active {
  font-weight: 600;
}
.ri-legal-content { max-width: none; }

/* ── Shared: note, sections, callouts ──────────────────────────────────────── */

.ri-legal-note {
  border: 1px solid #dcd9ff;
  background: #f7f6ff;
  border-radius: 15px;
  padding: 24px 25px;
  margin-bottom: 34px;
  box-shadow: 0 10px 35px rgba(67,51,157,.035);
}
.ri-legal-note::before {
  content: "À RETENIR";
  display: block;
  color: #5940ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.ri-legal-note strong { font-size: 14px; color: #0b1730; }
.ri-legal-note p {
  font-size: 12px;
  color: #65748e;
  line-height: 1.65;
  margin: 7px 0 0;
}
.ri-legal-sec {
  scroll-margin-top: 25px;
  padding: 8px 0 38px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e2e7f0;
}
.ri-legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  border-radius: 999px;
  background: #f0efff;
  padding: 0 9px;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 900;
  color: #5a40ff;
  margin-bottom: 8px;
}
.ri-legal-sec h2 {
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -.6px;
  margin: 11px 0 14px;
  color: #0b1730;
}
.ri-legal-sec h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: #0b1730;
}
.ri-legal-sec p,
.ri-legal-sec li {
  font-size: 13.3px;
  line-height: 1.78;
  color: #53617a;
  max-width: 760px;
}
.ri-legal-sec ul { padding-left: 20px; max-width: 755px; }
.ri-legal-sec a { color: #503cff; font-weight: 700; }
.ri-legal-call {
  background: #f7f5ff;
  border: 1px solid #dcd8ff;
  border-radius: 12px;
  padding: 19px 20px;
  margin: 17px 0;
}
.ri-legal-call strong { font-size: 13px; color: #0b1730; }
.ri-legal-call p {
  font-size: 12px;
  color: #65748e;
  line-height: 1.65;
  margin: 7px 0 0;
}

/* ── Shared: table ─────────────────────────────────────────────────────────── */

.ri-legal-wrap { overflow: auto; }
.ri-legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e7f0;
  margin: 17px 0;
  table-layout: fixed;
}
.ri-legal-table th,
.ri-legal-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e7f0;
  border-right: 1px solid #e2e7f0;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.58;
}
.ri-legal-table th:last-child,
.ri-legal-table td:last-child { border-right: 0; }
.ri-legal-table tr:last-child td { border-bottom: 0; }
.ri-legal-table th {
  background: #f7f8fb;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #66738a;
}
.ri-legal-table th:nth-child(1),
.ri-legal-table td:nth-child(1) { width: 22%; }
.ri-legal-table th:nth-child(2),
.ri-legal-table td:nth-child(2) { width: 40%; }
.ri-legal-table th:nth-child(3),
.ri-legal-table td:nth-child(3) { width: 38%; }

/* ── Shared: rights grid ───────────────────────────────────────────────────── */

.ri-legal-rights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 17px 0;
}
.ri-legal-right {
  position: relative;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  padding: 18px 18px 17px;
  background: #fff;
  transition: .18s;
  min-height: 118px;
}
.ri-legal-right::before {
  content: "";
  display: block;
  width: 27px;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, #583cff, #4773ff);
  margin-bottom: 13px;
}
.ri-legal-right:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26,43,84,.055);
}
.ri-legal-right strong { font-size: 13px; color: #0b1730; }
.ri-legal-right p {
  font-size: 11.5px;
  margin: 5px 0;
  color: #53617a;
  line-height: 1.65;
}

/* ── Shared: CTA contact block ─────────────────────────────────────────────── */

.ri-legal-cta {
  position: relative;
  overflow: hidden;
  padding: 29px 30px;
  border: 1px solid #1d3470;
  background: linear-gradient(135deg, #06162e, #171853);
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 18px 45px rgba(11,24,64,.12);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 28px;
  align-items: center;
  margin-top: 20px;
}
.ri-legal-cta::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -80px;
  bottom: -100px;
  border: 1px solid rgba(124,103,255,.3);
  box-shadow: 0 0 50px rgba(87,56,255,.14);
}
.ri-legal-cta h3 {
  font-size: 19px;
  margin: 0 0 7px;
  color: #fff;
  grid-column: 1;
}
.ri-legal-cta p {
  color: #aebbd0;
  margin: 0;
  max-width: 560px;
  grid-column: 1;
  font-size: 13px;
  line-height: 1.6;
}
.ri-legal-cta-btn {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border-radius: 8px;
  color: #fff !important;
  background: linear-gradient(100deg, #6545ff, #3971ff);
  box-shadow: 0 10px 24px rgba(67,67,255,.22);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.ri-legal-cta-btn b { font-size: 16px; font-weight: 500; }
.ri-legal-cta-btn:hover { filter: brightness(1.08); }

/* ══════════════════════════════════════════════════════════════════════════════
   PRIVACY PAGE — shield/lock illustration
   ══════════════════════════════════════════════════════════════════════════════ */

.ri-privacy-art {
  position: relative;
  height: 290px;
  width: 100%;
  min-width: 360px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.ri-privacy-glow {
  position: absolute;
  width: 330px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,91,255,.34) 0, rgba(75,55,255,.17) 34%, rgba(22,73,200,.07) 58%, transparent 73%);
  filter: blur(3px);
}
.ri-privacy-art::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 215px;
  border-radius: 50%;
  border: 1px solid rgba(65,104,255,.28);
  transform: rotate(-8deg);
  box-shadow: 0 0 32px rgba(67,72,255,.09), inset 0 0 35px rgba(67,72,255,.035);
}
.ri-privacy-art::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(123,82,255,.22);
  transform: rotate(12deg);
}
.ri-privacy-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ri-privacy-orbit--a {
  width: 425px;
  height: 126px;
  border-bottom: 1px solid rgba(65,126,255,.25);
  transform: rotate(4deg);
}
.ri-privacy-orbit--b {
  width: 275px;
  height: 245px;
  border-right: 1px solid rgba(106,75,255,.24);
  transform: rotate(36deg);
}
.ri-privacy-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4e8cff;
  box-shadow: 0 0 13px 4px rgba(63,119,255,.6);
}
.ri-privacy-dot--a { right: 7%; top: 44%; }
.ri-privacy-dot--b { left: 13%; bottom: 28%; width: 3px; height: 3px; background: #7a63ff; }
.ri-privacy-tile {
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(91,113,255,.47);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(25,48,105,.72), rgba(15,24,64,.78));
  box-shadow: 0 12px 30px rgba(0,0,0,.18), inset 0 0 18px rgba(78,78,255,.08);
  backdrop-filter: blur(3px);
}
.ri-privacy-tile--user { left: 7%; top: 23%; transform: rotate(-7deg); }
.ri-privacy-user-head {
  position: absolute;
  left: 25px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #405eff;
  border: 1px solid #7185ff;
}
.ri-privacy-user-body {
  position: absolute;
  left: 18px;
  top: 31px;
  width: 28px;
  height: 17px;
  border-radius: 15px 15px 5px 5px;
  background: #354bd0;
}
.ri-privacy-tile--doc { right: 3%; top: 24%; transform: rotate(8deg); padding: 17px 14px; }
.ri-privacy-tile--doc i {
  display: block;
  height: 3px;
  border-radius: 4px;
  background: #4667df;
  margin: 5px 0;
}
.ri-privacy-tile--doc i:nth-child(2) { width: 80%; }
.ri-privacy-tile--doc i:nth-child(3) { width: 65%; }
.ri-privacy-tile--check {
  right: 14%;
  bottom: 12%;
  transform: rotate(7deg);
  display: grid;
  place-items: center;
  color: #7688ff;
  font-size: 27px;
  font-weight: 700;
}
.ri-privacy-shield-card {
  position: relative;
  z-index: 4;
  width: 155px;
  height: 175px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 26px 32px rgba(0,0,0,.28));
}
.ri-privacy-shield-shape {
  width: 142px;
  height: 164px;
  clip-path: polygon(50% 0, 94% 17%, 88% 68%, 76% 84%, 50% 100%, 24% 84%, 12% 68%, 6% 17%);
  background: linear-gradient(145deg, #2567ff 0%, #5239ff 43%, #171d69 100%);
  padding: 3px;
  position: relative;
  filter: drop-shadow(0 0 19px rgba(72,77,255,.78));
}
.ri-privacy-shield-shape::before {
  content: "";
  position: absolute;
  inset: 4px;
  clip-path: inherit;
  background: linear-gradient(150deg, #0b2d73 0%, #111f59 52%, #081634 100%);
}
.ri-privacy-shield-shape::after {
  content: "";
  position: absolute;
  inset: 16px;
  clip-path: inherit;
  border: 1px solid rgba(109,139,255,.42);
  background: linear-gradient(145deg, rgba(44,105,255,.15), rgba(82,48,255,.07));
}
.ri-privacy-lock {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
  width: 62px;
  height: 72px;
}
.ri-privacy-lock-loop {
  position: absolute;
  left: 12px;
  top: 0;
  width: 38px;
  height: 38px;
  border: 5px solid #7398ff;
  border-bottom: 0;
  border-radius: 22px 22px 4px 4px;
  box-shadow: 0 0 12px rgba(84,121,255,.65);
}
.ri-privacy-lock-body {
  position: absolute;
  left: 3px;
  bottom: 0;
  width: 56px;
  height: 43px;
  border: 1px solid #9b8dff;
  border-radius: 9px;
  background: linear-gradient(145deg, #5b63ff, #3933c7 58%, #23206f);
  box-shadow: 0 0 18px rgba(94,77,255,.55), inset 0 1px rgba(255,255,255,.25);
}
.ri-privacy-lock-body i {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 5px;
  height: 12px;
  background: #d6d7ff;
  border-radius: 5px;
  transform: translateX(-50%);
}

/* ══════════════════════════════════════════════════════════════════════════════
   MENTIONS LÉGALES — document illustration + identity/host blocks
   ══════════════════════════════════════════════════════════════════════════════ */

.ri-ml-art {
  position: relative;
  height: 290px;
  min-width: 360px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.ri-ml-glow {
  position: absolute;
  width: 310px;
  height: 225px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,69,255,.34), rgba(42,98,255,.12) 45%, transparent 72%);
}
.ri-ml-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(92,103,255,.25);
}
.ri-ml-orbit--one { width: 365px; height: 185px; transform: rotate(-9deg); }
.ri-ml-orbit--two { width: 270px; height: 225px; transform: rotate(29deg); }
.ri-ml-doc {
  z-index: 3;
  width: 137px;
  height: 172px;
  border: 1px solid #756cff;
  border-radius: 18px;
  background: linear-gradient(145deg, #11295c, #0a1736);
  box-shadow: 0 0 38px rgba(85,66,255,.5), 0 25px 45px rgba(0,0,0,.25);
  padding: 58px 24px 20px;
  transform: rotate(-3deg);
  position: relative;
}
.ri-ml-fold {
  position: absolute;
  right: 0;
  top: 0;
  width: 39px;
  height: 39px;
  background: linear-gradient(225deg, #405cf3 0 49%, transparent 50%);
  border-radius: 0 17px 0 7px;
}
.ri-ml-seal {
  position: absolute;
  left: 24px;
  top: 19px;
  width: 31px;
  height: 31px;
  border: 1px solid #7d8aff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #9e91ff;
  font-size: 19px;
  font-weight: 800;
}
.ri-ml-doc i {
  display: block;
  height: 4px;
  border-radius: 5px;
  background: #5265ba;
  margin: 10px 0;
}
.ri-ml-doc i:nth-of-type(2) { width: 78%; }
.ri-ml-doc i:nth-of-type(3) { width: 88%; }
.ri-ml-doc i:nth-of-type(4) { width: 58%; }
.ri-ml-tile {
  position: absolute;
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(100,112,255,.42);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(28,48,103,.72), rgba(12,23,58,.8));
  display: grid;
  place-items: center;
  color: #7288ff;
  font-size: 24px;
}
.ri-ml-tile--a { left: 11%; top: 26%; transform: rotate(-8deg); }
.ri-ml-tile--b { right: 10%; bottom: 18%; transform: rotate(8deg); color: #9a83ff; }

/* Mentions légales identity block */
.ri-ml-identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e2e7f0;
  border-radius: 13px;
  overflow: hidden;
  margin: 18px 0;
}
.ri-ml-identity div {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e7f0;
}
.ri-ml-identity div:nth-child(odd) { border-right: 1px solid #e2e7f0; }
.ri-ml-identity div:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
  border-right: 0;
}
.ri-ml-identity span {
  display: block;
  color: #8490a5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}
.ri-ml-identity strong {
  font-size: 12.5px;
  color: #34425b;
  line-height: 1.45;
}
.ri-ml-micro { font-size: 11.5px !important; color: #7b879b !important; }

/* Host block */
.ri-ml-host {
  display: grid;
  grid-template-columns: 118px minmax(0,1fr);
  gap: 15px;
  border: 1px solid #dcd9ff;
  background: #f8f7ff;
  border-radius: 13px;
  padding: 19px;
  margin: 17px 0;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ri-ml-host:hover {
  transform: translateY(-2px);
  border-color: #c9c2ff;
  box-shadow: 0 14px 32px rgba(52,49,126,.08);
}
.ri-ml-host-logo {
  width: 118px;
  min-height: 62px;
  padding: 10px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
}
.ri-o2-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}
.ri-o2-ring {
  position: absolute;
  left: 1px;
  top: 1px;
  width: 20px;
  height: 20px;
  border: 4px solid #ef5b32;
  border-radius: 50%;
  box-sizing: border-box;
}
.ri-o2-ring::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -7px;
  width: 13px;
  height: 5px;
  background: #ef5b32;
  border-radius: 4px;
  transform: rotate(-42deg);
  transform-origin: center;
}
.ri-o2-dot {
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef5b32;
}
.ri-o2-word {
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.7px;
  color: #242b35;
  white-space: nowrap;
}
.ri-ml-host-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ri-ml-host > div > span {
  font-size: 9.5px;
  font-weight: 900;
  color: #6650ff;
}
.ri-ml-host-title h3 { margin: 4px 0; }
.ri-ml-host-title b { font-size: 10.5px; color: #5a42ff; white-space: nowrap; }
.ri-ml-host p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7 !important;
  color: #53617a;
}

.ri-ml-verified {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #dce9e4;
  background: #f6fbf9;
  border-radius: 10px;
}
.ri-ml-verified > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f7ef;
  color: #07855f;
  font-weight: 900;
  flex-shrink: 0;
}
.ri-ml-verified strong { display: block; font-size: 11.5px; color: #28483d; }
.ri-ml-verified small { display: block; margin-top: 2px; color: #71847d; font-size: 10.5px; }

.ri-ml-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #503cff !important;
  background: #f4f2ff;
  border: 1px solid #e0dcff;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  margin-top: 12px;
}
.ri-ml-btn b { font-size: 15px; }

/* ══════════════════════════════════════════════════════════════════════════════
   COOKIES PAGE — artwork + preferences UI
   ══════════════════════════════════════════════════════════════════════════════ */

.ri-cks-art {
  position: relative;
  height: 290px;
  min-width: 360px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.ri-cks-glow {
  position: absolute;
  width: 300px;
  height: 225px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,66,255,.35), rgba(38,91,255,.12) 47%, transparent 72%);
}
.ri-cks-orbit {
  position: absolute;
  border: 1px solid rgba(99,105,255,.25);
  border-radius: 50%;
}
.ri-cks-orbit--a { width: 360px; height: 178px; transform: rotate(-10deg); }
.ri-cks-orbit--b { width: 260px; height: 230px; transform: rotate(31deg); }
.ri-cks-core {
  position: relative;
  z-index: 3;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6057ff, #3c3ac6 52%, #17245c);
  border: 2px solid #7a76ff;
  box-shadow: 0 0 35px rgba(83,65,255,.55), 0 25px 42px rgba(0,0,0,.22);
}
.ri-cks-core::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(190,192,255,.22);
  border-radius: 50%;
}
.ri-cks-core i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #171b51;
  box-shadow: inset 0 1px 3px #080b28;
}
.ri-cks-core i:nth-of-type(1) { left: 39px; top: 35px; }
.ri-cks-core i:nth-of-type(2) { right: 34px; top: 55px; }
.ri-cks-core i:nth-of-type(3) { left: 58px; bottom: 35px; }
.ri-cks-core i:nth-of-type(4) { right: 30px; bottom: 25px; width: 8px; height: 8px; }
.ri-cks-core i:nth-of-type(5) { left: 25px; top: 76px; width: 9px; height: 9px; }
.ri-cks-bite {
  position: absolute;
  z-index: 5;
  background: #09152f;
  border-radius: 50%;
}
.ri-cks-bite--1 { width: 48px; height: 48px; right: -13px; top: -6px; }
.ri-cks-bite--2 { width: 34px; height: 34px; right: -17px; top: 33px; }
.ri-cks-mini {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(106,115,255,.4);
  border-radius: 13px;
  background: rgba(16,29,68,.8);
  display: grid;
  place-items: center;
  color: #7889ff;
  font-size: 23px;
}
.ri-cks-mini--1 { left: 10%; top: 27%; transform: rotate(-8deg); }
.ri-cks-mini--2 { right: 10%; bottom: 18%; transform: rotate(7deg); }

/* Cookie intro bar */
.ri-cks-intro {
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}
.ri-cks-intro-in {
  max-width: 1124px;
  margin: auto;
  padding: 35px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: center;
}
.ri-cks-eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .1em;
  color: #654bff;
  margin-bottom: 8px;
}
.ri-cks-intro h2,
.ri-cks-pref-top h2,
.ri-cks-info-grid h2,
.ri-cks-legal h2 {
  margin: 0;
  color: #14213a;
  letter-spacing: -.03em;
}
.ri-cks-intro h2 { font-size: 22px; }
.ri-cks-intro p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #6d798d;
  max-width: 710px;
  margin: 8px 0 0;
}
.ri-cks-privacy-pill {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px 17px;
  background: #f7f7ff;
  border: 1px solid #e2dfff;
  border-radius: 12px;
}
.ri-cks-privacy-pill > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #ece9ff;
  color: #5b43ff;
  border-radius: 50%;
  flex-shrink: 0;
}
.ri-cks-privacy-pill strong,
.ri-cks-privacy-pill small { display: block; }
.ri-cks-privacy-pill strong { font-size: 11.5px; }
.ri-cks-privacy-pill small { font-size: 10px; color: #7b8497; margin-top: 2px; }

/* Preferences section */
.ri-cks-pref-wrap {
  max-width: 1124px;
  margin: auto;
  padding: 60px 28px 68px;
}
.ri-cks-pref-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}
.ri-cks-pref-top h2 { font-size: 28px; }
.ri-cks-pref-top p { font-size: 12px; color: #7b879a; margin: 7px 0 0; }
.ri-cks-pref-actions { display: flex; gap: 9px; }
.ri-cks-btn-ghost,
.ri-cks-btn-accept,
.ri-cks-save-btn {
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.ri-cks-btn-ghost {
  background: #fff;
  border: 1px solid #dce1ea;
  color: #445169;
}
.ri-cks-btn-accept,
.ri-cks-save-btn {
  border: 0;
  background: linear-gradient(100deg, #6545ff, #3971ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(75,65,255,.16);
}

/* Cookie rows list */
.ri-cks-list {
  border: 1px solid #e4e7ed;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(25,38,72,.05);
}
.ri-cks-row {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 54px;
  gap: 17px;
  align-items: start;
  padding: 22px 23px;
  border-bottom: 1px solid #e9ebf0;
}
.ri-cks-row:last-child { border-bottom: 0; }
.ri-cks-row--required { background: #fbfbfe; }
.ri-cks-icon {
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #f0eeff;
  color: #5a45ff;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ri-cks-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.ri-cks-heading h3 { font-size: 15px; margin: 0; color: #1d2b45; }
.ri-cks-tag-required,
.ri-cks-tag-optional {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 4px 7px;
  border-radius: 20px;
}
.ri-cks-tag-required { background: #eaf8f2; color: #07835e; }
.ri-cks-tag-optional { background: #f0eeff; color: #624aff; }
.ri-cks-text p { font-size: 11.5px; line-height: 1.65; color: #707c90; margin: 7px 0; }
.ri-cks-details-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #5543dd;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

/* Toggle switch */
.ri-cks-toggle {
  position: relative;
  width: 43px;
  height: 24px;
  margin-top: 9px;
  display: block;
}
.ri-cks-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ri-cks-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #d8dde6;
  transition: .2s;
  cursor: pointer;
}
.ri-cks-toggle span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.16);
  transition: .2s;
}
.ri-cks-toggle input:checked + span,
.ri-cks-toggle--fixed span { background: #5945ff; }
.ri-cks-toggle input:checked + span::after,
.ri-cks-toggle--fixed span::after { transform: translateX(19px); }
.ri-cks-toggle--fixed span { cursor: default; }

/* Save bar */
.ri-cks-save-bar {
  margin-top: 16px;
  border-radius: 13px;
  background: #0d1b38;
  color: #fff;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ri-cks-save-bar strong,
.ri-cks-save-bar span { display: block; }
.ri-cks-save-bar strong { font-size: 12px; }
.ri-cks-save-bar span { font-size: 10px; color: #9eabc1; margin-top: 3px; }
.ri-cks-save-btn { padding: 12px 18px; }

/* Info section */
.ri-cks-info {
  background: #f7f8fb;
  border-top: 1px solid #eceef3;
  border-bottom: 1px solid #eceef3;
}
.ri-cks-info-grid {
  max-width: 1124px;
  margin: auto;
  padding: 60px 28px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
}
.ri-cks-info-grid h2 { font-size: 27px; }
.ri-cks-info-grid > div > p { font-size: 12px; line-height: 1.75; color: #6e7b90; }
.ri-cks-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ri-cks-info-cards > div {
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 12px;
  padding: 18px;
}
.ri-cks-info-cards b { color: #654bff; font-size: 10px; }
.ri-cks-info-cards strong { display: block; margin: 18px 0 6px; font-size: 12px; }
.ri-cks-info-cards p { font-size: 10.5px; line-height: 1.55; color: #778296; margin: 0; }

/* Legal link block at bottom */
.ri-cks-legal {
  max-width: 1068px;
  margin: 55px auto 65px;
  padding: 28px 30px;
  border: 1px solid #ddd9ff;
  background: linear-gradient(110deg, #f8f6ff, #f8faff);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.ri-cks-legal h2 { font-size: 21px; }
.ri-cks-legal p {
  font-size: 11.5px;
  line-height: 1.6;
  color: #718096;
  max-width: 650px;
  margin: 7px 0 0;
}
.ri-cks-policy-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #d9d5ff;
  border-radius: 8px;
  padding: 11px 14px;
  color: #513cff !important;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  flex-shrink: 0;
}

/* Banner styles moved to main.css (loaded on all pages) */

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 980px) and (min-width: 701px) {
  .ri-legal-layout { grid-template-columns: 220px minmax(0,1fr); gap: 32px; }
  .ri-legal-hero h1 { font-size: 43px; }
  .ri-legal-cta { grid-template-columns: 1fr; }
  .ri-legal-cta h3,
  .ri-legal-cta p,
  .ri-legal-cta-btn { grid-column: 1; grid-row: auto; }
  .ri-legal-cta-btn { margin-top: 16px; justify-self: start; }
  .ri-privacy-art,
  .ri-ml-art,
  .ri-cks-art { min-width: 290px; transform: scale(.88); }
}

@media (max-width: 700px) {
  .ri-legal-hi { display: block; min-height: 0; padding: 27px 18px 36px; position: relative; }
  .ri-legal-hero h1 { font-size: 36px; line-height: 1.06; padding-right: 86px; }
  .ri-legal-hero-p { font-size: 13.5px; }
  .ri-legal-brief-in { min-height: 0; }
  .ri-legal-layout {
    display: block;
    padding: 34px 18px 55px;
  }
  .ri-legal-toc {
    position: relative;
    top: auto;
    display: flex;
    overflow: auto;
    gap: 5px;
    padding: 10px;
    margin-bottom: 28px;
    border-radius: 12px;
    box-shadow: none;
  }
  .ri-legal-toc b { display: none; }
  .ri-legal-toc a { white-space: nowrap; background: #f7f8fb; margin: 0; }
  .ri-legal-toc a:hover { transform: none; }
  .ri-legal-content { max-width: none; }
  .ri-legal-sec h2 { font-size: 23px; }
  .ri-legal-sec p,
  .ri-legal-sec li { max-width: none; }
  .ri-legal-wrap { overflow: auto; }
  .ri-legal-table { min-width: 500px; }
  .ri-legal-table th,
  .ri-legal-table td { width: auto !important; }
  .ri-legal-rights { grid-template-columns: 1fr 1fr; }
  .ri-legal-cta { display: block; padding: 23px 21px; }
  .ri-legal-cta p { margin-bottom: 16px; }
  .ri-legal-cta-btn { display: flex; width: 100%; white-space: normal; text-align: center; }
  .ri-legal-note { margin-bottom: 29px; padding: 20px; }
  /* Privacy illustration */
  .ri-privacy-art {
    position: absolute;
    right: 4px;
    top: 72px;
    width: 96px;
    height: 96px;
    min-width: 0;
    transform: none;
  }
  .ri-privacy-glow { width: 90px; height: 90px; }
  .ri-privacy-art::before { width: 100px; height: 57px; }
  .ri-privacy-art::after { width: 78px; height: 50px; }
  .ri-privacy-orbit--a { width: 105px; height: 40px; }
  .ri-privacy-orbit--b { width: 65px; height: 82px; }
  .ri-privacy-shield-card { width: 60px; height: 70px; }
  .ri-privacy-shield-shape { width: 57px; height: 66px; padding: 1px; }
  .ri-privacy-shield-shape::after { inset: 7px; }
  .ri-privacy-lock { width: 26px; height: 31px; }
  .ri-privacy-lock-loop { left: 5px; width: 16px; height: 17px; border-width: 2px; }
  .ri-privacy-lock-body { left: 1px; width: 24px; height: 19px; border-radius: 4px; }
  .ri-privacy-lock-body i { top: 5px; width: 2px; height: 6px; }
  .ri-privacy-tile { display: none; }
  .ri-privacy-dot { display: none; }
  /* Mentions légales illustration */
  .ri-ml-art {
    position: absolute;
    right: 5px;
    top: 74px;
    width: 94px;
    height: 94px;
    min-width: 0;
    transform: none;
  }
  .ri-ml-glow { width: 90px; height: 90px; }
  .ri-ml-orbit--one { width: 100px; height: 53px; }
  .ri-ml-orbit--two { width: 73px; height: 68px; }
  .ri-ml-doc { width: 48px; height: 61px; border-radius: 7px; padding: 25px 8px 5px; }
  .ri-ml-fold { width: 14px; height: 14px; }
  .ri-ml-seal { left: 8px; top: 7px; width: 12px; height: 12px; border-radius: 3px; font-size: 7px; }
  .ri-ml-doc i { height: 1px; margin: 3px 0; }
  .ri-ml-tile { display: none; }
  .ri-ml-identity { grid-template-columns: 1fr; }
  .ri-ml-identity div,
  .ri-ml-identity div:nth-child(odd),
  .ri-ml-identity div:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid #e2e7f0;
  }
  .ri-ml-identity div:last-child { border-bottom: 0; }
  .ri-ml-host { grid-template-columns: 88px minmax(0,1fr); gap: 12px; }
  .ri-ml-host-logo { width: 88px; min-height: 52px; padding: 8px 6px; }
  .ri-o2-mark { width: 22px; height: 22px; flex-basis: 22px; transform: scale(.82); }
  .ri-o2-word { font-size: 11px; }
  .ri-ml-host-title { display: block; }
  .ri-ml-host-title b { display: block; margin: 2px 0 7px; white-space: normal; }
  /* Cookies illustration */
  .ri-cks-art {
    position: absolute;
    right: 5px;
    top: 77px;
    width: 92px;
    height: 92px;
    min-width: 0;
    transform: none;
  }
  .ri-cks-glow { width: 90px; height: 90px; }
  .ri-cks-orbit--a { width: 100px; height: 50px; }
  .ri-cks-orbit--b { width: 68px; height: 78px; }
  .ri-cks-core { width: 55px; height: 55px; }
  .ri-cks-core i { transform: scale(.38); transform-origin: center; }
  .ri-cks-bite--1 { width: 19px; height: 19px; right: -5px; }
  .ri-cks-bite--2 { width: 13px; height: 13px; right: -6px; top: 14px; }
  .ri-cks-mini { display: none; }
  /* Cookies UI */
  .ri-cks-intro-in { grid-template-columns: 1fr; padding: 27px 18px; }
  .ri-cks-privacy-pill { width: 100%; }
  .ri-cks-pref-wrap { padding: 43px 18px 50px; }
  .ri-cks-pref-top { display: block; }
  .ri-cks-pref-actions { margin-top: 17px; }
  .ri-cks-pref-actions button { flex: 1; }
  .ri-cks-row { grid-template-columns: 40px minmax(0,1fr) 44px; gap: 11px; padding: 18px 14px; }
  .ri-cks-icon { width: 37px; height: 37px; }
  .ri-cks-heading { display: block; }
  .ri-cks-tag-required,
  .ri-cks-tag-optional { display: inline-block; margin-top: 5px; }
  .ri-cks-save-bar { display: block; }
  .ri-cks-save-btn { width: 100%; margin-top: 13px; }
  .ri-cks-info-grid { grid-template-columns: 1fr; padding: 45px 18px; gap: 28px; }
  .ri-cks-info-cards { grid-template-columns: 1fr; }
  .ri-cks-legal { margin: 38px 18px 50px; padding: 23px; display: block; }
  .ri-cks-policy-btn { margin-top: 18px; white-space: normal; }
}

@media (max-width: 480px) {
  .ri-legal-hero h1 { font-size: 33px; padding-right: 74px; }
  .ri-legal-hero-p { font-size: 13px; }
  .ri-legal-rights { grid-template-columns: 1fr; }
}
