/* Legal pages & Contact — high contrast, dark text on light background */

body.legal-view,
body.contact-view {
  background: #f8fafc !important;
  color: #1e293b !important;
}

body.legal-view .mp-nav,
body.contact-view .mp-nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.legal-view .mp-nav .navbar-brand,
body.legal-view .mp-nav .nav-link,
body.contact-view .mp-nav .navbar-brand,
body.contact-view .mp-nav .nav-link {
  color: #1e293b !important;
}

body.legal-view .mp-nav .nav-link:hover,
body.contact-view .mp-nav .nav-link:hover {
  color: #0d9488 !important;
}

/* Legal/contact content containers */
.legal-page,
.contact-page {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.legal-page h1,
.contact-page h1 {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-page h2,
.contact-page h2 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page h3,
.contact-page h3 {
  color: #334155;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li,
.contact-page p,
.contact-page li {
  color: #475569;
  line-height: 1.7;
}

.legal-page a,
.contact-page a {
  color: #0d9488;
}

.legal-page .text-muted,
.contact-page .text-muted {
  color: #64748b !important;
}

/* Contact cards */
.contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
}

.contact-card h3 {
  color: #1e293b;
}

.contact-card p {
  color: #475569;
}

/* Accordion in legal/contact pages */
body.legal-view .accordion-item,
body.contact-view .accordion-item {
  background: #ffffff;
  border-color: #e2e8f0;
}
body.legal-view .accordion-button,
body.contact-view .accordion-button {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #e2e8f0;
}
body.legal-view .accordion-button:not(.collapsed),
body.contact-view .accordion-button:not(.collapsed) {
  background: #ffffff !important;
  color: #0f172a !important;
}
body.legal-view .accordion-body,
body.contact-view .accordion-body {
  background: #ffffff;
  color: #475569;
}

/* ─── Contact page (mail-only, redesigned) ─── */
.contact-hero .contact-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.contact-hero .contact-lead {
  font-size: 1.125rem;
  color: #64748b;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-card-link:hover {
  transform: translateY(-2px);
  color: inherit;
}
.contact-card-link:hover .contact-card-item {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #0d9488;
}
.contact-card-link:hover .contact-card-arrow {
  transform: translateX(4px);
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 150, 105, 0.12);
  border-radius: 12px;
  color: #059669;
  font-size: 1.25rem;
}
.contact-card-body {
  flex: 1;
  min-width: 0;
}
.contact-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}
.contact-card-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}
.contact-card-email {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0d9488;
}
.contact-card-arrow {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.contact-card-link:hover .contact-card-arrow {
  color: #0d9488;
}
.contact-footnote {
  font-size: 0.9375rem;
  color: #64748b;
}
.contact-footnote a {
  color: #0d9488;
  font-weight: 500;
}
