/* Pages légales — Mentions / Cookies / CGU — Figma Make */

.nq-c-Legal {
  --legal-ink: #0D1B2A;
  --legal-primary: #E8203A;
  --legal-muted: #6B7280;
  --legal-faint: #9CA3AF;
  --legal-rule: #F3F4F6;
  --legal-display: var(--check-font-display, "Poppins", Helvetica, Arial, sans-serif);
  --legal-body: var(--check-font-body, "DM Sans", Helvetica, Arial, sans-serif);
  font-family: var(--legal-body);
  color: var(--legal-ink);
  background: #fff;
}

.nq-c-Legal-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  box-sizing: border-box;
}

.nq-c-Legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--legal-primary) !important;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.nq-c-Legal-back:hover {
  text-decoration: underline !important;
  opacity: 0.9;
}

.nq-c-Legal-hero {
  margin: 0 0 48px;
}

.nq-c-Legal-title {
  margin: 0 0 12px;
  font-family: var(--legal-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--legal-ink);
}

.nq-c-Legal-updated {
  margin: 0;
  font-size: 14px;
  color: var(--legal-faint);
}

.nq-c-Legal-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nq-c-Legal-sectionTitle {
  margin: 0 0 12px;
  font-family: var(--legal-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--legal-ink);
}

.nq-c-Legal-sectionBody {
  border-left: 3px solid var(--legal-rule);
  padding-left: 20px;
  box-sizing: border-box;
}

.nq-c-Legal-sectionBody p,
.nq-c-Legal-sectionBody--raw p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--legal-muted);
}

.nq-c-Legal-sectionBody p:last-child,
.nq-c-Legal-sectionBody--raw p:last-child {
  margin-bottom: 0;
}

.nq-c-Legal-sectionBody ul,
.nq-c-Legal-sectionBody ol,
.nq-c-Legal-sectionBody--raw ul,
.nq-c-Legal-sectionBody--raw ol {
  margin: 0 0 12px;
  padding-left: 1.15em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--legal-muted);
}

.nq-c-Legal-sectionBody li,
.nq-c-Legal-sectionBody--raw li {
  margin: 0 0 6px;
}

.nq-c-Legal-sectionBody a,
.nq-c-Legal-sectionBody--raw a {
  color: var(--legal-primary);
  font-weight: 600;
  text-decoration: underline;
}

.nq-c-Legal-sectionBody--raw h2 {
  margin: 32px 0 12px;
  font-family: var(--legal-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--legal-ink);
}

.nq-c-Legal-sectionBody--raw h2:first-child {
  margin-top: 0;
}

.nq-c-Legal-sectionBody--raw h3 {
  margin: 20px 0 8px;
  font-family: var(--legal-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--legal-ink);
}

@media (max-width: 767px) {
  .nq-c-Legal-inner {
    padding: 40px 16px 72px;
  }

  .nq-c-Legal-back {
    margin-bottom: 28px;
  }

  .nq-c-Legal-hero {
    margin-bottom: 36px;
  }

  .nq-c-Legal-sections {
    gap: 32px;
  }
}

/* ---- Page cookies / préférences RGPD ---- */
.nq-c-Cookies-intro {
  margin-bottom: 40px;
}

.nq-c-Cookies-prefs {
  margin-top: 48px;
  padding-top: 8px;
}

.nq-c-Cookies-prefsTitle {
  margin-bottom: 8px;
}

.nq-c-Cookies-prefsLead {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--legal-muted);
}

.nq-c-Cookies-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nq-c-Cookies-card {
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(13, 27, 42, 0.04);
}

.nq-c-Cookies-cardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--legal-rule);
  background: #FAFBFC;
}

.nq-c-Cookies-cardTitles {
  min-width: 0;
  flex: 1;
}

.nq-c-Cookies-cardTitle {
  margin: 0;
  font-family: var(--legal-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--legal-ink);
}

.nq-c-Cookies-cardHint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--legal-faint);
}

.nq-c-Cookies-locked {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--legal-muted);
  background: #F3F4F6;
}

.nq-c-Cookies-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  margin-top: 2px;
}

.nq-c-Cookies-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nq-c-Cookies-toggleUi {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #D1D5DB;
  position: relative;
  transition: background 0.2s ease;
}

.nq-c-Cookies-toggleUi::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(13, 27, 42, 0.2);
  transition: transform 0.2s ease;
}

.nq-c-Cookies-toggle input:checked + .nq-c-Cookies-toggleUi {
  background: var(--legal-primary);
}

.nq-c-Cookies-toggle input:checked + .nq-c-Cookies-toggleUi::after {
  transform: translateX(18px);
}

.nq-c-Cookies-toggle input:focus-visible + .nq-c-Cookies-toggleUi {
  outline: 2px solid var(--legal-primary);
  outline-offset: 2px;
}

.nq-c-Cookies-tableWrap {
  overflow-x: auto;
}

.nq-c-Cookies-table {
  width: 100%;
  border-collapse: collapse;
}

.nq-c-Cookies-table th,
.nq-c-Cookies-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  vertical-align: top;
  border-bottom: 1px solid var(--legal-rule);
}

.nq-c-Cookies-table th {
  font-family: var(--legal-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--legal-faint);
  background: #fff;
}

.nq-c-Cookies-table td {
  color: var(--legal-muted);
}

.nq-c-Cookies-table td:first-child {
  font-weight: 600;
  color: var(--legal-ink);
  white-space: nowrap;
}

.nq-c-Cookies-table tbody tr:last-child td {
  border-bottom: 0;
}

.nq-c-Cookies-actions {
  margin-top: 8px;
  padding-top: 8px;
}

.nq-c-Cookies-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--legal-primary);
  color: #fff;
  font-family: var(--legal-display);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.nq-c-Cookies-submit:hover {
  filter: brightness(0.94);
}

.nq-c-Cookies-submit:active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .nq-c-Cookies-cardHead {
    padding: 16px;
  }

  .nq-c-Cookies-table thead {
    display: none;
  }

  .nq-c-Cookies-table,
  .nq-c-Cookies-table tbody,
  .nq-c-Cookies-table tr,
  .nq-c-Cookies-table td {
    display: block;
    width: 100%;
  }

  .nq-c-Cookies-table tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--legal-rule);
  }

  .nq-c-Cookies-table tbody tr:last-child {
    border-bottom: 0;
  }

  .nq-c-Cookies-table td {
    padding: 4px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .nq-c-Cookies-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--legal-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--legal-faint);
  }

  .nq-c-Cookies-submit {
    width: 100%;
  }
}
