@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/app/assets/vendor/raleway/raleway-latin-wght-normal.woff2') format('woff2');
}

.rules-access-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 8px 11px;
  border: 1px solid #cedeef;
  border-radius: 12px;
  background: #f5f9fe;
  color: #142f55;
  line-height: 1.26;
}

.rules-access-switch__input,
.rules-access-switch__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rules-access-switch__track {
  position: relative;
  width: 42px;
  height: 25px;
  border-radius: 999px;
  background: #526c89;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color .14s ease;
}

.rules-access-switch__track::before {
  content: '';
  position: absolute;
  inset: -9px -3px;
}

.rules-access-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 100%;
  background: #fff;
  box-shadow: 0 1px 3px #19365755;
  transition: transform .14s ease;
}

.rules-access-switch__input:checked + .rules-access-switch__track { background: #155ab5; }
.rules-access-switch__input:checked + .rules-access-switch__track::after { transform: translateX(17px); }
.rules-access-switch__input:focus-visible + .rules-access-switch__track {
  outline: 2px solid #155ab5;
  outline-offset: 3px;
}

.rules-access-switch__content { min-width: 0; }
.rules-access-switch__content > label { display: block; font-size: .88rem; font-weight: 750; cursor: pointer; }
.rules-access-switch__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 3px;
  color: #4c6380;
  font-size: .75rem;
}
.rules-access-switch__detail > a { color: #174f97; font-weight: 700; text-underline-offset: 3px; }
.rules-access-switch__detail > a:focus-visible { outline: 2px solid #155ab5; outline-offset: 2px; }

.rules-access {
  margin: 0;
  min-height: 100vh;
  background: #f3f6fb;
  color: #172c48;
  font: 16px/1.5 Raleway, 'Segoe UI', Arial, sans-serif;
}
.rules-access * { box-sizing: border-box; }
.rules-access__container { width: min(100%, 490px); margin: 0 auto; padding: clamp(24px, 8vh, 80px) 16px 24px; }
.rules-access__logo { display: block; width: min(220px, 70vw); height: auto; margin: 0 0 20px; }
.rules-access__card { padding: clamp(18px, 4vw, 24px); border: 1px solid #dbe6f4; border-radius: 19px; background: #fff; }
.rules-access__card h1 { margin: 0; font-size: clamp(1.2rem, 4.8vw, 1.55rem); line-height: 1.2; }
.rules-access__account { margin: 7px 0 0; color: #4c6380; font-size: .9rem; }
.rules-access__form { display: grid; gap: 10px; margin-top: 14px; }
.rules-access__error { margin: 0; color: #8e2035; font-size: .88rem; font-weight: 650; }
.rules-access__footer { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: .83rem; }
.rules-access__footer a { color: #174f97; }
.rules-access :is(.rules-access__primary, .rules-access__exit) {
  min-height: 43px;
  border-radius: 10px;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}
.rules-access .rules-access__primary { border: 1px solid #155ab5; background: #155ab5; color: #fff; }
.rules-access .rules-access__exit { border: 1px solid transparent; background: transparent; color: #174f97; }
.rules-access :focus-visible { outline: 2px solid #155ab5; outline-offset: 3px; }

/* Preserve the layout of the independently hosted policy reader. */
body.policy-modal-page{background:#fff;min-width:0}
body.policy-modal-page::before{display:none}
.policy-modal-page .container-app{width:100%;max-width:none;margin:0;padding:16px!important}
.policy-modal-page .app-shell{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
.policy-modal-page .lesson-now-banner{padding:0 0 16px;border-radius:0;background:transparent;box-shadow:none;border-bottom:1px solid #dbe4f0}
.policy-modal-page .policy-section{padding:18px 0;margin:0;border-radius:0;box-shadow:none;border-bottom:1px solid #e0e7f1;overflow-wrap:anywhere}
.policy-modal-page .policy-section:last-child{border-bottom:0}
.policy-modal-page .policy-meta{flex-wrap:wrap;border-radius:10px}

@media (prefers-reduced-motion: reduce) {
  .rules-access-switch__track,
  .rules-access-switch__track::after { transition: none; }
}
