/* AKGlobal, pages Mentions légales / Confidentialité (Legal notice / Privacy)
   S'appuie sur ak.css : bleu marine + blanc, touches de rouge, vert et jaune du logo. */

/* Hero compact */
.legal-hero {
  padding: 56px 0 50px;
}

.legal-hero h1 {
  font-size: clamp(36px, 4.4vw, 52px);
}

.legal-hero .kicker-line {
  background: var(--red);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 13.5px;
  color: #9fb6dd;
}

.crumbs a {
  color: #c3cfe0;
  text-decoration: none;
}

.crumbs a:hover {
  color: #fff;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #56698a;
}

.hero-mark {
  position: absolute;
  right: max(24px, calc((100vw - 1200px) / 2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(33, 70, 139, 0.9),
    rgba(16, 43, 78, 0.2) 70%
  );
  border: 1px solid rgba(159, 182, 221, 0.25);
  color: #fff;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.03),
    0 0 0 44px rgba(255, 255, 255, 0.02);
  animation: markIn 1s ease 0.2s both;
}

.hero-mark::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--yellow);
  border-right-color: var(--yellow);
  transform: rotate(20deg);
  animation: spin 18s linear infinite;
}

.hero-mark svg {
  width: 84px;
  height: 84px;
  stroke-width: 1.2;
}

@keyframes markIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@keyframes spin {
  to {
    transform: rotate(380deg);
  }
}

/* Mise en page : sommaire + contenu */
.legal-body {
  padding: 64px 0 80px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 110px;
  padding: 22px;
  border-radius: 18px;
  background: var(--tint);
  border: 1px solid var(--line);
}

.toc .panel-title {
  color: var(--navy);
  margin-bottom: 14px;
}

.toc .panel-title::after {
  background: linear-gradient(90deg, rgba(16, 43, 78, 0.2), transparent);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  counter-reset: t;
}

.toc ol a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.toc ol a::before {
  counter-increment: t;
  content: counter(t, decimal-leading-zero);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--royal);
  min-width: 20px;
}

.toc ol a:hover {
  background: #fff;
  color: var(--navy);
}

.toc ol a.active {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--red);
}

.toc ol a.active::before {
  color: var(--red);
}

.toc-help {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.toc-help a {
  color: var(--navy);
  font-weight: 600;
  word-break: break-all;
}

.legal-content {
  min-width: 0;
}

.legal-sec {
  padding: 6px 0 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.legal-sec:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.25;
  margin: 0 0 16px;
}

.sec-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  padding-top: 4px;
}

.legal-sec p,
.legal-sec li {
  color: var(--muted);
  font-size: 15.5px;
}

.legal-sec p:last-child {
  margin-bottom: 0;
}

.legal-sec a {
  color: var(--royal);
  font-weight: 600;
}

.legal-sec a:hover {
  color: var(--navy);
}

.bullets {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.bullets li {
  position: relative;
  padding-left: 20px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

/* Fiche d'identité de la société */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.facts > div {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.facts > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.facts dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 4px;
}

.facts dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

.facts dd small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
}

/* Bureaux */
.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.office {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}

.office:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -32px rgba(16, 43, 78, 0.6);
}

.office-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal);
}

.office h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.office p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.office a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}

.office a svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* Encadré contact */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--navy);
  color: #c3cfe0;
}

.contact-strip p {
  margin: 0;
  color: #c3cfe0 !important;
}

.contact-strip b {
  display: block;
  color: #fff;
  font-size: 15.5px;
}

.contact-strip .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-strip .btn {
  padding: 11px 20px;
  font-size: 14px;
}

.legal-sec .contact-strip a {
  color: var(--navy);
}

.legal-sec .contact-strip a.btn-wa {
  color: #fff;
}

.btn-wa {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-wa:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-wa svg {
  color: #4cc493;
}

.btn-light svg {
  color: var(--red);
}

/* Note */
.callout {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
}

.callout p {
  margin: 0;
  font-size: 14.5px !important;
}

/* Droits (confidentialité) */
.rights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: 4px 0 18px;
  padding: 0;
}

.rights li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.rights .act-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(232, 17, 45, 0.22);
  color: #d31a33;
}

.rights .act-icon svg {
  width: 18px;
  height: 18px;
}

.rights b {
  color: var(--navy);
  font-size: 15px;
}

.rights span {
  font-size: 14.5px;
  line-height: 1.55;
}

/* Tableau des cookies */
.table-wrap {
  overflow-x: auto;
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

.cookie-table th,
.cookie-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.cookie-table thead th {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
  background: var(--tint);
}

.cookie-table tbody th {
  color: var(--navy);
  font-weight: 600;
}

.cookie-table tbody tr:last-child > * {
  border-bottom: 0;
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
}

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

.browser-list a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  color: var(--navy) !important;
  transition: border-color 0.2s, background 0.2s;
}

.browser-list a:hover {
  border-color: var(--navy);
  background: var(--tint);
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark,
  .hero-mark::after {
    animation: none;
  }

  .office {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .hero-mark {
    width: 180px;
    height: 180px;
  }

  .hero-mark svg {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 960px) {
  .hero-mark {
    display: none;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
  }

  .rights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .facts,
  .offices {
    grid-template-columns: 1fr;
  }

  .facts > div:nth-child(odd) {
    border-right: 0;
  }

  .facts > div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-strip {
    padding: 20px;
  }

  .table-wrap {
    border: 0;
    background: none;
    overflow: visible;
  }

  .cookie-table {
    min-width: 0;
  }

  .cookie-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .cookie-table,
  .cookie-table tbody,
  .cookie-table tr,
  .cookie-table th,
  .cookie-table td {
    display: block;
  }

  .cookie-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }

  .cookie-table tbody th {
    padding: 12px 16px;
    background: var(--tint);
    border-bottom: 1px solid var(--line);
  }

  .cookie-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
  }

  .cookie-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--navy);
    flex: none;
  }

  .cookie-table td > * {
    text-align: right;
  }

  .legal-body {
    padding: 44px 0 64px;
  }
}
