@import url("/fonts/benji-sans.css");

:root {
  color-scheme: light;
  --navy: #10274b;
  --navy-soft: #173763;
  --ink: #172033;
  --muted: #5f6b7c;
  --blue: #1769ff;
  --blue-soft: #eaf2ff;
  --coral: #ff6b57;
  --coral-dark: #d94837;
  --purchase-blue: #265bf6;
  --purchase-blue-hover: #174bdc;
  --paper: #ffffff;
  --canvas: #f7f8fb;
  --border: #dfe4ec;
  --border-strong: #c9d2df;
  --shadow: 0 16px 45px rgba(16, 39, 75, 0.08);
  --shell: 1200px;
  --reading: 760px;
  --public-reading-size: 16px;
  --public-reading-leading: 1.8;
  --brand-page-header-height: 62px;
  --brand-page-content-width: 1280px;
  --brand-page-inline: clamp(16px, 1.25vw, 32px);
  font-family: var(--benji-font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.legal-auth-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.legal-auth-dialog::backdrop {
  background: rgba(4, 11, 22, .78);
  backdrop-filter: blur(3px);
}

.legal-auth-dialog__frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}

* {
  box-sizing: border-box;
}

html,
body {
  overscroll-behavior-y: none;
}

html {
  min-height: 100%;
  background: #000;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  min-height: 100dvh;
  min-width: 320px;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--public-reading-size);
  line-height: var(--public-reading-leading);
  -webkit-font-smoothing: antialiased;
}

body:has(.site-header--solid) {
  padding-top: calc(var(--brand-page-header-height) + env(safe-area-inset-top));
}

body > main {
  flex: 1 0 auto;
}

.site-footer {
  flex: none;
  margin-top: auto;
}

body:has(.mobile-navigation--open) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1003;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1002;
  width: 100%;
  height: calc(var(--brand-page-header-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(219, 226, 236, 0.9);
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 35, 51, 0.02);
  backdrop-filter: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header--over-hero {
  color: #fff;
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header--over-hero .brand-link__image {
  filter: brightness(0) invert(1);
}

.site-header--over-hero .menu-button {
  color: #ffffff;
}

.site-header__inner {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding-inline: var(--brand-page-inline);
}

.site-header--legal .site-header__inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

.legal-header-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.legal-header-account {
  min-height: 42px;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #244763;
  border-radius: 4px;
  color: #fff;
  background: #244763;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.legal-header-account:hover {
  color: #fff;
  border-color: #18364f;
  background: #18364f;
}

.legal-header-account:active {
  transform: scale(0.96);
}

.brand-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  line-height: 0;
  text-decoration: none;
  vertical-align: middle;
  justify-self: start;
}

.brand-link__image {
  width: 165.6px;
  max-width: 100%;
  height: auto;
  display: block;
  flex: 0 0 auto;
  transition: filter 180ms ease;
}

.brand-link strong {
  color: #10274b;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-self: center;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #27344a;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--coral);
}

.button {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--purchase-blue);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--purchase-blue-hover);
  color: #ffffff;
}

.button--primary:active {
  transform: scale(0.96);
}

.header-enroll {
  min-height: 44px;
  padding-inline: 18px;
}

.header-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.header-login {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.header-login:hover {
  border-color: var(--navy);
  background: var(--canvas);
  color: var(--navy);
}

.menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #10274b;
  cursor: pointer;
}

.menu-button svg {
  width: 24px;
  height: 24px;
}

.menu-button .close-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .close-icon {
  display: block;
}

.mobile-navigation {
  display: none;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}

.legal-hero::after {
  position: absolute;
  top: -150px;
  right: -80px;
  width: 430px;
  height: 430px;
  content: "";
  border: 78px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
  padding: 52px 0;
}

.legal-hero--policy {
  --legal-hero-image: url("/legal/heroes/tokyo.webp");
  min-height: clamp(260px, 28vw, 400px);
  display: flex;
  align-items: center;
  background: var(--legal-hero-image) center 54% / cover no-repeat;
}

.legal-hero--policy::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(4, 13, 25, 0.55);
}

.legal-hero--tokyo {
  --legal-hero-image: url("/legal/heroes/tokyo.webp");
}

.legal-hero--london {
  --legal-hero-image: url("/legal/heroes/london.webp");
}

.legal-hero--seoul {
  --legal-hero-image: url("/legal/heroes/seoul.webp");
}

.legal-hero--singapore {
  --legal-hero-image: url("/legal/heroes/singapore.webp");
}

.legal-hero--toronto {
  --legal-hero-image: url("/legal/heroes/toronto.webp");
}

.legal-hero--berlin {
  --legal-hero-image: url("/legal/heroes/berlin.webp");
}

