/* Legal pages: layout on top of style.css (header, footer, container, badge) */
.legal-page {
  background:
    radial-gradient(circle at 92% 8%, rgba(43, 93, 140, 0.08), transparent 340px),
    #f7fafc;
  padding: 40px 0 120px;
}

.legal-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 30px;
}

.legal-crumbs a {
  color: var(--primary-blue);
  text-decoration: none;
}

.legal-hero {
  margin-bottom: 40px;
}

.legal-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #d1d9e2;
  border-radius: 50px;
  background: white;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: #1a202c;
  margin-bottom: 18px;
}

.legal-hero__subtitle {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-text);
}

.legal-hero__meta strong {
  color: #3d4a5a;
}

.legal-hero__meta span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 50%;
  background: #a0aec0;
}

.legal-card {
  background: white;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 10px 40px rgba(20, 40, 70, 0.08);
}

.legal-notice {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #eaf3fb;
  color: var(--primary-blue);
  font-size: 13px;
  line-height: 1.5;
}

.legal-notice svg {
  flex: none;
  margin-top: 2px;
}

.legal-section {
  padding: 32px 0;
  border-bottom: 1px solid #e8edf2;
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.7;
}

.legal-section__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 14px;
}

.legal-section__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-blue);
}

.legal-section p,
.legal-section ul,
.legal-section .table-wrap {
  margin-bottom: 14px;
}

.legal-section ul {
  padding-left: 22px;
}

.legal-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a202c;
  margin: 20px 0 6px;
}

.legal-section a {
  color: var(--primary-blue);
}

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.legal-section th,
.legal-section td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-section th {
  background: #f1f4f8;
  color: #1a202c;
}

.legal-section .table-wrap {
  overflow-x: auto;
}

.legal-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--gray-text);
}

.legal-card__foot a {
  color: var(--primary-blue);
  text-decoration: none;
}

/* Placeholders the legal team has to fill in or confirm */
.tbc {
  background: #fff3b0;
  color: #5c4500;
  padding: 0 4px;
  border-radius: 3px;
}

/* Footer on legal pages is not preceded by a contact section */
.legal-footer-bg.contact-footer-bg {
  padding-top: 0;
  margin-top: -60px;
}

.legal-footer-bg .main-footer {
  padding-top: 70px;
}

.footer-links a.is-current {
  color: white;
  font-weight: 600;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .legal-hero h1 {
    font-size: 56px;
  }

  .legal-card {
    padding: 28px 50px;
  }
}
