/* Page-owned terms composition: the shared homepage shell remains a dependency. */
:root {
  --terms-ink: #111315;
  --terms-paper: #f3f1eb;
  --terms-white: #ffffff;
  --terms-aqua: #1ab2bf;
  --terms-aqua-soft: #b9f0f0;
  --terms-yellow: #fff02a;
  --terms-muted: #5b6060;
  --terms-border: #d0d2ce;
  --terms-mono: "JetBrains Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --terms-sans: Inter, Arial, Helvetica, sans-serif;
}

html[data-theme="dark"] {
  --terms-ink: #f3f4ef;
  --terms-paper: #1b2021;
  --terms-white: #111517;
  --terms-muted: #c7cfce;
  --terms-border: #465051;
}

body.terms-page {
  margin: 0;
  background: var(--terms-paper);
  color: var(--terms-ink);
  font-family: var(--terms-sans);
}

body.terms-page a,
body.terms-page button {
  -webkit-tap-highlight-color: transparent;
}

.terms-shell-header {
  position: relative !important;
  z-index: 20;
  min-height: 136px;
  background: #15191a !important;
  color: #fff !important;
}

.terms-shell-content {
  display: block !important;
  width: 100% !important;
  height: 136px !important;
  min-height: 136px !important;
  padding: 0 24px !important;
  overflow: visible !important;
  background: #15191a !important;
  color: #fff !important;
}

.terms-shell-content::before,
.terms-shell-content::after {
  display: none !important;
}

.terms-shell-header .hero-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1520px, 100%);
  height: 72px;
  margin: 32px auto 0;
}

.terms-shell-header .hero-logo {
  display: block;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  background: #050505;
}

.terms-shell-header .hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terms-shell-header .hero-navigation {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  max-width: 804px;
  height: 72px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 18px 41px rgb(0 0 0 / 25%);
}

.terms-shell-header .hero-navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 clamp(8px, 1.1vw, 19px);
  color: #3f3f3f;
  font: 700 14px/18px var(--terms-mono);
  letter-spacing: -0.56px;
  text-decoration: none;
  white-space: nowrap;
}

.terms-shell-header .hero-navigation a:hover,
.terms-shell-header .hero-navigation a:focus-visible,
.terms-shell-header .hero-navigation a[aria-current="page"] {
  color: #111;
  background: rgb(0 194 179 / 14%);
  outline: 2px solid #00c2b3;
  outline-offset: -2px;
}

.terms-shell-header .hero-menu-toggle,
.terms-theme-toggle {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #fff;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 700 12px/1.2 var(--terms-mono);
}

.terms-shell-header .hero-menu-toggle {
  display: none;
}

.terms-theme-toggle {
  flex: 0 0 auto;
  max-width: 148px;
  text-align: center;
}

.terms-shell-header .hero-menu-toggle:hover,
.terms-shell-header .hero-menu-toggle:focus-visible,
.terms-theme-toggle:hover,
.terms-theme-toggle:focus-visible {
  background: var(--terms-aqua);
  color: #101414;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.terms-page-main {
  display: block;
  width: 100%;
  background: var(--terms-paper);
}

.terms-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 510px;
  padding: 82px clamp(24px, 10.4vw, 200px);
  background: linear-gradient(115deg, #15191a 0%, #222d2f 65%, #164f54 100%);
  color: #fff;
  isolation: isolate;
}

.terms-hero::before {
  position: absolute;
  top: 80px;
  right: 11%;
  width: 240px;
  height: 240px;
  border: 1px solid rgb(127 236 239 / 50%);
  border-radius: 43% 57% 62% 38%;
  content: "";
  transform: rotate(22deg);
  z-index: -1;
}

.terms-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  gap: 48px;
  width: min(1520px, 100%);
  margin: 0 auto;
}

.terms-hero__copy {
  max-width: 920px;
}

.terms-hero__eyebrow,
.terms-section__kicker,
.terms-callout__label {
  margin: 0 0 24px;
  color: var(--terms-aqua-soft);
  font: 700 13px/1.3 var(--terms-mono);
  letter-spacing: 0.12em;
}

.terms-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font: 700 clamp(3.5rem, 7vw, 8rem)/1.02 var(--terms-mono);
  letter-spacing: -0.06em;
}

.terms-hero__lede {
  max-width: 720px;
  margin: 34px 0 0;
  color: #e3f6f5;
  font-size: clamp(1.1rem, 1.65vw, 1.55rem);
  line-height: 1.45;
}

.terms-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 44px;
  font: 400 14px/1.4 var(--terms-mono);
}

