:root {
  --ink: #17202b;
  --muted: #596575;
  --navy: #102a43;
  --red: #b51f2e;
  --line: #d8dee7;
  --surface: #fff;
  --background: #f3f5f8;
  --focus: #005fcc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.5;
}

.verification-page {
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    var(--navy) 0,
    var(--navy) 13rem,
    var(--background) 13rem
  );
}

.verification-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.verification-card,
.visitor-policy-card {
  width: min(100%, 740px);
  background: var(--surface);
  border: 1px solid rgba(16, 42, 67, .14);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(16, 42, 67, .18);
  overflow: hidden;
}

.brand-lockup,
.visitor-policy-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.4rem;
  color: #fff;
  background: var(--navy);
  border-bottom: 4px solid var(--red);
}

.gateway-logo,
.visitor-policy-logo {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
}

.brand-lockup p,
.visitor-policy-header p { margin: 0; }

.brand-en {
  font-size: 1.08rem;
  font-weight: 750;
}

.brand-fr {
  margin-top: .08rem !important;
  color: #dce6ef;
  font-size: .88rem;
}

.verification-content,
.visitor-policy-content {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.18;
}

h2 {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.3;
}

.intro {
  margin: 1.1rem 0 1.4rem;
  color: var(--muted);
}

.intro p { margin: .18rem 0; }

.alert {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-left: 4px solid var(--red);
  background: #fff3f4;
  color: #7d1823;
  font-weight: 650;
}

.acknowledgement {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  cursor: pointer;
}

.acknowledgement input {
  width: 1.2rem;
  height: 1.2rem;
  margin: .18rem 0 0;
  accent-color: var(--navy);
}

.statement {
  display: block;
  font-size: .96rem;
}

.statement + .statement {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  color: #3e4b59;
}

.human-verification {
  margin: 1.2rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.verification-control-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.verification-control-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.verification-control-heading p {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.turnstile-language {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 auto;
}

.language-button {
  min-width: 42px;
  border: 0;
  padding: .45rem .65rem;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}

.language-button + .language-button {
  border-left: 1px solid var(--line);
}

.language-button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.turnstile-wrap {
  margin-top: .9rem;
  min-height: 65px;
}

.verification-status {
  margin: .85rem 0;
  color: var(--muted);
  font-size: .88rem;
}

.continue-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 5px;
  padding: .85rem 1.2rem;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.continue-button:hover:not(:disabled) { background: #173f65; }

.continue-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem 1rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .79rem;
}

.policy-links a,
.visitor-policy-content a {
  color: #43566b;
  text-underline-offset: 3px;
}

.visitor-policy-page {
  min-height: 100vh;
  background: var(--background);
}

.visitor-policy-shell {
  padding: 2rem 1rem;
}

.visitor-policy-card {
  margin: 0 auto;
  width: min(100%, 880px);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-size: .88rem;
}

.effective-date {
  margin: .7rem 0 1.6rem;
  color: var(--muted);
}

.visitor-policy-content section {
  margin-top: 1.5rem;
}

.visitor-policy-content section p {
  margin: .55rem 0;
}

.visitor-policy-content section p[lang="fr"] {
  padding-top: .7rem;
  border-top: 1px solid #edf0f4;
  color: #3e4b59;
}

.main-policy-link {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

@media (max-width: 560px) {
  .verification-shell,
  .visitor-policy-shell {
    padding: 0;
  }

  .verification-page,
  .visitor-policy-page {
    background: var(--surface);
  }

  .verification-card,
  .visitor-policy-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-lockup,
  .visitor-policy-header {
    padding: .9rem 1rem;
  }

  .gateway-logo,
  .visitor-policy-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    flex-basis: 38px;
  }

  .verification-content,
  .visitor-policy-content {
    padding: 1.4rem 1.15rem 2rem;
  }

  .verification-control-heading {
    display: grid;
  }

  .policy-links {
    display: grid;
    justify-items: start;
  }
}

@media print {
  .visitor-policy-page {
    background: #fff;
  }

  .visitor-policy-shell {
    padding: 0;
  }

  .visitor-policy-card {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .visitor-policy-header {
    padding: .35in .45in;
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .visitor-policy-logo {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex-basis: 28px;
  }

  .visitor-policy-header .brand-en,
  .visitor-policy-header .brand-fr {
    color: #000;
  }

  .visitor-policy-content {
    padding: .35in .5in;
  }

  .back-link {
    display: none;
  }

  h1 {
    font-size: 20pt;
  }

  h2 {
    break-after: avoid;
  }

  section,
  p {
    orphans: 3;
    widows: 3;
  }
}


/* v1.8 logo update: preserve the v1.6 layout while using the approved mark. */
.gateway-logo,
.visitor-policy-logo {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
  border-radius: 4px;
}

@media (max-width: 560px) {
  .gateway-logo,
  .visitor-policy-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    flex-basis: 38px;
  }
}

@media print {
  .gateway-logo,
  .visitor-policy-logo {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex-basis: 28px;
  }
}


/* v1.9 layout refinements */
.brand-lockup-banner {
  display: flex;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: #fff;
}

.gateway-banner {
  display: block;
  width: min(100%, 640px);
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

.verification-title-centered {
  text-align: center;
  margin-bottom: 1.35rem;
}

.policy-links {
  justify-content: center;
  text-align: center;
}

@media (max-width: 560px) {
  .brand-lockup-banner {
    padding: .75rem 1rem;
  }

  .gateway-banner {
    width: min(100%, 520px);
    max-height: 110px;
  }

  .verification-title-centered {
    text-align: center;
  }

  .policy-links {
    justify-items: center;
    text-align: center;
  }
}

@media print {
  .brand-lockup-banner {
    padding: .18in .3in;
  }

  .gateway-banner {
    width: 5.8in;
    max-height: .9in;
  }

  .verification-title-centered {
    text-align: center;
  }
}


.visitor-policy-banner {
  width: min(100%, 520px);
  height: auto;
  max-width: 520px;
  max-height: 100px;
  object-fit: contain;
  flex: 0 1 520px;
}

@media print {
  .visitor-policy-banner {
    width: 4.8in;
    max-width: 4.8in;
    max-height: .7in;
  }
}


/* v2.1 refinements */
.verification-title-centered {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 560px) {
  .verification-title-centered {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }
}
