/* ==========================================================================
   BLOCK: Legal Pages
   Styles for privacy-and-legal hub and legal content sub-pages.
   ========================================================================== */

/* --- Hub page --- */
.legal-hub {
  padding: 3rem 0 4rem;
}

.legal-hub__group {
  margin-bottom: 2.5rem;
}

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

.legal-hub__group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #95569e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.25rem;
}

.legal-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.legal-hub__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.legal-hub__card:hover {
  border-color: #95569e;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(149, 86, 158, 0.1);
}

.legal-hub__card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #341c4c;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.legal-hub__card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6B7280;
  margin: 0 0 1rem;
  flex: 1;
}

.legal-hub__card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #341c4c;
  transition: color 0.2s ease;
}

.legal-hub__card:hover .legal-hub__card-arrow {
  color: #95569e;
}

.legal-hub__card-arrow svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.legal-hub__card:hover .legal-hub__card-arrow svg {
  transform: translateX(3px);
}

/* --- Security crosslink --- */
.security-crosslink {
  text-align: center;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #E5E7EB;
}

.security-crosslink .security-crosslink__title {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #341c4c;
  margin: 0 0 1.5rem;
}

.security-crosslink__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #95569e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.security-crosslink__btn:hover {
  color: #341c4c;
}

.security-crosslink__btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* --- Back link inside hero --- */
.faqs-page__hero .legal-content__back {
  margin-bottom: 1.5rem;
  justify-content: center;
}

/* --- Legal content sub-pages --- */
.legal-content {
  padding: 3rem 0 5rem;
}

.legal-content__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #95569e;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.legal-content__back:hover {
  color: #341c4c;
}

.legal-content__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #341c4c;
  margin: 0 0 0.5rem;
}

.legal-content__revised {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vox-lilac, #95569e);
  margin: 0 0 2.5rem;
}

.legal-content__body {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}

.legal-content__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #341c4c;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.legal-content__body h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #341c4c;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.legal-content__body p {
  margin: 0 0 1rem;
}

.legal-content__body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.legal-content__body ul li {
  margin-bottom: 0.5rem;
}

.legal-content__body a {
  color: #95569e;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.legal-content__body a:hover {
  color: #341c4c;
}

.legal-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.legal-content__body table th,
.legal-content__body table td {
  border: 1px solid #E5E7EB;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.legal-content__body table tr:first-child td,
.legal-content__body table thead td,
.legal-content__body table thead th {
  background: #F3F0F5;
  font-weight: 600;
  color: #341c4c;
}

.legal-content__body table tr:nth-child(even) {
  background: #F9FAFB;
}

.legal-content__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1rem 0 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #95569e;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.legal-content__download:hover {
  border-color: #95569e;
}

.legal-content__download svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .legal-hub__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .legal-hub__grid {
    grid-template-columns: 1fr;
  }

  .legal-content__body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