.terms-hero__meta-label {
  color: #d1dddc;
}

.terms-hero__meta-link,
.terms-link {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 4px;
}

.terms-hero__meta-link:hover,
.terms-hero__meta-link:focus-visible,
.terms-link:hover,
.terms-link:focus-visible {
  color: var(--terms-aqua);
}

.terms-hero__mark {
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(148 239 242 / 65%);
  background: rgb(26 178 191 / 22%);
  transform: rotate(-8deg);
}

.terms-hero__mark img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  transform: rotate(8deg);
}

.terms-section {
  width: 100%;
  padding: clamp(76px, 9vw, 172px) clamp(24px, 10.4vw, 200px);
}

.terms-section--light,
.terms-section--paper {
  background: var(--terms-paper);
  color: var(--terms-ink);
}

.terms-section--paper {
  background: #fff;
}

html[data-theme="dark"] .terms-section--paper {
  background: #111617;
}

.terms-section--dark {
  background: #15191a;
  color: #fff;
}

.terms-section--accent {
  background: var(--terms-aqua);
  color: #101617;
}

.terms-section__inner {
  width: min(1520px, 100%);
  margin: 0 auto;
}

.terms-section__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  align-items: start;
  gap: clamp(42px, 9vw, 160px);
}

.terms-section__inner--list {
  margin-top: 54px;
}

.terms-section__inner--closing {
  max-width: 980px;
  margin-inline: 0 auto;
}

.terms-section__kicker {
  color: var(--terms-aqua);
}

.terms-section--dark .terms-section__kicker,
.terms-section--accent .terms-section__kicker {
  color: var(--terms-yellow);
}

.terms-section__title {
  max-width: 960px;
  margin: 0;
  color: inherit;
  font: 700 clamp(2.65rem, 5vw, 5.75rem)/1.04 var(--terms-mono);
  letter-spacing: -0.065em;
}

.terms-section__intro {
  max-width: 650px;
  margin: 0;
  color: inherit;
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  line-height: 1.5;
}

.terms-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 68px;
}

.terms-section__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 66px;
}

.terms-card {
  min-height: 280px;
  padding: clamp(26px, 3vw, 54px);
}

.terms-card--outline {
  border: 1px solid var(--terms-border);
  background: transparent;
}

.terms-card--aqua {
  background: var(--terms-aqua);
  color: #101617;
}

.terms-card--compact {
  min-height: 0;
  padding: 32px 28px;
  border-top: 5px solid var(--terms-aqua);
  background: var(--terms-white);
}

.terms-card__number {
  display: block;
  margin-bottom: 58px;
  color: var(--terms-aqua);
  font: 700 14px/1 var(--terms-mono);
}

.terms-card--aqua .terms-card__number {
  color: #101617;
}

.terms-card__heading,
.terms-point__copy h3 {
  margin: 0;
  color: inherit;
  font: 700 clamp(1.35rem, 1.8vw, 2rem)/1.12 var(--terms-mono);
}

.terms-card__text,
.terms-point__copy p,
.terms-section__prose p,
.terms-callout__text,
.terms-guardrail span {
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

.terms-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 70px;
}

.terms-point {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 210px;
  padding: 26px 24px;
  border: 1px solid rgb(255 255 255 / 24%);
}

.terms-point__icon {
  flex: 0 0 34px;
  color: var(--terms-yellow);
  font: 700 24px/1 var(--terms-mono);
}

.terms-point__copy h3 {
  font-size: 1.2rem;
}

.terms-point__copy p {
  color: #d8e4e2;
}

.terms-callout {
  align-self: center;
  padding: 32px;
  border-left: 5px solid var(--terms-aqua);
  background: #15191a;
  color: #fff;
}

.terms-callout__label {
  margin-bottom: 20px;
  color: var(--terms-yellow);
}

.terms-callout__text {
  margin-top: 0;
  font: 700 clamp(1.2rem, 1.7vw, 1.65rem)/1.35 var(--terms-mono);
}

.terms-list {
  display: grid;
  gap: 0;
  max-width: 960px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: terms-list;
}

.terms-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid var(--terms-border);
  counter-increment: terms-list;
  font-size: 1.05rem;
  line-height: 1.5;
}

.terms-list li::before {
  color: var(--terms-aqua);
  content: counter(terms-list, decimal-leading-zero);
  font: 700 13px/1.5 var(--terms-mono);
}

.terms-section__prose {
  max-width: 660px;
}

.terms-section__prose p:first-child {
  margin-top: 0;
}