.legal-hero--policy[data-hero-scene="member-rules"] {
  --legal-hero-image: url("/legal/heroes/paris.webp");
}

.legal-hero--policy[data-hero-scene="promotions"] {
  --legal-hero-image: url("/legal/heroes/sydney.webp");
}

@media (max-width: 760px) {
  .legal-hero--policy,
  .legal-hero--tokyo {
    --legal-hero-image: url("/legal/heroes/tokyo-mobile.webp");
  }

  .legal-hero--london {
    --legal-hero-image: url("/legal/heroes/london-mobile.webp");
  }

  .legal-hero--seoul {
    --legal-hero-image: url("/legal/heroes/seoul-mobile.webp");
  }

  .legal-hero--singapore {
    --legal-hero-image: url("/legal/heroes/singapore-mobile.webp");
  }

  .legal-hero--toronto {
    --legal-hero-image: url("/legal/heroes/toronto-mobile.webp");
  }

  .legal-hero--berlin {
    --legal-hero-image: url("/legal/heroes/berlin-mobile.webp");
  }

  .legal-hero--policy[data-hero-scene="member-rules"] {
    --legal-hero-image: url("/legal/heroes/paris-mobile.webp");
  }

  .legal-hero--policy[data-hero-scene="promotions"] {
    --legal-hero-image: url("/legal/heroes/sydney-mobile.webp");
  }
}

.legal-hero--policy::after {
  display: none;
}

.legal-hero--policy .legal-hero__inner {
  width: min(calc(100% - 40px), var(--brand-page-content-width));
  padding: clamp(68px, 8vw, 112px) 0;
  text-align: center;
}

.legal-hero--policy .legal-hero__inner h1 {
  max-width: min(760px, 70vw);
  margin-inline: auto;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.42);
}

.legal-eyebrow {
  margin: 0 0 14px;
  color: #9cc0ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.legal-hero__summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.legal-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.legal-meta strong {
  color: var(--paper);
}

