/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html,
body {
  margin: 0;
  min-height: 100%;
}

.cai-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.cai-language-selector {
  align-items: center;
  background: transparent;
  display: flex;
  height: 32px;
  justify-content: flex-end;
  padding: 0 22px;
  position: relative;
  z-index: 1000;
}

.cai-landing .cai-language-selector {
  display: flex;
}

.cai-landing .css-mq14gb > #header {
  display: none;
}

.cai-language-menu {
  position: relative;
}

.cai-language-menu summary {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
  font: 600 12px/1.2 "Inter Tight", system-ui, sans-serif;
  height: 24px;
  justify-content: center;
  letter-spacing: 0;
  list-style: none;
  padding: 0 2px;
  text-decoration: none;
  transition: color 160ms ease;
  width: auto;
}

.cai-language-menu summary::-webkit-details-marker {
  display: none;
}

.cai-language-menu summary:hover,
.cai-language-menu[open] summary,
.cai-language-menu summary:focus-visible {
  color: rgba(255, 255, 255, 0.96);
  outline: none;
}

.cai-language-menu__icon {
  display: block;
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.cai-language-menu__label {
  display: block;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cai-language-menu__panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 2px;
  margin-top: 8px;
  min-width: 144px;
  padding: 6px;
  position: absolute;
  right: 0;
}

.cai-language-menu__panel a {
  border-radius: 6px;
  color: rgba(31, 31, 31, 0.78);
  font: 600 13px/1.2 "Inter Tight", system-ui, sans-serif;
  letter-spacing: 0;
  padding: 8px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.cai-language-menu__panel a:hover,
.cai-language-menu__panel a:focus-visible,
.cai-language-menu__panel a.is-current {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(31, 31, 31, 0.96);
  outline: none;
}

@media (max-width: 767px) {
  .cai-language-selector {
    height: 32px;
    padding: 0 14px;
  }

  .cai-language-menu__panel {
    left: auto;
    right: 0;
  }
}

.legal-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.legal-page {
  --legal-accent: #d5aa33;
  --legal-border: rgba(23, 22, 27, 0.14);
  --legal-ink: #211f26;
  --legal-link: #6542ff;
  background: #f9f9f9;
  box-sizing: border-box;
  color: var(--legal-ink);
  font-family: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  padding: 0 28px 48px;
}

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

.legal-page__bar {
  align-items: center;
  display: flex;
  height: 88px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 8px;
}

.legal-page__logo {
  display: block;
  height: auto;
  width: 84px;
}

.legal-page__home {
  display: block;
}

.legal-shell {
  background: #fff;
  border: 1px solid rgba(23, 22, 27, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(30, 25, 42, 0.08);
  margin: 0 auto;
  max-width: 1240px;
  overflow: hidden;
  padding: 68px 64px 78px;
}

.legal-language-selector {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
}

.legal-language-menu {
  position: relative;
}

.legal-language-menu summary {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(33, 31, 38, 0.76);
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  font: 600 13px/1.2 "Inter Tight", system-ui, sans-serif;
  list-style: none;
  min-height: 40px;
  padding: 0 4px;
}

.legal-language-menu summary::-webkit-details-marker {
  display: none;
}

.legal-language-menu summary:hover,
.legal-language-menu[open] summary,
.legal-language-menu summary:focus-visible {
  color: var(--legal-ink);
  outline: none;
}

.legal-language-menu summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(101, 66, 255, 0.24);
  border-radius: 6px;
}

.legal-language-menu__icon {
  display: block;
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.legal-language-menu__label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-language-menu__panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--legal-border);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(30, 25, 42, 0.14);
  display: grid;
  gap: 2px;
  margin-top: 7px;
  min-width: 154px;
  padding: 6px;
  position: absolute;
  right: 0;
}

.legal-language-menu__panel a {
  border-radius: 6px;
  color: rgba(33, 31, 38, 0.8);
  font: 600 13px/1.2 "Inter Tight", system-ui, sans-serif;
  padding: 9px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.legal-language-menu__panel a:hover,
.legal-language-menu__panel a:focus-visible,
.legal-language-menu__panel a.is-current {
  background: rgba(101, 66, 255, 0.08);
  color: var(--legal-link);
  outline: none;
}

.legal-document {
  margin: 0 auto;
}

.legal-document-hero {
  margin: 0 0 84px;
  max-width: 860px;
}

.legal-document--privacy .legal-document-hero {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.legal-document--privacy .legal-document-deck {
  margin-left: auto;
  margin-right: auto;
}

.legal-eyebrow {
  color: var(--legal-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.legal-document h1 {
  color: var(--legal-ink);
  font-size: clamp(42px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

.legal-document-deck {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 28px;
  max-width: 760px;
}

.legal-document-deck a,
.legal-document-copy a,
.legal-document-sidebar a {
  color: var(--legal-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-document-deck a:hover,
.legal-document-copy a:hover,
.legal-document-sidebar a:hover {
  text-decoration-thickness: 2px;
}

.legal-page__home:focus-visible,
.legal-document-deck a:focus-visible,
.legal-document-copy a:focus-visible,
.legal-document-sidebar a:focus-visible,
.legal-page__footer a:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(101, 66, 255, 0.24);
  outline-offset: 2px;
}

.legal-page__footer {
  display: flex;
  justify-content: center;
  margin: 24px auto 0;
  max-width: 1240px;
  text-align: center;
}

.legal-page__footer a {
  align-items: center;
  border-radius: 999px;
  color: rgba(33, 31, 38, 0.68);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.legal-page__footer a:hover {
  background: rgba(33, 31, 38, 0.05);
  color: var(--legal-ink);
}

.legal-page__footer a:focus-visible {
  border-radius: 999px;
}

.legal-document-grid {
  align-items: start;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
}

.legal-document-sidebar {
  display: grid;
  gap: 42px;
}

.legal-document-sidebar h1 {
  font-size: clamp(38px, 3.7vw, 48px);
  margin-top: 12px;
}

.legal-document-sidebar h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 13px;
}

.legal-document--privacy .legal-document-sidebar > div:first-child h2 {
  font-size: 28px;
}

.legal-document--privacy .legal-document-contact h2 {
  font-size: 14px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.legal-document-sidebar p,
.legal-document-sidebar a {
  font-size: 14px;
  line-height: 1.5;
}

.legal-document-sidebar p {
  margin: 13px 0 0;
}

.legal-document-meta {
  color: rgba(33, 31, 38, 0.7);
}

.legal-document-copy {
  color: rgba(33, 31, 38, 0.88);
  font-size: 14px;
  line-height: 1.55;
  min-width: 0;
}

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

.legal-document-copy ul,
.legal-document-copy ol {
  margin: 0 0 20px;
  padding-left: 20px;
}

.legal-document-copy li + li {
  margin-top: 8px;
}

.legal-document-introduction {
  margin-bottom: 34px !important;
}

.legal-accordion {
  border-top: 1px solid var(--legal-border);
}

.legal-accordion:last-child {
  border-bottom: 1px solid var(--legal-border);
}

.legal-accordion summary {
  color: var(--legal-link);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.3;
  list-style: none;
  padding: 23px 48px 23px 0;
  position: relative;
  text-transform: uppercase;
}

.legal-accordion summary::-webkit-details-marker {
  display: none;
}

.legal-accordion summary::before,
.legal-accordion summary::after {
  background: currentColor;
  content: "";
  height: 1.5px;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
}

.legal-accordion summary::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 160ms ease;
}

.legal-accordion[open] summary::after {
  transform: translateY(-50%) rotate(0);
}

.legal-accordion summary:hover {
  color: var(--legal-link);
}

.legal-accordion summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(101, 66, 255, 0.24);
  outline-offset: 3px;
}

.legal-accordion-body {
  padding: 0 32px 24px 0;
}

.legal-terms-introduction {
  margin-bottom: 30px;
}

.legal-terms-section {
  border-top: 1px solid var(--legal-border);
  padding-top: 28px;
}

.legal-terms-section + .legal-terms-section {
  margin-top: 28px;
}

.legal-terms-section h2 {
  color: var(--legal-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 12px;
}

.legal-terms-copy > h2 {
  color: rgba(33, 31, 38, 0.88);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 18px;
}

.legal-terms-copy > h2:not(:first-of-type) {
  border-top: 1px solid var(--legal-border);
  padding-top: 28px;
}

@media (max-width: 820px) {
  .legal-page {
    padding: 0 14px 24px;
  }

  .legal-page__bar {
    height: 72px;
    padding: 0 6px;
  }

  .legal-page__logo {
    width: 74px;
  }

  .legal-shell {
    border-radius: 14px;
    padding: 38px 16px 50px;
  }

  .legal-document-hero {
    margin-bottom: 58px;
  }

  .legal-document h1 {
    font-size: 42px;
    line-height: 1;
  }

  .legal-document--privacy h1 {
    font-size: 36px;
  }

  .legal-document-deck {
    font-size: 16px;
    margin-top: 24px;
  }

  .legal-document-grid {
    gap: 48px;
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-document-sidebar {
    gap: 26px;
    text-align: center;
  }

  .legal-document-sidebar h1 {
    font-size: 42px;
  }

  .legal-document-contact {
    padding-top: 4px;
  }

  .legal-document-introduction {
    margin-bottom: 28px !important;
  }

  .legal-accordion summary {
    padding-bottom: 21px;
    padding-top: 21px;
  }

  .legal-accordion-body {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-accordion summary::after,
  .legal-page__footer a {
    transition: none;
  }
}