.terms-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  margin-top: 42px;
  padding: 14px 22px;
  border: 1px solid #101617;
  background: #101617;
  color: #fff;
  font: 700 14px/1.2 var(--terms-mono);
  text-decoration: none;
}

.terms-button span {
  font-size: 20px;
  line-height: 0.8;
}

.terms-button:hover,
.terms-button:focus-visible {
  background: #fff;
  color: #101617;
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.terms-button--dark {
  background: transparent;
  color: var(--terms-ink);
}

.terms-button--dark:hover,
.terms-button--dark:focus-visible {
  background: var(--terms-ink);
  color: var(--terms-paper);
}

.terms-guardrail {
  display: flex;
  align-items: baseline;
  gap: 24px;
  max-width: 1120px;
  margin: 68px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgb(255 255 255 / 32%);
  border-bottom: 1px solid rgb(255 255 255 / 32%);
}

.terms-guardrail strong {
  flex: 0 0 auto;
  color: var(--terms-yellow);
  font: 700 14px/1.4 var(--terms-mono);
  text-transform: uppercase;
}

.terms-guardrail span {
  margin: 0;
  color: #e2eeee;
}

.terms-site-footer {
  position: relative !important;
  z-index: 1;
  width: 100%;
  padding: 0 !important;
  border: 1px solid #c5c5c5;
  background: #050505 !important;
  color: #fff;
}

.terms-site-footer [data-homepage-region-content] {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
  min-height: 0 !important;
  padding: 64px clamp(24px, 10.4vw, 200px);
  text-align: center;
}

.terms-site-footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.terms-site-footer .footer-brand-group {
  display: flex;
  min-width: 0;
  flex: 1 1 500px;
  max-width: 837px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.terms-site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.terms-site-footer .footer-nav a,
.terms-site-footer .footer-logo {
  color: #fff;
  text-decoration: none;
}

.terms-site-footer .footer-nav a {
  flex: 0 0 auto;
  color: #fff;
  font: 400 20px/24px var(--terms-mono);
  white-space: nowrap;
}

.terms-site-footer .footer-nav a:hover,
.terms-site-footer .footer-nav a:focus-visible,
.terms-site-footer .footer-logo:focus-visible {
  color: var(--terms-aqua-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.terms-site-footer .footer-nav a[aria-current="page"] {
  color: var(--terms-yellow);
}

.terms-site-footer .footer-logo {
  display: block;
  flex: 0 0 122px;
  width: 122px;
  height: 122px;
}

.terms-site-footer .footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.terms-site-footer .footer-nav-secondary {
  flex: 0 1 770px;
  justify-content: flex-end;
}

.terms-site-footer .footer-contact,
.terms-site-footer .footer-disclaimer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.terms-site-footer h2,
.terms-site-footer p {
  margin: 0;
}

.terms-site-footer h2 {
  color: #fff;
  font: 700 clamp(2.25rem, 2.9vw, 3.5rem)/1.14 var(--terms-mono);
}

.terms-site-footer .footer-contact p {
  color: #fff;
  font: 400 16px/20px var(--terms-sans);
}

.terms-site-footer .footer-disclaimer p {
  color: #fff;
  font: 400 16px/20px var(--terms-mono);
}

.terms-site-footer .footer-settings {
  display: flex;
  justify-content: center;
}

.terms-site-footer .footer-settings button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 400 14px/1.2 var(--terms-mono);
}

.terms-site-footer .footer-settings button:hover,
.terms-site-footer .footer-settings button:focus-visible {
  background: var(--terms-aqua);
  color: #101617;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.terms-site-footer .footer-copyright {
  color: #fff;
  font: 400 20px/24px var(--terms-mono);
}

.terms-consent-preferences {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / 58%);
}

.terms-consent-preferences[hidden] {
  display: none;
}

.terms-consent-preferences__panel {
  width: min(540px, 100%);
  padding: 28px;
  background: #fff;
  color: #15191a;
  box-shadow: 0 18px 60px rgb(0 0 0 / 32%);
}

.terms-consent-preferences__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.terms-consent-preferences__heading h2 {
  margin: 0;
  font: 700 1.35rem/1.2 var(--terms-mono);
}

.terms-consent-preferences__heading button {
  width: 36px;
  height: 36px;
  border: 1px solid #15191a;
  background: transparent;
  color: #15191a;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.terms-consent-preferences__panel > p {
  margin: 22px 0;
  line-height: 1.5;
}

.terms-consent-preferences__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #d0d2ce;
  border-bottom: 1px solid #d0d2ce;
  font-size: 0.95rem;
}

.terms-consent-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.terms-consent-preferences__actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #15191a;
  background: transparent;
  color: #15191a;
  cursor: pointer;
  font: 700 12px/1.2 var(--terms-mono);
}

