/* Legal pages — long-form reading, brand palette (#1E6B5A / #1d2b32). */

.smx-legal {
  min-height: 100vh;
  background: #eef3f5;
  color: #1d2b32;
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.smx-legal-bar {
  padding: 18px 20px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid rgba(29, 43, 50, 0.08);
}

.smx-legal-bar img {
  max-width: 170px;
  height: auto;
}

.smx-legal-doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 34px 22px 60px;
}

.smx-legal-doc h1 {
  margin: 0 0 14px;
  font-size: 1.9rem;
  line-height: 1.22;
  color: #1d2b32;
}

.smx-legal-intro {
  margin: 0 0 26px;
  padding: 14px 16px;
  background: #fff;
  border-left: 3px solid #1e6b5a;
  border-radius: 0 8px 8px 0;
  font-size: 0.97rem;
}

.smx-legal-doc h2 {
  margin: 32px 0 10px;
  font-size: 1.22rem;
  line-height: 1.3;
  color: #0f3d33;
}

.smx-legal-doc h3 {
  margin: 22px 0 8px;
  font-size: 1.03rem;
  color: #1d2b32;
}

.smx-legal-doc p {
  margin: 0 0 13px;
}

.smx-legal-doc ul,
.smx-legal-doc ol {
  margin: 0 0 15px;
  padding-left: 22px;
}

.smx-legal-doc li {
  margin-bottom: 7px;
}

.smx-legal-doc a {
  color: #1e6b5a;
  text-decoration: underline;
}

.smx-legal-doc a:hover {
  color: #164f42;
}

.smx-legal-doc strong {
  font-weight: 700;
}

/* Call-out for the things a patient most often gets wrong or must not miss. */
.smx-legal-note {
  margin: 18px 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(30, 107, 90, 0.28);
  border-radius: 9px;
  font-size: 0.95rem;
}

.smx-legal-note strong {
  color: #0f3d33;
}

.smx-legal-doc table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: #fff;
  border-radius: 9px;
  overflow: hidden;
}

.smx-legal-doc th,
.smx-legal-doc td {
  padding: 10px 13px;
  text-align: left;
  border-bottom: 1px solid rgba(29, 43, 50, 0.08);
  vertical-align: top;
}

.smx-legal-doc th {
  background: #e3ecee;
  font-weight: 700;
}

.smx-legal-doc tr:last-child td {
  border-bottom: 0;
}

.smx-legal-updated {
  margin: 30px 0 0;
  font-size: 0.87rem;
  opacity: 0.65;
  font-style: italic;
}

.smx-legal-id {
  margin: 26px 0 0;
  padding: 18px 20px;
  background: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
}

.smx-legal-id h2 {
  margin: 0 0 9px;
  font-size: 1rem;
}

.smx-legal-id p {
  margin: 0 0 5px;
}

.smx-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(29, 43, 50, 0.12);
  font-size: 0.9rem;
}

.smx-legal-nav a {
  color: #1e6b5a;
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .smx-legal-doc {
    padding: 24px 16px 48px;
  }
  .smx-legal-doc h1 {
    font-size: 1.55rem;
  }
  .smx-legal-doc table {
    display: block;
    overflow-x: auto;
  }
}

/* ── the identification block injected into the mirrored footer ─────────── */

/*
 * Contrast here is a compliance property, not a taste one: this block is what
 * NETOPIA's reviewer reads to confirm the company is identifiable, and a
 * patient must be able to find the terms. The first version rendered at 72%
 * white on a dark photo section and was effectively unreadable — measured on
 * the live page.
 */
.smx-footer-legal {
  padding: 26px 18px 30px;
  background: #0b1a21;
  /* !important throughout: clinique-light.css sets footer text to the dark
     ink colour with !important, which rendered this block invisible. */
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
  position: relative;
  z-index: 1;
}

.smx-footer-legal p,
.smx-footer-legal div,
.smx-footer-legal span {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.96) !important;
}

.smx-footer-legal p:first-child {
  font-weight: 700;
  font-size: 0.94rem;
}

.smx-footer-legal .smx-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.smx-footer-legal a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.95;
}

.smx-footer-legal a:hover {
  opacity: 1;
  color: #7fd4bf !important;
}

/* Same solid block on the light-themed pages — legibility wins over blending. */
body.smx-light .smx-footer-legal {
  background: #12262f;
}

/*
 * Specificity escalation, deliberate.
 *
 * clinique-light.css contains `body.smx-light footer p { color:#1d2b32
 * !important }` — specificity (0,2,2) — and it is injected AFTER the global
 * sheets by design, so a plain `.smx-footer-legal p` loses the tie and the
 * block rendered as dark ink on a dark background: invisible, on exactly the
 * pages a reviewer opens first. Repeating the class raises this to (0,3,2)
 * so legibility wins without touching the theme.
 */
body.smx-light .smx-footer-legal.smx-footer-legal,
body.smx-light .smx-footer-legal.smx-footer-legal p,
body.smx-light .smx-footer-legal.smx-footer-legal div,
body.smx-light .smx-footer-legal.smx-footer-legal span {
  color: rgba(255, 255, 255, 0.96) !important;
}

body.smx-light .smx-footer-legal.smx-footer-legal a {
  color: #ffffff !important;
}

/* "Renunț" on the payment page — deliberately quiet, next to the real action. */
.smx-giveup {
  margin: 18px 0 4px;
  font-size: 0.88rem;
  text-align: center;
  opacity: 0.8;
}

.smx-giveup a {
  color: #1e6b5a;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.smx-giveup a:hover {
  color: #164f42;
}
