/* Les documents reprennent les couleurs de la vitrine avec une largeur de lecture dédiée. */
:is(.policy-page, .utility-page) {
  --bg: #0b0a13;
  --text: #fff;
  --text-2: #d5d1dc;
  --text-3: #b8b1c4;
  --line: #26232f;
  background: var(--bg);
  font-family: var(--font-body);
}

:is(.policy-page, .utility-page) .site-header {
  background: var(--bg);
}

:is(.policy-page, .utility-page) .brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* Le sélecteur est commun à la vitrine et aux pages secondaires. */
.language-picker {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid #332c41;
  border-radius: 999px;
  background: #1e1a28;
  color: #fff;
  font: 650 .75rem/1 Inter, system-ui, sans-serif;
}

.language-picker svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.language-chevron {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.language-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}

.language-picker:focus-within {
  outline: 2px solid #d29bff;
  outline-offset: 3px;
}

.policy-page .legal-layout {
  grid-template-columns: 225px minmax(0, 68ch);
  justify-content: center;
  gap: 40px;
}

.policy-page .legal-layout:not(.has-document) {
  grid-template-columns: minmax(0, 68ch);
}

.policy-page .legal-sidebar {
  background: #14111d;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
}

.policy-page .legal-sidebar a.active {
  background: #6d2bc8;
}

:is(.policy-page, .utility-page) .legal-content h1,
.utility-page .reset-card h1 {
  font-family: inherit;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

:is(.policy-page, .utility-page) .site-footer {
  background: var(--bg);
}

.legal-all-policies {
  display: none;
}

@media (max-width: 800px) {
  .policy-page .legal-layout {
    grid-template-columns: minmax(0, 68ch);
    padding: 28px 0 56px;
  }

  /* Un lien direct doit ouvrir le document sans passer par la liste. */
  .policy-page .legal-sidebar {
    display: none;
  }

  .policy-page .legal-meta {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .legal-all-policies {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 22px;
    padding: 0 14px;
    border: 1px solid #40354f;
    border-radius: 999px;
    color: #e1baff;
    font-size: .875rem;
    font-weight: 650;
  }
}

.utility-page .account-page {
  max-width: 68ch;
  margin-inline: auto;
}

.utility-page .reset-card {
  max-width: 500px;
  padding: clamp(20px, 5vw, 36px);
  background: #14111d;
  border-color: var(--line);
}

.utility-page .reset-card h1 {
  font-size: clamp(1.75rem, 5vw, 2.15rem);
}

.utility-page .reset-card .btn-primary {
  min-height: 44px;
  background: #6d2bc8;
  border-radius: 999px;
}

.utility-page .reset-card .btn-primary:hover:not(:disabled) {
  background: #7833d5;
}

@media (max-width: 800px) {
  .utility-page .reset-wrap {
    padding: 28px 18px 56px;
  }
}
