:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  min-height: 100%;
  overflow-x: hidden;
  background: #2e49d5;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #27315f;
  background-color: #2e49d5;
  background-image: url("images/cjwbg-top.jpg");
  background-position: top center;
  background-repeat: no-repeat;
}

a {
  color: #244cc4;
  text-underline-offset: 3px;
}

a:hover {
  color: #172f85;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffd66b;
  outline-offset: 3px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 74px;
  background: linear-gradient(180deg, #3f38be 8.36%, #47b2e7 94.85%);
  box-shadow: 0 0 7px rgb(0 0 0 / 14%);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1050px);
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 30px 7px;
}

.site-logo img {
  width: auto;
  max-height: 47px;
}

.menu-toggle {
  position: absolute;
  z-index: 10;
  right: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 25px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.primary-navigation {
  display: none;
  padding: 10px 20px 20px;
  background: rgb(33 48 151 / 96%);
}

.primary-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 990px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation a[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

.trust-main {
  width: min(100%, 900px);
  min-height: calc(100vh - 129px);
  margin: 0 auto;
  padding: 106px 20px 32px;
}

.trust-card {
  padding: clamp(24px, 5vw, 50px);
  background: rgb(255 255 255 / 96%);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgb(18 30 112 / 24%);
}

.page-eyebrow {
  margin: 0 0 6px;
  color: #315dd4;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-card h1 {
  margin: 0 0 14px;
  color: #172b78;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.25;
}

.trust-card h2 {
  margin: 32px 0 10px;
  color: #203b98;
  font-size: 1.25rem;
  line-height: 1.35;
}

.trust-card h2:first-child {
  margin-top: 0;
}

.lead {
  margin: 0;
  color: #45517e;
  font-size: 1.08rem;
}

.trust-card p,
.trust-card ul {
  margin-top: 0;
  margin-bottom: 14px;
}

.trust-card ul {
  padding-left: 1.4rem;
}

.trust-card li + li {
  margin-top: 8px;
}

.age-notice,
.info-callout,
.contact-card {
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 12px;
}

.age-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(135deg, #243899, #315fcf);
}

.age-notice .age-badge {
  border-color: #fff;
}

.age-notice p,
.info-callout p,
.contact-card p {
  margin-bottom: 0;
}

.age-notice a {
  color: #fff2b3;
}

.info-callout {
  color: #2f3d72;
  background: #eef3ff;
  border-left: 4px solid #4e73dd;
}

.contact-card {
  text-align: center;
  background: #f3f7ff;
  border: 1px solid #d9e3ff;
}

.contact-button {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 22px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: #16894c;
  border-radius: 999px;
}

.contact-button:hover,
.contact-button:focus-visible {
  color: #fff;
  background: #0e6e3b;
}

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

.link-grid a {
  display: block;
  padding: 14px 16px;
  color: #264297;
  font-weight: 600;
  text-decoration: none;
  background: #f2f5ff;
  border: 1px solid #dae2ff;
  border-radius: 10px;
}

.link-grid a:hover,
.link-grid a:focus-visible {
  background: #e5ecff;
}

.site-footer {
  padding: 22px 20px 28px;
  color: #fff;
}

.bottom-menu {
  position: fixed;
  z-index: 1100;
  bottom: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 55px;
  background-color: #0e3e92;
  background-image: url("images/fixed-bottom-menu.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.bottom-menu a {
  width: 20%;
  height: 100%;
}

@media (max-width: 768px) {
  .site-header,
  .header-inner {
    min-height: 65px;
  }

  .header-inner {
    padding-top: 8px;
    padding-bottom: 5px;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-navigation ul {
    display: block;
    text-align: center;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .trust-main {
    padding-top: 88px;
  }
}

@media (max-width: 500px) {
  body {
    padding-bottom: 73px;
  }

  .menu-toggle {
    right: 8px;
    width: 36px;
  }

  .trust-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .trust-card {
    border-radius: 12px;
  }

  .age-notice {
    align-items: flex-start;
  }

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

  .bottom-menu {
    display: flex;
    height: 73px;
  }
}

@media (max-width: 450px) {
  body { padding-bottom: 65px; }
  .bottom-menu { height: 65px; }
}

@media (max-width: 400px) {
  body { padding-bottom: 59px; }
  .bottom-menu { height: 59px; }
}

@media (max-width: 350px) {
  body { padding-bottom: 51px; }
  .bottom-menu { height: 51px; }
}

@media (max-width: 300px) {
  body { padding-bottom: 45px; }
  .bottom-menu { height: 45px; }
}