.terms-consent-preferences__actions button:last-child {
  background: #15191a;
  color: #fff;
}

.terms-consent-preferences__actions button:hover,
.terms-consent-preferences__actions button:focus-visible,
.terms-consent-preferences__heading button:focus-visible {
  outline: 3px solid var(--terms-aqua);
  outline-offset: 3px;
}

@media (max-width: 1250px) {
  .terms-shell-header .hero-navigation a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .terms-shell-header .hero-navigation {
    max-width: 690px;
  }

  .terms-site-footer .footer-top,
  .terms-site-footer .footer-brand-group {
    flex-wrap: wrap;
  }

  .terms-site-footer .footer-brand-group {
    max-width: none;
  }

  .terms-site-footer .footer-nav-secondary {
    flex-basis: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .terms-shell-content {
    height: auto !important;
    min-height: 104px !important;
  }

  .terms-shell-header .hero-nav-shell {
    height: auto;
    min-height: 72px;
    margin-top: 16px;
  }

  .terms-shell-header .hero-navigation {
    flex-basis: 100%;
    order: 5;
    max-width: none;
    height: auto;
    padding: 8px;
  }

  .terms-shell-header .hero-navigation a {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .terms-shell-header .hero-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .terms-theme-toggle {
    max-width: 140px;
  }

  .terms-hero {
    min-height: 0;
    padding-block: 76px;
  }

  .terms-hero__inner {
    grid-template-columns: 1fr;
  }

  .terms-hero__mark {
    width: 140px;
    height: 140px;
  }

  .terms-hero__mark img {
    width: 95px;
    height: 95px;
  }

  .terms-section__inner--split {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .terms-points,
  .terms-section__grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .terms-shell-content {
    padding-inline: 16px !important;
  }

  .terms-shell-header .hero-nav-shell {
    flex-wrap: wrap;
    gap: 12px;
  }

  .terms-shell-header .hero-logo {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .terms-shell-header .hero-menu-toggle,
  .terms-theme-toggle {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .terms-shell-header .hero-menu-toggle {
    order: 2;
  }

  .terms-theme-toggle {
    order: 3;
    max-width: 126px;
  }

  .terms-hero {
    padding: 60px 20px;
    overflow: hidden;
  }

  .terms-hero::before {
    top: 28px;
    right: -70px;
    width: 180px;
    height: 180px;
  }

  .terms-hero h1 {
    font-size: clamp(2.85rem, 14vw, 5rem);
    overflow-wrap: anywhere;
  }

  .terms-hero__lede {
    margin-top: 26px;
    font-size: 1rem;
  }

  .terms-hero__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }

  .terms-section {
    padding: 66px 20px;
  }

  .terms-section__title {
    font-size: clamp(2.3rem, 12vw, 4.3rem);
    overflow-wrap: anywhere;
  }

  .terms-section__grid {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .terms-card {
    min-height: 0;
    padding: 28px 22px;
  }

  .terms-card__number {
    margin-bottom: 38px;
  }

  .terms-points {
    margin-top: 44px;
  }

  .terms-point {
    min-height: 0;
  }

  .terms-callout {
    padding: 24px;
  }

  .terms-guardrail {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 46px;
  }

  .terms-site-footer [data-homepage-region-content] {
    gap: 40px;
    padding: 40px 20px;
  }

  .terms-site-footer .footer-top,
  .terms-site-footer .footer-brand-group {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .terms-site-footer .footer-brand-group {
    width: 100%;
  }

  .terms-site-footer .footer-nav {
    justify-content: center;
  }

  .terms-site-footer .footer-nav a {
    font-size: 16px;
    line-height: 22px;
    white-space: normal;
  }

  .terms-site-footer .footer-logo {
    align-self: center;
  }

  .terms-site-footer h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .terms-site-footer .footer-contact p,
  .terms-site-footer .footer-disclaimer p {
    font-size: 14px;
    line-height: 20px;
  }

  .terms-site-footer .footer-copyright {
    font-size: 16px;
    line-height: 22px;
  }

  .terms-consent-preferences__panel {
    padding: 22px;
  }

  [data-consent-layout="card"] footer [data-consent-actions] {
    grid-template-columns: 1fr;
  }

  [data-consent-layout="card"] footer [data-consent-actions] button {
    min-width: 0;
  }
}
