/*
 * legal.css — the app-owned legal documents (config/legal.php), today just
 * /politica-de-privacidad/. Loaded ONLY on those pages (LegalPageController
 * appends it after the shared chrome bundle), so nothing here can affect the
 * Elementor replicas.
 *
 * These pages are deliberately NOT Elementor replicas: production's own legal
 * documents (e.g. /master-services-agreement/) are plain rendered text inside
 * the standard header/footer, and this matches that spirit. Typography and
 * colours reuse the site's values (Poppins body text, #003865 secondary,
 * #303030 text, #FF8200 primary) so the page reads as part of the site.
 */

.legal-doc {
  /* max-width in ch keeps a comfortable measure (~70 characters) at any zoom */
  max-width: 74ch;
  margin: 0 auto;
  padding: 48px 20px 64px;
  font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #303030;
  font-size: 16px;
  line-height: 1.75;
  /* Long URLs/emails must never push the page wider than the viewport. */
  overflow-wrap: break-word;
}

.legal-doc h1 {
  margin: 0 0 8px;
  color: #003865;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
}

.legal-doc h2 {
  margin: 40px 0 8px;
  color: #003865;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 16px;
}

.legal-doc ol,
.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

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

.legal-doc a {
  color: #003865;
  text-decoration: underline;
}

.legal-doc a:hover,
.legal-doc a:focus {
  color: #ff8200;
}

.legal-doc__updated {
  color: #5a5a5a;
  font-size: 15px;
}

/* The bilingual jump link — the page's only navigation, and no JS behind it. */
.legal-doc__lang {
  margin-bottom: 32px;
  font-size: 15px;
  font-weight: 600;
}

.legal-doc__prevalence {
  border-left: 3px solid #ff8200;
  padding-left: 16px;
  color: #5a5a5a;
  font-size: 15px;
}

.legal-doc__divider {
  margin: 56px 0;
  border: 0;
  border-top: 1px solid #dcdcdc;
}

/* Anchor targets: keep the heading clear of the sticky site header. */
.legal-doc__body {
  scroll-margin-top: 96px;
}

@media (max-width: 767px) {
  .legal-doc {
    padding: 32px 18px 48px;
    font-size: 15.5px;
  }

  .legal-doc h1 {
    font-size: 25px;
  }

  .legal-doc h2 {
    font-size: 18px;
    margin-top: 32px;
  }
}
