:root {
  --terms-navy: #062f68;
  --terms-blue: #0878ce;
  --terms-cyan: #12b9df;
  --terms-ink: #172536;
  --terms-muted: #5b6d81;
  --terms-line: #d9e4ee;
  --terms-wash: #f4f8fb;
}

.ox-terms-page { color: var(--terms-ink); background: #fff; }
.ox-terms-page main { overflow: clip; }
.ox-terms-page a { text-underline-offset: 3px; }

@media (min-width: 1200px) {
  .ox-terms-page .header:not(.header--color-2) .header__link { color: #153c64; font-weight: 600; }
  .ox-terms-page .header:not(.header--color-2) .header__menu-item:hover > .header__link { color: #006fca; }
}

.terms-hero {
  position: relative;
  min-height: 520px;
  padding: 132px 0 92px;
  background: linear-gradient(#d3e5ff 0%, #f5f8f7 100%);
  border-bottom: 1px solid #cfe0ed;
}
.terms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('/legal/assets/terms-legal-hero.webp?v=20260828') center 46%/cover no-repeat;
  opacity: .28;
}
.terms-hero__inner { position: relative; z-index: 1; }
.terms-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; font-size: 14px; color: #61788d; }
.terms-breadcrumb a { color: #174f86; text-decoration: none; }
.terms-hero__layout { display: block; }
.terms-hero__copy { max-width: 680px; }
.terms-eyebrow { margin: 0 0 10px; color: var(--terms-blue); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.terms-hero h1 { margin: 0; color: #122b49; font-size: clamp(44px, 6vw, 72px); font-weight: 750; letter-spacing: 0; line-height: 1.04; }
.terms-hero__intro { max-width: 730px; margin: 22px 0 0; color: #516a80; font-size: 20px; line-height: 1.6; }
.terms-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 30px; color: #35546f; font-size: 14px; font-weight: 650; }
.terms-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.terms-hero__meta span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--terms-cyan); }
.terms-print { min-height: 40px; padding: 8px 16px; border: 1px solid #9ebbd3; border-radius: 6px; color: var(--terms-navy); background: rgba(255,255,255,.68); font-weight: 700; }
.terms-print:hover { color: #fff; border-color: var(--terms-navy); background: var(--terms-navy); }

.terms-summary { position: relative; z-index: 2; margin-top: -35px; }
.terms-summary__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 96px; padding: 16px 20px; overflow: hidden; border: 1px solid #d6e2ec; border-top: 4px solid var(--terms-cyan); border-radius: 8px; background: #fff; box-shadow: 0 18px 45px rgba(18,57,91,.1); }
.terms-summary__item { display: flex; min-width: 0; padding: 4px 24px; border-right: 1px solid #dfe8f0; align-items: center; gap: 13px; text-decoration: none; }
.terms-summary__item:last-child { border-right: 0; }
.terms-summary__icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 6px; place-items: center; background: #e7f5fb; }
.terms-summary__icon img { width: 21px; height: 21px; }
.terms-summary__text { display: grid; min-width: 0; gap: 3px; }
.terms-summary strong, .terms-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terms-summary strong { color: var(--terms-navy); font-size: 15px; }
.terms-summary small { color: var(--terms-muted); font-size: 12px; line-height: 1.35; }
.terms-summary__item--link:hover { background: #f3f9fd; }
.terms-summary__item--link:hover strong { color: var(--terms-blue); }

.terms-document { padding: 90px 0 120px; background: linear-gradient(90deg, #f6f9fb 0, #fff 22%, #fff 100%); }
.terms-layout { display: grid; grid-template-columns: 270px minmax(0, 900px); align-items: start; justify-content: center; gap: 56px; }
.terms-aside { position: sticky; top: 24px; }
.terms-aside__inner { padding: 24px 0; border-top: 3px solid var(--terms-cyan); border-bottom: 1px solid var(--terms-line); }
.terms-aside__label { margin: 0 0 14px; color: #708194; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.terms-toc { display: flex; flex-direction: column; }
.terms-toc a { padding: 7px 4px; color: #3c5369; font-size: 14px; font-weight: 600; line-height: 1.25; text-decoration: none; border-left: 2px solid transparent; }
.terms-toc a:hover, .terms-toc a:focus { padding-left: 12px; color: var(--terms-blue); border-left-color: var(--terms-cyan); }
.terms-related { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--terms-line); }
.terms-related p { margin: 0 0 8px; color: #708194; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.terms-related a { display: block; padding: 5px 0; color: var(--terms-blue); font-size: 14px; font-weight: 650; }

.terms-copy { min-width: 0; }
.terms-notice { margin-bottom: 20px; padding: 22px 24px; border-left: 4px solid var(--terms-cyan); border-radius: 0 6px 6px 0; background: #eaf7fc; }
.terms-notice strong { display: block; margin-bottom: 5px; color: var(--terms-navy); font-size: 18px; }
.terms-notice p { margin: 0; color: #3c5c73; font-size: 15px; line-height: 1.65; }
.terms-clause { scroll-margin-top: 24px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 38px 0; border-bottom: 1px solid var(--terms-line); }
.terms-number { display: flex; align-items: center; justify-content: center; width: 44px; height: 32px; border-radius: 4px; color: var(--terms-blue); background: #e7f4fb; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.terms-clause h2 { margin: 0 0 14px; color: #172f4b; font-size: 25px; font-weight: 750; letter-spacing: 0; line-height: 1.25; }
.terms-clause p, .terms-clause li, .terms-clause address { color: #506477; font-size: 16px; line-height: 1.75; }
.terms-clause p { margin: 0 0 15px; }
.terms-clause p:last-child { margin-bottom: 0; }
.terms-clause ul { margin: 5px 0 18px; padding-left: 22px; }
.terms-clause li { margin-bottom: 8px; padding-left: 5px; }
.terms-clause a { color: #006fc5; font-weight: 650; }
.terms-clause address { margin: 12px 0 0; font-style: normal; }
.terms-clause--contact { margin-top: 22px; padding: 32px 28px; border: 0; border-radius: 8px; background: #f0f8fc; }
.terms-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.terms-actions .theme-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 1px solid var(--terms-navy); border-radius: 6px; color: #fff; background: var(--terms-navy); text-decoration: none; }
.terms-actions .theme-btn--outline { color: var(--terms-navy); background: transparent; }
.terms-actions .theme-btn:hover { color: #fff; border-color: var(--terms-blue); background: var(--terms-blue); }

/* Keep the shared site footer compact on this long-form page. */
.ox-terms-page .footer {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  background: #dcecff;
}
.ox-terms-page .footer::before {
  inset: 0;
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, #f4f8fb 0%, #dcecff 100%);
}
.ox-terms-page .footer__wrapper { align-items: flex-start; }
.ox-terms-page .footer__brand-logo img { width: auto; height: 38px; }

@media (max-width: 991.98px) {
  .terms-hero {
    min-height: 0;
    padding: 112px 0 70px;
    background: linear-gradient(#d3e5ff 0%, #f5f8f7 100%);
  }
  .terms-hero::before { background-position: 64% center; }
  .terms-breadcrumb { margin-bottom: 28px; }
  .terms-hero__layout { display: block; }
  .terms-summary__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms-summary__item:nth-child(2) { border-right: 0; }
  .terms-summary__item:nth-child(-n+2) { padding-bottom: 14px; border-bottom: 1px solid #dfe8f0; }
  .terms-summary__item:nth-child(n+3) { padding-top: 14px; }
  .terms-document { padding: 70px 0 90px; background: #fff; }
  .terms-layout { grid-template-columns: 1fr; gap: 30px; }
  .terms-aside { position: static; }
  .terms-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}

@media (max-width: 575.98px) {
  .terms-hero { padding-top: 104px; }
  .terms-breadcrumb { margin-bottom: 28px; overflow: hidden; white-space: nowrap; }
  .terms-hero h1 { font-size: 42px; }
  .terms-hero__intro { font-size: 17px; line-height: 1.55; }
  .terms-hero__meta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .terms-summary { margin-top: -25px; }
  .terms-summary__inner { grid-template-columns: 1fr; padding: 8px 16px; }
  .terms-summary__item { min-height: 64px; padding: 10px 4px !important; border-right: 0; border-bottom: 1px solid #dfe8f0; }
  .terms-summary__item:last-child { border-bottom: 0; }
  .terms-document { padding: 55px 0 75px; }
  .terms-toc { grid-template-columns: 1fr; max-height: 340px; overflow: auto; }
  .terms-clause { grid-template-columns: 1fr; gap: 10px; padding: 31px 0; }
  .terms-clause h2 { font-size: 22px; }
  .terms-clause p, .terms-clause li, .terms-clause address { font-size: 15.5px; line-height: 1.7; }
  .terms-clause--contact { margin-left: -12px; margin-right: -12px; padding: 27px 20px; }
  .terms-actions { flex-direction: column; }
  .ox-terms-page .footer { padding-top: 52px; }
}

@media print {
  .ox-terms-page .header, .ox-terms-page .footer, .terms-summary, .terms-aside, .terms-print, .terms-actions { display: none !important; }
  .terms-hero { min-height: 0; padding: 20px 0; background: #fff; border-bottom: 2px solid #000; }
  .terms-breadcrumb { display: none; }
  .terms-hero h1 { color: #000; font-size: 36px; }
  .terms-hero__intro, .terms-hero__meta { color: #333; }
  .terms-document { padding: 10px 0; background: #fff; }
  .terms-layout { display: block; }
  .terms-clause { break-inside: avoid; padding: 18px 0; }
  .terms-clause h2 { color: #000; font-size: 18px; }
  .terms-clause p, .terms-clause li, .terms-clause address { color: #222; font-size: 11pt; }
}
