/* Pages légales T'COEUR */
:root {
  --tc-legal-ink: #1f1218;
  --tc-legal-muted: #6a4d5c;
  --tc-legal-brand: #b50f8c;
  --tc-legal-brand-deep: #8a0b6a;
  --tc-legal-line: #edd8e4;
  --tc-legal-soft: #fff7fb;
  --tc-legal-panel: #ffffff;
  --tc-legal-rail: rgba(255, 255, 255, 0.08);
  --tc-legal-max: 44rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.tc-legal-body {
  margin: 0;
  min-height: 100vh;
  color: var(--tc-legal-ink);
  background:
    radial-gradient(ellipse 70% 45% at 85% 0%, rgba(181, 15, 140, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(255, 180, 220, 0.12), transparent 50%),
    linear-gradient(165deg, #14080f 0%, #2a1022 42%, #0e070c 100%);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.tc-legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 2.75rem;
}

/* —— Rail latéral —— */
.tc-legal-rail {
  position: sticky;
  top: 1rem;
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 18px;
  background: var(--tc-legal-rail);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #f8eaf3;
}

.tc-legal-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tc-legal-brand img {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.tc-legal-rail-label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 235, 245, 0.55);
}

.tc-legal-docs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tc-legal-docs a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  color: rgba(255, 245, 250, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.tc-legal-docs a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tc-legal-docs a.is-active {
  background: rgba(181, 15, 140, 0.55);
  color: #fff;
  font-weight: 700;
}

.tc-legal-toc {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: min(42vh, 22rem);
  overflow: auto;
  padding-right: 0.2rem;
  scrollbar-width: thin;
}

.tc-legal-toc a {
  display: block;
  padding: 0.35rem 0.55rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: rgba(255, 235, 245, 0.72);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.35;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tc-legal-toc a:hover {
  color: #fff;
  border-left-color: #f0a8d8;
  background: rgba(255, 255, 255, 0.06);
}

.tc-legal-back {
  display: inline-block;
  margin-top: 1.1rem;
  color: rgba(255, 230, 242, 0.8);
  font-size: 0.82rem;
  text-decoration: none;
}

.tc-legal-back:hover {
  color: #fff;
  text-decoration: underline;
}

/* —— Article —— */
.tc-legal {
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--tc-legal-panel);
  border-radius: 20px;
  border: 1px solid rgba(255, 220, 235, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 22px 48px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.tc-legal-header {
  padding: 1.75rem 1.6rem 1.35rem;
  background:
    linear-gradient(180deg, #fff9fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--tc-legal-line);
  text-align: left;
}

.tc-legal-badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #fce4f2;
  color: var(--tc-legal-brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tc-legal-header h1 {
  margin: 0 0 0.45rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tc-legal-ink);
  letter-spacing: -0.02em;
  text-align: left;
}

.tc-legal-meta {
  margin: 0;
  color: var(--tc-legal-muted);
  font-size: 0.88rem;
  text-align: left;
}

.tc-legal-body-content {
  padding: 1.35rem 1.6rem 1.85rem;
  max-width: var(--tc-legal-max);
}

.tc-legal-logo {
  display: none;
}

.tc-legal-lead {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--tc-legal-soft);
  border: 1px solid var(--tc-legal-line);
  font-size: 0.98rem;
  color: #3a2430;
}

.tc-legal-lead p {
  margin: 0 0 0.65rem;
  text-align: left;
}

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

.tc-legal h2 {
  margin: 1.75rem 0 0.7rem;
  padding: 0.85rem 0 0.55rem;
  border-top: 1px solid var(--tc-legal-line);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tc-legal-brand-deep);
  scroll-margin-top: 1.25rem;
}

.tc-legal-body-content > h2:first-child,
.tc-legal-lead + h2 {
  margin-top: 0.35rem;
}

.tc-legal p {
  margin: 0 0 0.85rem;
  text-align: left;
  font-size: 0.95rem;
  color: #2a1820;
}

.tc-legal strong {
  font-weight: 700;
  color: var(--tc-legal-ink);
}

.tc-legal ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.tc-legal li {
  position: relative;
  margin: 0;
  padding: 0.55rem 0.75rem 0.55rem 1.85rem;
  border-radius: 10px;
  background: #faf6f8;
  border: 1px solid #f0e4ea;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #2a1820;
}

.tc-legal li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.95rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--tc-legal-brand);
}

.tc-legal a {
  color: var(--tc-legal-brand);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.tc-legal a:hover {
  color: var(--tc-legal-brand-deep);
}

.tc-legal-highlight {
  margin: 0.35rem 0 1.25rem;
  padding: 1rem 1.1rem 1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff0f8 0%, #fce4f2 100%);
  border: 1px solid #f0c4de;
  border-left: 4px solid var(--tc-legal-brand);
  font-size: 0.93rem;
  line-height: 1.6;
  color: #3a2030;
}

.tc-legal-highlight strong {
  color: var(--tc-legal-brand-deep);
}

.tc-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tc-legal-line);
}

.tc-legal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border-radius: 12px;
  background: var(--tc-legal-brand);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.tc-legal-nav a:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.tc-legal-nav a.is-ghost {
  background: transparent;
  color: var(--tc-legal-brand) !important;
  border: 1px solid var(--tc-legal-line);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .tc-legal-shell {
    grid-template-columns: 1fr;
    padding: 1rem 0.85rem 2rem;
    gap: 1rem;
  }

  .tc-legal-rail {
    position: static;
  }

  .tc-legal-toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: none;
    gap: 0.2rem 0.4rem;
  }

  .tc-legal-toc a {
    border-left: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.4rem 0.55rem;
  }
}

