/* =============================================
   LEGAL PAGES — Keymojo Design System
   ============================================= */

.legal-page {
  background-color: #f5f0eb;
  min-height: 100vh;
}

/* HERO */
.legal-hero {
  background: url(../../assets/img/gradient-vert.webp) center/cover no-repeat;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 96, 83, 0.35);
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-hero__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.35);
}

.legal-hero__title {
  font-size: 4rem;
  line-height: 4.8rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 16px;
}

@media screen and (min-width: 769px) {
  .legal-hero__title {
    font-size: 5.5rem;
    line-height: 6.4rem;
  }
}

.legal-hero__date {
  color: rgba(255,255,255,0.75);
  font-size: 1.4rem;
  margin: 0;
}

/* LAYOUT */
.legal-body {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media screen and (min-width: 960px) {
  .legal-body {
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
  }
}

/* SIDEBAR TOC */
.legal-toc {
  display: none;
}

@media screen and (min-width: 960px) {
  .legal-toc {
    display: block;
    position: sticky;
    top: 100px;
  }
}

.legal-toc__label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #046053;
  opacity: 0.5;
  margin-bottom: 16px;
}

.legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #d9e8e6;
}

.legal-toc__item {
  padding: 0;
  margin: 0;
}

.legal-toc__link {
  display: block;
  padding: 8px 16px;
  font-size: 1.4rem;
  line-height: 1.9rem;
  color: #046053;
  opacity: 0.6;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: opacity 0.2s, border-color 0.2s;
}

.legal-toc__link:hover,
.legal-toc__link.active {
  opacity: 1;
  border-left-color: #ff7348;
  color: #046053;
}

/* CONTENT */
.legal-content {
  min-width: 0;
}

/* SECTION */
.legal-section {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}

@media screen and (min-width: 769px) {
  .legal-section {
    padding: 44px 48px;
  }
}

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

.legal-section__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.legal-section__badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #046053;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 4px;
}

.legal-section__title {
  font-size: 2.2rem;
  line-height: 2.8rem;
  color: #046053;
  font-weight: 700;
  margin: 0;
}

@media screen and (min-width: 769px) {
  .legal-section__title {
    font-size: 2.6rem;
    line-height: 3.2rem;
  }
}

.legal-section__body {
  font-size: 1.6rem;
  line-height: 2.6rem;
  color: #2d5b55;
}

.legal-section__body p {
  margin: 0 0 16px;
}

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

.legal-section__body a {
  color: #ff7348;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section__body a:hover {
  color: #d95a2e;
}

.legal-section__body strong {
  color: #046053;
  font-weight: 700;
}

/* CARD INFO — for company identity, contacts */
.legal-card {
  background: #f0f7f6;
  border-left: 4px solid #046053;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-card--accent {
  border-left-color: #ff7348;
  background: #fff5f2;
}

.legal-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #046053;
  opacity: 0.6;
  margin: 0 0 10px;
}

.legal-card__content {
  font-size: 1.5rem;
  line-height: 2.4rem;
  color: #046053;
  margin: 0;
}

/* TRACKER GRID */
.legal-trackers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media screen and (min-width: 600px) {
  .legal-trackers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.legal-tracker {
  background: #f5f0eb;
  border-radius: 12px;
  padding: 20px;
}

.legal-tracker__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #046053;
  margin: 0 0 6px;
}

.legal-tracker__type {
  font-size: 1.2rem;
  font-weight: 500;
  color: #ff7348;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.legal-tracker__desc {
  font-size: 1.3rem;
  line-height: 1.9rem;
  color: #2d5b55;
  margin: 0;
}

/* RIGHTS GRID */
.legal-rights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0;
}

@media screen and (min-width: 480px) {
  .legal-rights {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 600px) {
  .legal-rights {
    grid-template-columns: repeat(3, 1fr);
  }
}

.legal-right {
  background: #f0f7f6;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1.4rem;
  line-height: 1.9rem;
  color: #046053;
  font-weight: 500;
}

.legal-right::before {
  content: "→";
  display: block;
  color: #ff7348;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

/* DIVIDER */
.legal-divider {
  height: 1px;
  background: #e8f0ef;
  margin: 24px 0;
}

/* LISTE MODERNE */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #2d5b55;
}

.legal-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #ff7348;
  margin-top: 9px;
  align-self: flex-start;
}

/* TRACKER responsive — 1 col mobile */
@media screen and (max-width: 599px) {
  .legal-trackers {
    grid-template-columns: 1fr;
  }
}

/* HERO responsive */
@media screen and (max-width: 480px) {
  .legal-hero {
    padding: 80px 0 48px;
  }
  .legal-section {
    padding: 28px 20px;
  }
  .legal-body {
    padding: 32px 16px 80px;
  }
}
