.cookies-page {
  overflow: clip;
}

.cookies-page section[id],
.cookies-page h2[id] {
  scroll-margin-top: 8rem;
}

.cookies-page__intro {
  padding-top: clamp(var(--space-8), 10vw, var(--space-10));
  padding-bottom: var(--space-7);
}

.cookies-page__intro-panel {
  position: relative;
  width: min(100%, 47.5rem);
  min-width: 0;
  overflow: hidden;
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  border: var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--color-pearl-100);
}

.cookies-page__intro-panel > * {
  position: relative;
  z-index: 1;
}

.cookies-page__trajectory {
  position: absolute;
  z-index: 0;
  top: 1.75rem;
  right: -4rem;
  width: 15rem;
  height: 5rem;
  border-top: 2px solid var(--color-emerald-500);
  border-radius: 50%;
  opacity: 0.6;
  transform: rotate(-18deg);
}

.cookies-page__intro-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  max-width: 66ch;
}

.cookies-page__intro-copy p,
.cookies-page__intro-copy .cookies-page__independence {
  margin: 0;
}

.cookies-page__independence {
  padding: var(--space-4);
  border-inline-start: 4px solid var(--color-emerald-700);
  background: rgb(255 252 247 / 72%);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.cookies-page__date,
.cookies-page__version-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: baseline;
  width: fit-content;
  margin: var(--space-6) 0 0;
  padding-top: var(--space-4);
  border-top: var(--border-default);
  font-variant-numeric: tabular-nums;
}

.cookies-page__date span,
.cookies-page__version-stamp span {
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cookies-page__date time,
.cookies-page__version-stamp time {
  color: var(--color-navy-950);
  font-weight: 700;
}

.cookies-page__contents {
  padding-bottom: var(--space-7);
}

.cookies-page__contents-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  width: min(100%, 47.5rem);
  min-width: 0;
  padding: var(--space-6);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.cookies-page__contents-heading,
.cookies-page__section-lead,
.cookies-page__definition,
.cookies-page__retention-main,
.cookies-page__browser-advice,
.cookies-page__updates-card {
  min-width: 0;
}

.cookies-page__contents-heading p:last-child {
  max-width: 62ch;
}

.cookies-page__anchor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: policy-anchor;
}

.cookies-page__anchor-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  border-top: var(--border-default);
  counter-increment: policy-anchor;
}

.cookies-page__anchor-list li::before {
  content: "0" counter(policy-anchor);
  color: var(--color-emerald-700);
  font-family: var(--font-heading);
  font-weight: 700;
}

.cookies-page__anchor-list a {
  display: inline-flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 600;
}

.cookies-page__understanding {
  background: var(--color-white);
}

.cookies-page__understanding-grid,
.cookies-page__retention-grid,
.cookies-page__choices-grid,
.cookies-page__browser-grid {
  display: grid;
  min-width: 0;
  align-items: start;
}

.cookies-page__understanding-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-6);
}

.cookies-page__definition-copy {
  max-width: 68ch;
}

.cookies-page__definition-copy p:last-child,
.cookies-page__editorial-context p:last-child,
.cookies-page__category-card p:last-child,
.cookies-page__retention-copy p:last-child,
.cookies-page__consent-retention p:last-child,
.cookies-page__choice-panel p:last-child,
.cookies-page__modify-card p:last-child,
.cookies-page__practical-note p:last-child,
.cookies-page__browser-copy p:last-child,
.cookies-page__rights-card p:last-child,
.cookies-page__updates-copy p:last-child {
  margin-bottom: 0;
}

.cookies-page__editorial-context {
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid #b8ddf6;
  border-radius: var(--radius-lg);
  background: var(--color-azure-100);
}

.cookies-page__editorial-context p {
  max-width: 58ch;
}

.cookies-page__purposes {
  background: var(--color-pearl-50);
}

.cookies-page__section-lead {
  width: min(100%, 43.75rem);
  margin-bottom: var(--space-7);
}

.cookies-page__section-lead > p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
}

.cookies-page__category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
}

.cookies-page__category-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  overflow: hidden;
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.cookies-page__category-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
}

.cookies-page__category-card--necessary::before { background: var(--color-emerald-700); }
.cookies-page__category-card--preferences::before { background: var(--color-azure-600); }
.cookies-page__category-card--audience::before { background: var(--color-sun-400); }
.cookies-page__category-card--third-party::before { background: var(--color-coral-500); }

.cookies-page__category-card > * {
  min-width: 0;
  margin: 0;
}

.cookies-page__category-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.cookies-page__category-number {
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cookies-page__category-card .tag {
  height: auto;
  min-height: 1.875rem;
  white-space: normal;
}

.cookies-page__category-card p {
  max-width: 46ch;
}

.cookies-page__retention {
  background: var(--color-white);
}

.cookies-page__retention-grid {
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  gap: var(--space-6);
}

.cookies-page__retention-copy {
  max-width: 64ch;
}

.cookies-page__retention-table-wrap {
  min-width: 0;
  margin-top: var(--space-5);
}

.cookies-page__retention-table {
  table-layout: fixed;
  overflow: hidden;
  border: var(--border-default);
  border-radius: var(--radius-md);
}

.cookies-page__retention-table th,
.cookies-page__retention-table td {
  overflow-wrap: anywhere;
}

.cookies-page__retention-table thead {
  background: var(--color-navy-950);
  color: var(--color-white);
}

.cookies-page__retention-table thead th {
  color: inherit;
}

.cookies-page__retention-table th:nth-child(1),
.cookies-page__retention-table td:nth-child(1) { width: 24%; }
.cookies-page__retention-table th:nth-child(2),
.cookies-page__retention-table td:nth-child(2) { width: 34%; }
.cookies-page__retention-table th:nth-child(3),
.cookies-page__retention-table td:nth-child(3) { width: 42%; }

.cookies-page__consent-retention {
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--color-pearl-100);
}