@media (max-width: 560px) {
  .tc-legal-header,
  .tc-legal-body-content {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .tc-legal-toc {
    grid-template-columns: 1fr;
  }

  .tc-legal-header h1 {
    font-size: 1.45rem;
  }

  .tc-legal p,
  .tc-legal li {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-legal-docs a,
  .tc-legal-toc a,
  .tc-legal-nav a {
    transition: none;
  }
}

/* Popup consentement achat */
.tc-purchase-dialog {
  border: none;
  padding: 0;
  max-width: min(26rem, calc(100vw - 1.5rem));
  width: 100%;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}
.tc-purchase-dialog::backdrop {
  background: rgba(26, 10, 20, 0.55);
  backdrop-filter: blur(2px);
}
.tc-purchase-dialog-panel {
  position: relative;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f0d6e6;
  box-shadow: 0 20px 48px rgba(26, 10, 20, 0.28);
  color: #1a0a14;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}
.tc-purchase-dialog-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b4a5c;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}
.tc-purchase-dialog-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B50F8C;
}
.tc-purchase-dialog-title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  color: #1a0a14;
  padding-right: 1.5rem;
}
.tc-purchase-dialog-lead {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #6b4a5c;
}
.tc-purchase-dialog-points {
  margin: 0 0 1rem;
  padding: 0 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3a2030;
}
.tc-purchase-dialog-points li {
  margin: 0 0 0.3rem;
}
.tc-purchase-dialog-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e8d4de;
  background: #fff8fc;
  font-size: 0.86rem;
  line-height: 1.4;
  cursor: pointer;
}
.tc-purchase-dialog-check.is-invalid {
  border-color: #c0392b;
  background: #fff0f0;
}
.tc-purchase-dialog-check input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #B50F8C;
}
.tc-purchase-dialog-check a {
  color: #B50F8C;
  font-weight: 600;
}
.tc-purchase-dialog-error {
  margin: 0 0 0.65rem;
  color: #c0392b;
  font-size: 0.84rem;
}
.tc-purchase-dialog-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.tc-purchase-dialog-actions .tc-btn {
  min-width: 7.5rem;
}