.legal-document-meta {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legal-document-meta strong {
  color: var(--ink);
}

.legal-layout {
  width: min(calc(100% - 40px), var(--reading));
  margin: 0 auto;
  padding: 68px 0 96px;
}

.toc {
  align-self: start;
}

.toc__inner {
  position: sticky;
  top: 82px;
}

.toc p {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.toc ol {
  margin: 0;
  padding: 0 0 0 15px;
  border-left: 2px solid var(--border);
  list-style: none;
}

.toc li + li {
  margin-top: 2px;
}

.toc a {
  min-height: 42px;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  color: var(--blue);
}

.legal-content {
  min-width: 0;
  font-size: var(--public-reading-size);
  line-height: var(--public-reading-leading);
}

/* Keep Latin characters, numerals, and Chinese in one type system on careers. */
.join-us-page .legal-content {
  width: 100%;
  max-width: 100%;
}

.join-us-page .legal-content section,
.join-us-page .legal-content .callout,
.join-us-page .legal-contact,
.join-us-page .key-value,
.join-us-page .key-value > div {
  min-width: 0;
  max-width: 100%;
}

.join-us-page .legal-content h2,
.join-us-page .legal-content h3,
.join-us-page .legal-contact h2 {
  text-wrap: balance;
}

.join-us-page .legal-content p,
.join-us-page .legal-content li,
.join-us-page .key-value dd {
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

.join-us-page .inline-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.join-us-page .money-amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.join-us-page .application-email {
  margin-top: -8px;
  font-size: var(--public-reading-size);
  line-height: 1.45;
}

.join-us-page .application-subject {
  margin-top: 24px;
}

.join-us-page .join-us-team-photo {
  overflow: hidden;
  margin: 32px 0 0;
  background: #eef0f3;
}

.join-us-page .join-us-team-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.join-us-page .join-us-team-photo + #about-partner > h2 {
  margin-top: 32px;
}

.legal-content > :first-child {
  margin-top: 0;
}

.legal-content h2 {
  margin: 64px 0 18px;
  padding-top: 4px;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 32px 0 10px;
  color: var(--navy-soft);
  font-size: 19px;
  line-height: 1.45;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 22px;
  padding-left: 1.35em;
}

.legal-content li {
  padding-left: 0.35em;
}

.legal-content li + li {
  margin-top: 9px;
}

.legal-content strong {
  color: var(--navy);
}

.lead {
  margin-bottom: 28px !important;
  color: var(--navy);
  font-size: var(--public-reading-size);
  line-height: var(--public-reading-leading);
}

.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: var(--navy);
}

.callout--warm {
  border-left-color: var(--coral);
  background: #fff1ee;
}

.callout--plain {
  padding: 0;
  border-left: 0;
  background: transparent;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout__title {
  margin: 0 0 6px !important;
  font-size: 14px;
  font-weight: 900;
}

/* Keep large Traditional Chinese careers headings open and readable. */
.join-us-page .legal-content h2,
.join-us-page .callout__title {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.plain-card {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.plain-card h3 {
  margin-top: 0;
}

.key-value {
  margin: 26px 0;
}

.key-value > div {
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 22px;
}

.key-value dt {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.key-value dd {
  margin: 0;
}

.steps {
  margin: 28px 0 !important;
  padding: 0 !important;
  list-style: none;
  counter-reset: legal-step;
}

.steps li {
  position: relative;
  min-height: 52px;
  padding: 3px 0 20px 62px;
  counter-increment: legal-step;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  content: counter(legal-step, decimal-leading-zero);
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
}

.join-us-page .steps li::before {
  top: calc((100% - 20px) / 2);
  transform: translateY(-50%);
}

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

.inline-link {
  color: var(--blue);
  font-weight: 750;
}

.legal-contact {
  margin-top: 64px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 36px;
  border: 1px solid #d5e0e8;
  border-radius: 12px;
  background: #f2f6f8;
  color: var(--navy);
}

.legal-contact h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 10px;
  padding: 0;
  color: var(--navy);
}

.legal-contact p {
  grid-column: 1;
  grid-row: 2;
  max-width: 760px;
  margin: 0;
  color: #526477;
}

.contact-button {
  min-height: 50px;
  padding: 0 22px;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.contact-button:hover {
  border-color: var(--navy-soft);
  background: var(--navy-soft);
  color: var(--paper);
}

.not-found-content {
  width: min(calc(100% - 40px), var(--shell));
  min-height: 38vh;
  margin: 0 auto;
  padding: 72px 0 96px;
}

.site-footer {
  min-height: 0;
  padding: 40px var(--brand-page-inline) 20px;
  background-color: #02060c;
  background-position: center 56%;
  background-repeat: no-repeat;
  background-size: cover;
  color: #f6f7f8;
  font-family: var(--benji-font-sans);
}

.site-footer--art-ready {
  background-image:
    linear-gradient(180deg, rgba(0, 5, 12, 0.72), rgba(0, 0, 0, 0.86)),
    url("/benji-footer-nyc-taipei-skyline-1400.webp");
}

.site-footer__inner {
  width: min(100%, 1280px);
  min-height: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: clamp(72px, 10vw, 152px);
}

.site-footer__brand {
  min-width: 0;
  display: grid;
  justify-items: start;
}

.site-footer a.site-footer__brand-lockup {
  width: min(100%, 210px);
  min-height: 0;
  display: block;
}

.site-footer__brand-lockup img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer__brand p {
  max-width: 360px;
  margin: 18px 0 0;
  color: #bfc3c7;
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
}

.site-footer__contact {
  margin-top: 12px;
  color: #f6f7f8;
  font-size: 14px;
  font-weight: 650;
}

.site-footer__menus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.site-footer__menus section {
  min-width: 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

.site-footer__menus nav {
  display: grid;
  gap: 4px;
}

.site-footer a {
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #dedfe2;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer a:hover {
  color: #85b5d1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible {
  outline-color: #85b5d1;
}

.site-footer__legal {
  padding-top: 18px;
  display: grid;
  gap: 12px;
  border-top: 1px solid #7d7d7d;
}

.site-footer__bottom {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
}

.site-footer__bottom a {
  min-height: 44px;
  font-size: 12px;
  font-weight: 400;
}

.site-footer__bottom span {
  flex: none;
  color: #dedfe2;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

@media (max-width: 1060px) {
  .site-nav {
    gap: 20px;
  }
}

@media (max-width: 960px) {
  .site-footer__top {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 0.75fr);
    gap: 56px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .legal-header-account {
    display: none;
  }

  .mobile-navigation {
    position: fixed;
    top: calc(var(--brand-page-header-height) + env(safe-area-inset-top));
    right: 0;
    left: 0;
    max-height: calc(100dvh - var(--brand-page-header-height) - env(safe-area-inset-top));
    padding:
      16px max(20px, env(safe-area-inset-right))
      calc(24px + env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    display: grid;
    gap: 4px;
    overflow: auto;
    border-bottom: 1px solid var(--border);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .mobile-navigation--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-navigation a {
    min-height: 52px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    color: #172033;
    font-weight: 750;
    text-decoration: none;
  }

  .mobile-navigation .mobile-navigation__account {
    margin-top: 8px;
    justify-content: center;
    border: 1px solid #244763;
    border-radius: 4px;
    color: #fff;
    background: #244763;
  }

  .mobile-navigation .mobile-navigation__account:hover {
    color: #fff;
    border-color: #18364f;
    background: #18364f;
  }

  .mobile-navigation .button {
    margin-top: 12px;
    justify-content: center;
    color: #ffffff;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 70px;
  }

  .legal-layout {
    padding-top: 42px;
  }

  .join-us-page .legal-contact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 20px;
  }

  .join-us-page .legal-contact h2,
  .join-us-page .legal-contact p,
  .join-us-page .contact-button {
    grid-column: 1;
    grid-row: auto;
  }

  .join-us-page .contact-button {
    width: 100%;
    white-space: normal;
  }

}

@media (max-width: 720px) {
  :root {
    --brand-page-header-height: 56px;
    --brand-page-inline: 16px;
  }

  .site-header {
    height: calc(var(--brand-page-header-height) + env(safe-area-inset-top));
  }

  .site-header__inner {
    width: 100%;
    margin: 0;
    padding-right: max(var(--brand-page-inline), env(safe-area-inset-right));
    padding-left: max(var(--brand-page-inline), env(safe-area-inset-left));
    gap: 10px;
  }

  .brand-link__image {
    width: 147.6px;
  }

  .mobile-navigation {
    top: calc(var(--brand-page-header-height) + env(safe-area-inset-top));
    max-height: calc(100dvh - var(--brand-page-header-height) - env(safe-area-inset-top));
  }

  .header-enroll {
    display: none;
  }

  .header-login {
    min-height: 44px;
    padding-inline: 14px;
  }

  .menu-button {
    margin-left: auto;
  }

  .site-footer.site-footer--art-ready {
    background-image:
      linear-gradient(180deg, rgba(0, 5, 12, 0.72), rgba(0, 0, 0, 0.86)),
      url("/benji-footer-nyc-taipei-skyline-960.webp");
  }

  .site-footer {
    min-height: 0;
    padding:
      32px max(var(--brand-page-inline), env(safe-area-inset-right))
      calc(96px + env(safe-area-inset-bottom))
      max(var(--brand-page-inline), env(safe-area-inset-left));
    background-position: 88% 56%;
  }

  .site-footer__inner {
    min-height: 0;
    gap: 32px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer a.site-footer__brand-lockup {
    width: min(100%, 180px);
  }

  .site-footer h2 {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .site-footer a {
    min-height: 44px;
    font-size: 14px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer__bottom nav {
    gap: 0 22px;
  }

  .site-footer__bottom a {
    min-height: 44px;
    font-size: 11px;
  }

  .site-footer__bottom span {
    white-space: normal;
  }

  .site-footer--learner {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .legal-hero__inner,
  .not-found-content {
    width: min(calc(100% - 28px), var(--shell));
  }

  .legal-layout {
    width: min(calc(100% - 28px), var(--reading));
  }

  .join-us-page .legal-layout {
    width: min(calc(100% - 32px), var(--reading));
    padding-top: 44px;
  }

  .legal-hero__inner {
    padding: 42px 0 44px;
  }

  .legal-hero--policy {
    min-height: 230px;
    background-position: 62% center;
  }

  .legal-hero--policy .legal-hero__inner {
    width: min(calc(100% - 32px), var(--brand-page-content-width));
    padding: 64px 0;
  }

  .legal-hero--policy .legal-hero__inner h1 {
    max-width: 86vw;
    font-size: clamp(36px, 11vw, 48px);
  }

  .legal-hero h1 {
    font-size: 38px;
  }

  .legal-hero__summary {
    margin-top: 18px;
    font-size: 16px;
  }

  .legal-meta {
    margin-top: 22px;
    display: grid;
    gap: 4px;
  }

  .legal-layout {
    padding-bottom: 68px;
  }

  .legal-content h2 {
    margin-top: 50px;
    font-size: 26px;
  }

  .join-us-page .legal-content h2 {
    margin-top: 44px;
    font-size: clamp(23px, 7vw, 27px);
    line-height: 1.35;
    text-wrap: wrap;
  }

  .legal-content h3 {
    font-size: 18px;
  }

  .callout,
  .plain-card {
    padding: 18px;
  }

  .join-us-page .callout.callout--plain {
    padding: 0;
  }

  .join-us-page .callout__title {
    font-size: 18px;
    line-height: 1.55;
  }

  .key-value > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .join-us-page .steps li {
    padding-block: 2px 20px;
    padding-inline: 54px 0;
  }

  .join-us-page .steps li::before {
    width: 38px;
    height: 38px;
  }

  .legal-contact {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 20px;
    padding: 26px 20px;
  }

  .legal-contact h2,
  .legal-contact p,
  .contact-button {
    grid-column: 1;
    grid-row: auto;
  }

  .legal-content .legal-contact h2 {
    margin: 0;
  }

  .contact-button {
    width: 100%;
  }

}

@media (max-width: 360px) {
  .join-us-page .legal-layout {
    width: min(calc(100% - 24px), var(--reading));
  }

  .join-us-page .legal-content h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
