/* ==========================================================================
   Footer — rules transcribed verbatim from
   docs/research/css/index.f9761eab.pretty.css
   (.footer, .footer__*, .footer-auxiliary*, .footer-fineprint*, .footer-text,
    .currency-selector*).
   Breakpoints are the source's own: 744 / 1020 / 1280.
   The source scopes several rules with `#footer`; CSS Modules already give us
   the equivalent specificity/scoping, so the id prefix is dropped.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--primitive-black);
  z-index: 10;
  padding: 0 16px;
  position: relative;
  /* NB: the footer's structural elements (ul / li / a / the column-group
     heading) carry no `.text` class, so their line boxes are struck with the
     *inherited* font — now `html { font-family: "Neue Haas Unica", …;
     line-height: normal }` in globals.css. The `line-height: normal` matters
     as much as the family: Tailwind preflight otherwise sets `1.5` on `html`,
     which inflates every link-item line box here. Don't drop it. */
}
@media (width >= 744px) {
  .footer { padding: 0 24px; }
}
@media (width >= 1280px) {
  .footer { padding: 0 40px; }
}

.footer a {
  background-image: none;
  text-decoration: none;
  transition: color .3s;
}
.footer a:hover { color: var(--primitive-white); }

.footer__content {
  flex-direction: column-reverse;
  gap: 40px;
  padding: 40px 0;
  display: flex;
}
@media (width >= 1020px) {
  .footer__content {
    border-bottom: 1px solid #ffffff40;
    flex-direction: column;
  }
}
@media (width >= 1280px) {
  .footer__content { flex-direction: row; }
}

/* 13px footnote-ish size used throughout the footer (source `.footer-text`).
   In the source stylesheet `.footer-text` is declared *after* `.text--footnote`
   and so wins on document order. Here the two live in different files whose
   relative order is not guaranteed, so the descendant selector pins the
   source's outcome (13px, not the 12px of `.text--footnote`). */
.footer .footer__footer-text { font-size: 13px; }

/* --------------------------------------------------------------------------
   Locale settings (language + currency)
   -------------------------------------------------------------------------- */
.footer__locale-settings {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}
@media (width >= 1020px) {
  .footer__locale-settings {
    flex-direction: row;
    gap: 12px;
  }
}

.footer__locale-setting { position: relative; }

.footer__locale-setting-button-title {
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.footer__locale-setting-button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-color: #222;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  transition: opacity .3s;
  display: flex;
  position: relative;
}
@media (width >= 1020px) {
  .footer__locale-setting-button {
    z-index: 1001;
    background-color: #0000;
    border-radius: 0;
    padding: 8px 0;
  }
  .footer__locale-setting-button:hover { opacity: .6; }
}
.footer__locale-setting-button svg { stroke: none; }

.footer__locale-setting-button-caret { transition: transform .3s; }
.footer__locale-setting-button-caret-rotated { transform: rotate(180deg); }

.footer__locale-setting-button-spacer {
  width: 100%;
  height: 18px;
  position: absolute;
  top: -18px;
}
@media (width >= 1020px) {
  .footer__locale-setting-button-spacer { z-index: 1001; }
}

.footer__locale-setting-option {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  background-color: #0000;
  border-radius: 4px;
  width: 100%;
  padding: 12px 16px;
  transition: background-color .3s;
  display: inline-block;
  position: relative;
}
@media (width >= 1020px) {
  .footer__locale-setting-option { padding: 8px 16px; }
}
.footer__locale-setting-option:hover,
.footer__locale-setting-option-active { background-color: var(--color-gray-800); }
.footer__locale-setting-option-active { pointer-events: none; }

.footer__locale-setting-options-list {
  flex-direction: column;
  gap: 4px;
  line-height: normal;
  display: flex;
}
@media (width >= 1020px) {
  .footer__locale-setting-options-list { gap: 8px; }
}

.footer__locale-setting-title { padding: 12px 16px; }
@media (width >= 1020px) {
  .footer__locale-setting-title { display: none; }
}

