﻿:root {
  color-scheme: light;
  --brand: #007953;
  --brand-dark: #005f42;
  --accent: #d32f2f;
  --page: #d0e1d6;
  --surface: #ffffff;
  --surface-soft: #e8f1ec;
  --text: #272727;
  --muted: #52625b;
  --line: #c6d7ce;
  --shadow: 0 22px 55px rgba(20, 45, 35, 0.16);
  --shadow-soft: 0 12px 30px rgba(20, 45, 35, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 8% 4%,
      rgba(255, 255, 255, 0.56),
      transparent 34%
    ),
    var(--page);
  color: var(--text);
  font-family: "Quicksand", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 3px 16px rgba(0, 70, 48, 0.15);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.product-home {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.product-logo-frame {
  min-width: 130px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 20px rgba(0, 40, 28, 0.12);
}

.product-logo-frame img {
  width: auto;
  max-width: 165px;
  height: 32px;
  object-fit: contain;
}

.product-wordmark {
  font-size: 20px;
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.header-nav a {
  padding: 9px 11px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a.active {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.header-nav .overview-link {
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.legal-main {
  width: min(1160px, calc(100% - 32px));
  flex: 1;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 50px) 0 48px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      var(--brand-dark),
      var(--brand)
    );
  color: #ffffff;
  box-shadow: var(--shadow);
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -70px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: 11%;
  bottom: -125px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.legal-eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.legal-hero-summary {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 500;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
}

.legal-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 25px;
}

.legal-toc {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid rgba(198, 215, 206, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.legal-toc-title {
  margin: 0 0 13px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
  gap: 4px;
}

.legal-toc a {
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.legal-document {
  overflow: hidden;
  border: 1px solid rgba(198, 215, 206, 0.95);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-intro {
  padding: clamp(24px, 4vw, 38px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      135deg,
      rgba(232, 241, 236, 0.72),
      rgba(255, 255, 255, 0.94)
    );
}

.legal-intro strong {
  color: var(--brand-dark);
}

.legal-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.72;
}

.legal-section {
  padding: clamp(24px, 4vw, 38px);
  border-bottom: 1px solid #e2ebe6;
  scroll-margin-top: 24px;
}

.legal-section:last-child {
  border-bottom: 0;
}

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 24px 0 9px;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 700;
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.72;
}

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

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-section li {
  padding-left: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.62;
}

.legal-callout {
  margin: 19px 0;
  padding: 17px 18px;
  border: 1px solid rgba(0, 121, 83, 0.17);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  background: var(--surface-soft);
}

.legal-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 13px;
}

.legal-callout p {
  margin: 0;
  font-size: 12px;
}

.legal-warning {
  border-color: rgba(211, 47, 47, 0.18);
  border-left-color: var(--accent);
  background: rgba(211, 47, 47, 0.055);
}

.legal-warning strong {
  color: #a72323;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.info-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdfc;
}

.info-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13px;
}

.info-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
}

.contact-card {
  display: grid;
  gap: 17px;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(0, 121, 83, 0.20);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      var(--surface-soft),
      #ffffff
    );
}

.contact-card-label {
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-email {
  width: fit-content;
  color: var(--brand-dark);
  font-size: clamp(18px, 3vw, 27px);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.document-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.document-links a:hover {
  border-color: var(--brand);
  background: var(--surface-soft);
}

.legal-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  background: var(--brand);
  color: #ffffff;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 auto;
  padding: 20px 0;
}

.footer-copy strong {
  display: block;
  font-size: 12px;
}

.footer-copy span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 9px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 70px;
  }

  .header-nav a:not(.overview-link) {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: relative;
    top: auto;
  }

  .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    width: min(100% - 24px, 1160px);
  }

  .product-logo-frame {
    min-width: 100px;
    min-height: 41px;
    padding: 6px 10px;
  }

  .product-logo-frame img {
    max-width: 125px;
    height: 28px;
  }

  .header-nav .overview-link {
    padding: 8px 9px;
    font-size: 9px;
  }

  .legal-main {
    width: min(100% - 24px, 1160px);
    padding-top: 20px;
  }

  .legal-hero {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .legal-hero h1 {
    font-size: clamp(35px, 12vw, 48px);
  }

  .legal-layout {
    margin-top: 16px;
  }

  .legal-toc {
    padding: 17px;
    border-radius: 17px;
  }

  .legal-toc nav {
    grid-template-columns: 1fr;
  }

  .legal-document {
    border-radius: 20px;
  }

  .legal-intro,
  .legal-section {
    padding: 23px 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media print {
  .legal-header,
  .legal-toc,
  .legal-footer {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-hero {
    box-shadow: none;
  }

  .legal-layout {
    display: block;
  }

  .legal-document {
    border: 0;
    box-shadow: none;
  }
}

/* CPD LEGAL SITE WORDMARK V1 */

.site-wordmark-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  text-decoration: none;
  transition:
    transform 170ms ease,
    filter 170ms ease;
}

.site-wordmark-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.site-wordmark-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 4px;
}

.site-wordmark {
  min-width: 205px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 15px 9px;

  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.055)
    );

  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);

  color: #ffffff;

  box-shadow:
    0 8px 24px rgba(0, 40, 28, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.site-wordmark strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.site-wordmark span {
  display: block;
  color: rgba(255, 255, 255, 0.70);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .site-wordmark {
    min-width: auto;
    padding: 9px 11px 8px;
    border-radius: 12px;
  }

  .site-wordmark strong {
    font-size: 12px;
  }

  .site-wordmark span {
    font-size: 6.8px;
    letter-spacing: 0.09em;
  }
}

/* FIM CPD LEGAL SITE WORDMARK V1 */
