/* ==========================================================================
   Legal Pages — Privacy, Terms, Cancellation
   Shared two-column layout with sticky sidebar scroll-spy
   ========================================================================== */

/* Legal Hero / Header Banner */
.legal-hero {
  padding: 8rem 0 3rem;
  background: var(--secondary, hsl(35, 20%, 92%));
  border-bottom: 1px solid var(--border, hsl(35, 20%, 88%));
}

.legal-hero__inner {
  max-width: 780px;
}

.legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, hsl(38, 50%, 55%));
  font-weight: 600;
  margin-bottom: 1rem;
}

.legal-hero__badge svg {
  width: 14px;
  height: 14px;
}

.legal-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--foreground, hsl(30, 10%, 15%));
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.legal-hero__meta {
  font-size: 0.82rem;
  color: var(--muted-foreground, hsl(30, 8%, 45%));
  line-height: 1.6;
}

.legal-hero__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: hsl(0, 0%, 100%);
  border: 1px solid var(--border, hsl(35, 20%, 88%));
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground, hsl(30, 10%, 15%));
  margin-top: 0.75rem;
}

/* Notice / Alert Box */
.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: hsla(38, 50%, 55%, 0.06);
  border: 1px solid hsla(38, 50%, 55%, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.84rem;
  color: var(--foreground, hsl(30, 10%, 15%));
  line-height: 1.6;
}

.legal-notice svg {
  flex-shrink: 0;
  color: var(--accent, hsl(38, 50%, 55%));
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

/* Two-Column Layout */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

/* Sticky Sidebar */
.legal-sidebar {
  position: sticky;
  top: 5rem;
}

.legal-sidebar__title {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground, hsl(30, 8%, 45%));
  margin-bottom: 1rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border, hsl(35, 20%, 88%));
}

.legal-sidebar__nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-sidebar__link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-foreground, hsl(30, 8%, 45%));
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.legal-sidebar__link:hover {
  color: var(--foreground, hsl(30, 10%, 15%));
  background: hsla(38, 50%, 55%, 0.04);
}

.legal-sidebar__link.is-active {
  color: var(--accent, hsl(38, 50%, 55%));
  border-left-color: var(--accent, hsl(38, 50%, 55%));
  background: hsla(38, 50%, 55%, 0.06);
  font-weight: 500;
}

/* Main Content */
.legal-content {
  max-width: 720px;
}

.legal-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
}

.legal-section__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent, hsl(38, 50%, 55%));
  color: hsl(0, 0%, 100%);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.legal-section__heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--foreground, hsl(30, 10%, 15%));
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.legal-section p,
.legal-section li {
  font-size: 0.88rem;
  color: var(--muted-foreground, hsl(30, 8%, 45%));
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-section ul li {
  list-style: disc;
  padding-left: 0.25rem;
}

.legal-section ol li {
  list-style: decimal;
  padding-left: 0.25rem;
}

.legal-section strong {
  color: var(--foreground, hsl(30, 10%, 15%));
  font-weight: 500;
}

/* Grievance Officer Block */
.legal-grievance {
  padding: 1.5rem;
  background: var(--secondary, hsl(35, 20%, 92%));
  border: 1px solid var(--border, hsl(35, 20%, 88%));
  border-radius: 0.5rem;
  margin-top: 2rem;
}

.legal-grievance__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--foreground, hsl(30, 10%, 15%));
  margin: 0 0 0.75rem;
}

.legal-grievance__row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted-foreground, hsl(30, 8%, 45%));
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.legal-grievance__label {
  font-weight: 500;
  color: var(--foreground, hsl(30, 10%, 15%));
  min-width: 80px;
}

.legal-grievance a {
  color: var(--accent, hsl(38, 50%, 55%));
  text-decoration: none;
}

.legal-grievance a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-hero {
    padding: 6rem 0 2rem;
  }

  .legal-hero__title {
    font-size: 1.75rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem 0 3rem;
  }

  .legal-sidebar {
    position: relative;
    top: auto;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border, hsl(35, 20%, 88%));
  }

  .legal-sidebar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .legal-sidebar__link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }

  .legal-sidebar__link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--accent, hsl(38, 50%, 55%));
  }
}