.cookies-page__consent-retention p {
  max-width: 42ch;
}

.cookies-page__choices {
  background: var(--color-pearl-50);
}

.cookies-page__section-lead--choices {
  margin-bottom: var(--space-6);
}

.cookies-page__choices-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-6);
}

.cookies-page__choice-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(var(--space-6), 4vw, var(--space-7));
  border-radius: var(--radius-lg);
  background: var(--color-emerald-700);
  color: var(--color-white);
}

.cookies-page__choice-panel > * {
  min-width: 0;
  margin: 0;
}

.cookies-page__choice-panel h3,
.cookies-page__choice-panel .eyebrow {
  color: var(--color-white);
}

.cookies-page__choice-panel .eyebrow {
  opacity: 0.82;
}

.cookies-page__choice-panel p,
.cookies-page__choice-panel li {
  max-width: 60ch;
}

.cookies-page__choice-panel ul {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding-inline-start: 1.25rem;
}

.cookies-page__choice-panel li::marker {
  color: var(--color-sun-400);
}

.cookies-page__choices-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
}

.cookies-page__modify-card,
.cookies-page__practical-note {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
}

.cookies-page__modify-card {
  border: 1px solid var(--color-emerald-700);
  background: var(--color-white);
}

.cookies-page__practical-note {
  border: 1px solid #b8ddf6;
  background: var(--color-azure-100);
}

.cookies-page__modify-card > *,
.cookies-page__practical-note > * {
  min-width: 0;
  margin: 0;
}

.cookies-page__modify-card p,
.cookies-page__practical-note p {
  max-width: 56ch;
}

.cookies-page__preferences-link {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-emerald-700);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cookies-page__preferences-help {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.cookies-page__browser-rights {
  background: var(--color-white);
}

.cookies-page__browser-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-6);
}

.cookies-page__browser-copy {
  max-width: 64ch;
}

.cookies-page__browser-copy ol {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
}

.cookies-page__rights-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-navy-950);
  color: var(--color-white);
}

.cookies-page__rights-card > * {
  min-width: 0;
  margin: 0;
}

.cookies-page__rights-card h3,
.cookies-page__rights-card .eyebrow {
  color: var(--color-white);
}

.cookies-page__rights-card .eyebrow {
  color: var(--color-sun-400);
}

.cookies-page__rights-card p {
  max-width: 52ch;
}

.cookies-page__rights-card a {
  color: var(--color-white);
  font-weight: 700;
}

.cookies-page__rights-card a:hover {
  color: var(--color-sun-400);
}

.cookies-page__updates {
  padding-top: var(--space-7);
  background: var(--color-pearl-50);
}

.cookies-page__updates-card {
  width: min(100%, 47.5rem);
  padding: var(--space-6);
  border-top: 1px solid var(--color-line);
  border-right: var(--border-default);
  border-bottom: var(--border-default);
  border-left: var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--color-pearl-100);
}

.cookies-page__updates-copy {
  max-width: 66ch;
}

.cookies-page__version-stamp {
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-radius: var(--radius-sm);
  background: #e6f6ef;
}

.cookies-page__version-stamp time {
  color: var(--color-emerald-700);
}

@media (max-width: 57.5rem) {
  .cookies-page__understanding-grid,
  .cookies-page__retention-grid,
  .cookies-page__choices-grid,
  .cookies-page__browser-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookies-page__understanding-grid,
  .cookies-page__retention-grid,
  .cookies-page__choices-grid,
  .cookies-page__browser-grid {
    gap: var(--space-5);
  }

  .cookies-page__editorial-context,
  .cookies-page__consent-retention,
  .cookies-page__rights-card {
    width: 100%;
  }
}

@media (max-width: 51.25rem) {
  .cookies-page__category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48.75rem) {
  .cookies-page__retention-table,
  .cookies-page__retention-table tbody,
  .cookies-page__retention-table tr,
  .cookies-page__retention-table th,
  .cookies-page__retention-table td {
    display: block;
    width: 100% !important;
  }

  .cookies-page__retention-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .cookies-page__retention-table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .cookies-page__retention-table tr {
    padding: var(--space-4);
    border: var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--color-pearl-50);
  }

  .cookies-page__retention-table th,
  .cookies-page__retention-table td {
    padding: 0;
    border: 0;
  }

  .cookies-page__retention-table td {
    margin-top: var(--space-2);
  }

  .cookies-page__retention-table td::before {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--color-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .cookies-page__retention-table td:nth-child(2)::before { content: "Moment de fin"; }
  .cookies-page__retention-table td:nth-child(3)::before { content: "Principe appliqué"; }
}

@media (max-width: 43.75rem) {
  .cookies-page__anchor-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 47.5rem) {
  .cookies-page__intro {
    padding-top: var(--space-7);
  }

  .cookies-page__intro-panel,
  .cookies-page__contents-card,
  .cookies-page__updates-card {
    width: 100%;
    padding: var(--space-5);
  }

  .cookies-page__intro-panel h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .cookies-page__trajectory {
    top: 1rem;
    right: -7rem;
    opacity: 0.35;
  }

  .cookies-page__category-card,
  .cookies-page__editorial-context,
  .cookies-page__consent-retention,
  .cookies-page__rights-card {
    padding: var(--space-5);
  }

  .cookies-page__choice-panel {
    padding: var(--space-5);
  }

  .cookies-page__contents {
    padding-bottom: var(--space-6);
  }

  .cookies-page__section-lead {
    margin-bottom: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookies-page__trajectory {
    display: none;
  }
}