.footer__locale-setting-menu {
  z-index: 1000;
  backdrop-filter: blur(10px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  transition: opacity .3s cubic-bezier(.645,.045,.355,1), visibility .3s cubic-bezier(.645,.045,.355,1);
  position: fixed;
  top: 0;
  left: 0;
}
@media (width >= 1020px) {
  .footer__locale-setting-menu {
    backdrop-filter: none;
    position: relative;
  }
}
.footer__locale-setting-menu-open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

.footer__locale-setting-menu-background {
  background-color: #0000001a;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}
@media (width >= 1020px) {
  .footer__locale-setting-menu-background {
    backdrop-filter: none;
    background-color: #0000;
  }
}
.footer__locale-setting-menu-background-hidden { display: none; }

.footer__locale-setting-menu-contents {
  text-align: center;
  color: var(--primitive-white);
  background-color: #222;
  flex-direction: column;
  width: 100%;
  padding: 8px;
  transition: transform .3s cubic-bezier(.645,.045,.355,1);
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateY(100%);
}
@media (width >= 1020px) {
  .footer__locale-setting-menu-contents {
    text-align: left;
    border-radius: 8px;
    width: 140px;
    bottom: 40px;
    transform: translateY(0%);
  }
}
.footer__locale-setting-menu-contents-open { transform: translateY(0%); }

.footer__locale-setting-menu-caret {
  bottom: -8px;
  left: var(--offset-left);
  color: #222;
  display: none;
  position: absolute;
  rotate: 180deg;
}
@media (width >= 1020px) {
  .footer__locale-setting-menu-caret { display: block; }
}

/* The currency selector only becomes visible once the pricing service reports
   a currency (source adds `--is-visible` from JS); it ships hidden. */
.footer__currency-selector { display: none; }
.footer__currency-selector-visible { display: block; }
.footer__currency-selector-title-hidden { display: none; }

/* --------------------------------------------------------------------------
   Auxiliary column (wordmark, tagline, badges)
   -------------------------------------------------------------------------- */
.footer__auxiliary {
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  display: flex;
}
@media (width >= 1020px) {
  .footer__auxiliary {
    border-bottom: 1px solid #ffffff40;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding-bottom: 40px;
  }
}
@media (width >= 1280px) {
  .footer__auxiliary {
    border-bottom: 0;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
    padding-bottom: 0;
  }
}

.footer__auxiliary-tagline {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  display: flex;
}
@media (width >= 1020px) {
  .footer__auxiliary-tagline { flex-direction: row; }
}
@media (width >= 1280px) {
  .footer__auxiliary-tagline {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer__sqsp-logo { stroke: none; }

.footer__auxiliary-title {
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.footer__auxiliary-badges {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  display: flex;
}
@media (width >= 1020px) {
  .footer__auxiliary-badges { align-items: flex-start; }
}

.footer__auxiliary-icann {
  align-items: center;
  gap: 16px;
  display: flex;
}
.footer__auxiliary-icann svg { stroke: none; }
.footer__auxiliary-icann-text {
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  max-width: 155px;
}
@media (width >= 1280px) {
  .footer__auxiliary-icann-text { max-width: 160px; }
}

/* SSL badge is German-locale only. */
.footer__auxiliary-ssl { display: none; }
html[lang^="de"] .footer__auxiliary-ssl {
  align-items: center;
  gap: 16px;
  display: flex;
}
.footer__auxiliary-ssl svg { stroke: none; }
.footer__auxiliary-ssl-logo {
  width: 25px;
  height: 100%;
}
@media (width >= 1280px) {
  .footer__auxiliary-ssl-logo { width: 34px; }
}
.footer__auxiliary-ssl-text {
  text-align: center;
  text-transform: uppercase;
  max-width: 13rem;
}
@media (width >= 1020px) {
  .footer__auxiliary-ssl-text { text-align: left; }
}
@media (width >= 1280px) {
  .footer__auxiliary-ssl-text { max-width: 14rem; }
}

/* The auxiliary locale settings are the mobile copy; ≥1020 the fine-print copy
   takes over. */
@media (width >= 1020px) {
  .footer__auxiliary-locale-settings { display: none; }
}

/* --------------------------------------------------------------------------
   Link columns (accordion < 1020, static columns ≥ 1020)
   -------------------------------------------------------------------------- */
.footer__links { display: grid; }
@media (width >= 1020px) {
  .footer__links {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
  }
}
@media (width >= 1280px) {
  .footer__links {
    flex: 2;
    column-gap: 40px;
  }
}

@media (width >= 1020px) {
  .footer__column {
    flex-direction: column;
    gap: 24px;
    display: flex;
  }
}

.footer__column-group {
  border-bottom: 1px solid #ffffff40;
  padding: 16px 0;
}
@media (width >= 1020px) {
  .footer__column-group {
    border: 0;
    padding: 0;
  }
}

.footer__column-group-heading {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  display: flex;
}
.footer__column-group-heading-desktop { display: none; }
@media (width >= 1020px) {
  .footer__column-group-heading-desktop {
    margin-bottom: 16px;
    display: block;
  }
  .footer__column-group-heading-mobile { display: none; }
}

.footer__column-group-title {
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
.footer__column-group-title-desktop { display: none; }
@media (width >= 1020px) {
  .footer__column-group-title-desktop { display: block; }
  .footer__column-group-title-mobile { display: none; }
}

.footer__column-group-arrow {
  transition: transform .3s cubic-bezier(.645,.045,.355,1);
  transform: rotate(0);
}
@media (width >= 1020px) {
  .footer__column-group-arrow { display: none; }
}
.footer__column-group-arrow-expanded { transform: rotate(180deg); }

.footer__column-group-list {
  opacity: 0;
  visibility: hidden;
  height: 0;
  transition: height .3s cubic-bezier(.645,.045,.355,1), opacity .3s cubic-bezier(.645,.045,.355,1), visibility .3s step-end;
}
.footer__column-group-list-expanded {
  height: var(--footer-column-group-list-height);
  opacity: 1;
  visibility: visible;
  transition: height .3s cubic-bezier(.645,.045,.355,1), opacity .3s cubic-bezier(.645,.045,.355,1), visibility .3s step-start;
}
@media (width >= 1020px) {
  .footer__column-group-list {
    opacity: 1;
    visibility: visible;
    height: auto;
  }
}

.footer__column-group-list-items {
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  line-height: normal;
  display: flex;
}
@media (width >= 1020px) {
  .footer__column-group-list-items {
    gap: 8px;
    padding: 0;
  }
}

.footer__link-item { list-style: none; }
.footer__link-item-link:hover { opacity: 1; }

/* Descendant-scoped for the same reason as `.footerText`: in the source these
   declarations sit after `.text--light` / `.text--footnote` and must beat them
   on both `color` (gray-500, not white) and `line-height` (inherit → the
   `normal` set on the list, not the 1.4 of `.text--footnote`). */
.footer .footer__link-item-title {
  text-align: left;
  color: var(--color-gray-500);
  line-height: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  transition: color .3s;
}
.footer .footer__link-item-title:hover { color: var(--primitive-white); }
.footer__link-item-title-desktop { display: none; }
@media (width >= 1020px) {
  .footer__link-item-title-desktop { display: inline-block; }
  .footer__link-item-title-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   Fine print / legal row
   -------------------------------------------------------------------------- */
.footer__fineprint { padding-bottom: 40px; }
@media (width >= 1020px) {
  .footer__fineprint { padding-bottom: 24px; }
}

.footer__fineprint-content {
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0;
  display: flex;
}
@media (width >= 1020px) {
  .footer__fineprint-content {
    flex-direction: row;
    padding: 12px 0 0;
  }
}

.footer__fineprint-list {
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  line-height: normal;
  display: flex;
}
@media (width >= 1020px) {
  .footer__fineprint-list { width: auto; }
}

.footer .footer__fineprint-item-title {
  color: var(--color-gray-500);
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  transition: color .3s;
}
.footer .footer__fineprint-item-title:hover { color: var(--primitive-white); }

.footer__fineprint-item-non-turkish { display: inline-block; }
html[lang^="tr"] .footer__fineprint-item-non-turkish,
.footer__fineprint-item-turkish { display: none; }
html[lang^="tr"] .footer__fineprint-item-turkish { display: inline-block; }

.footer__fineprint-item-german { display: none; }
html[lang^="de"] .footer__fineprint-item-german { display: inline-block; }

.footer__fineprint-item-locale-specific { display: none; }
.footer__fineprint-item-locale-specific-visible { display: inline-block; }

.footer__fineprint-item-copyright {
  text-align: center;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  width: 100%;
}
@media (width >= 1020px) {
  .footer__fineprint-item-copyright { width: auto; }
}

.footer__fineprint-locale-settings { display: none; }
@media (width >= 1020px) {
  .footer__fineprint-locale-settings { display: flex; }
}
