@font-face {
  font-family: "Serim Footer Geist Variable";
  src: url("../fonts/contact-reference/geist-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/*
 * Light footer reference layer.
 * All selectors are scoped to .serim-footer so the existing Serim footer and
 * archived reference sections remain untouched.
 */
.serim-footer {
  --serim-footer-surface: #fff;
  --serim-footer-foreground: #000;
  --serim-footer-surface-raised: #f2f2f2;
  --serim-footer-ring: #d14e00;
  --serim-footer-status: #bdee63;
  --serim-footer-status-pulse: #bdee6380;
  --serim-footer-duration: 200ms;
  --serim-footer-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --serim-footer-font-sans: "UCity Pro", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  --serim-footer-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background: var(--serim-footer-surface);
  color: var(--serim-footer-foreground);
  font-family: var(--serim-footer-font-sans);
  font-size: 16px;
  font-weight: var(--fc-regular-weight, 400);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}

.serim-footer,
.serim-footer *,
.serim-footer *::before,
.serim-footer *::after {
  box-sizing: border-box;
}

.serim-footer :where(p, ul) {
  max-width: none;
  margin: 0;
  padding: 0;
}

.serim-footer li {
  list-style: none;
}

.serim-footer a {
  color: inherit;
  text-decoration: none;
}

.serim-footer a:focus-visible {
  outline: 2px solid var(--serim-footer-ring);
  outline-offset: 2px;
}

.serim-footer ::selection {
  background: #ef5a0038;
  color: var(--serim-footer-foreground);
}

.serim-footer__rule {
  width: 100%;
  height: 1px;
  background: rgb(0 0 0 / 10%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.serim-footer__rule--top {
  position: absolute;
  inset: 0 0 auto;
}

.serim-footer__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(81rem + 5rem);
  margin-inline: auto;
  padding: 64px 1.25rem 44px;
}

.serim-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 48px;
}

.serim-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.serim-footer__brand-link {
  display: inline-flex;
  width: fit-content;
}

.serim-footer__logo {
  display: block;
  width: auto;
  height: 26px;
}

.serim-footer__certificates {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.serim-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.serim-footer__status-dot-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
}

.serim-footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--serim-footer-status);
  box-shadow: 0 0 4px 0 var(--serim-footer-status-pulse);
  animation: serim-footer-pulse 2s ease-out infinite;
}

.serim-footer__status-label,
.serim-footer__more-text {
  color: rgb(0 0 0 / 50%);
  font-family: var(--serim-footer-font-mono);
  font-size: 11px;
  font-weight: var(--fc-regular-weight, 400);
  letter-spacing: 0.1px;
  line-height: 1;
  text-transform: uppercase;
}

.serim-footer__badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.serim-footer__badge-link {
  position: relative;
  display: block;
  flex: none;
  opacity: 1;
  transition: opacity var(--serim-footer-duration) var(--serim-footer-ease-out);
}

.serim-footer__badge-mark,
.serim-footer__more-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgb(0 0 0 / 7%);
  color: rgb(0 0 0 / 85%);
}

.serim-footer__badge-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serim-footer-font-sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.serim-footer__badge-glyph strong {
  font-size: 8px;
  font-weight: 600;
}

.serim-footer__more-mark {
  background: rgb(0 0 0 / 4%);
}

.serim-footer__more-text {
  color: rgb(0 0 0 / 45%);
}

.serim-footer__tooltip {
  pointer-events: none;
  position: absolute;
  z-index: 10;
  bottom: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 205px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--serim-footer-surface-raised);
  opacity: 0;
  box-shadow: 0 10px 28px rgb(0 0 0 / 18%);
  transform: translateY(4px) scale(0.98);
  transform-origin: bottom left;
  transition:
    opacity var(--serim-footer-duration) var(--serim-footer-ease-out),
    transform var(--serim-footer-duration) var(--serim-footer-ease-out);
}

.serim-footer__badge-link:hover .serim-footer__tooltip,
.serim-footer__badge-link:focus-visible .serim-footer__tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.serim-footer__tooltip-title {
  color: var(--serim-footer-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.serim-footer__tooltip-copy {
  color: rgb(0 0 0 / 55%);
  font-size: 12px;
  line-height: 1.375;
}

.serim-footer__quick-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--serim-footer-foreground);
}

.serim-footer__quick-links > * {
  flex: none;
  align-self: center;
}

.serim-footer__quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  opacity: 1;
  transition: opacity var(--serim-footer-duration) var(--serim-footer-ease-out);
}

.serim-footer__quick-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.serim-footer__language-switcher,
.serim-shared-header.vf-header-reference .serim-footer .vfr-language-switcher--footer {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 0;
}

.serim-footer__language-button {
  gap: 6px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--serim-footer-font-sans);
  line-height: 1;
  appearance: none;
  cursor: pointer;
}

.serim-footer__language-button:focus-visible {
  outline: 2px solid var(--serim-footer-ring);
  outline-offset: 3px;
}

.serim-footer__language-code {
  position: relative;
  inset-block-start: -0.5px;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.serim-footer__language-globe {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.serim-footer__language-globe svg {
  display: block;
  width: 18px;
  height: 18px;
}

.vf-header-reference .serim-footer .vfr-language-switcher--footer .vfr-language-menu {
  top: auto;
  right: auto;
  bottom: calc(100% + 8px);
  left: 0;
  transform-origin: left bottom;
}

.serim-footer__quick-divider {
  width: 1px;
  height: 18px;
  background: rgb(0 0 0 / 15%);
}

.serim-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  min-width: 0;
}

.serim-footer__group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.serim-footer__group-title {
  color: rgb(0 0 0 / 55%);
  font-family: var(--serim-footer-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 16px;
  text-transform: uppercase;
}

.serim-footer__group-body {
  margin-top: 12px;
}

.serim-footer__group-lists {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.serim-footer__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.serim-footer__list-item {
  display: flex;
  min-width: 0;
}

.serim-footer__menu-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding-block: 8px;
  color: var(--serim-footer-foreground);
  font-size: 14px;
  font-weight: var(--fc-regular-weight, 400);
  line-height: 1;
  opacity: 1;
  transition: opacity var(--serim-footer-duration) var(--serim-footer-ease-out);
}

.serim-footer__base {
  margin-top: 64px;
}

.serim-footer__base-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 24px;
  row-gap: 20px;
  padding-top: 24px;
}

.serim-footer__utility-nav {
  display: flex;
  flex: 1 1 36rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  font-style: normal;
}

.serim-footer__company-row {
  width: 100%;
  min-width: 0;
}

.serim-footer__company-row--address {
  display: block;
}

.serim-footer__company-row--contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 20px;
  row-gap: 8px;
}

.serim-footer__company-label {
  flex: none;
  color: rgb(0 0 0 / 48%);
  font-family: var(--serim-footer-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
}

.serim-footer__company-address {
  min-width: 0;
  color: rgb(0 0 0 / 72%);
  font-size: 13px;
  font-weight: var(--fc-regular-weight, 400);
  line-height: 20px;
  text-wrap: pretty;
}

.serim-footer__company-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  color: rgb(0 0 0 / 62%);
}

.serim-footer__company-value {
  font-size: 12px;
  font-weight: var(--fc-regular-weight, 400);
  line-height: 16px;
  white-space: nowrap;
}

.serim-footer__company-link {
  transition: color var(--serim-footer-duration) var(--serim-footer-ease-out);
}

.serim-footer__company-link:hover {
  color: var(--serim-text-link-focus-strong, #2547d0);
}

.serim-footer__company-link:focus-visible {
  color: var(--serim-text-link-focus-strong, #2547d0);
}

.serim-footer__copyright {
  flex: none;
  margin-left: auto;
  color: rgb(0 0 0 / 40%);
  font-size: 12px;
  line-height: 16px;
}

@media (max-width: 767px) {
  .serim-footer__copyright {
    width: 100%;
    margin-left: 0;
  }
}

@media (hover: hover) {
  .serim-footer__badge-row:has(.serim-footer__badge-link:hover) .serim-footer__badge-link,
  .serim-footer__quick-links:has(.serim-footer__quick-link:hover) .serim-footer__quick-link,
  .serim-footer__nav:has(.serim-footer__menu-link:hover) .serim-footer__menu-link {
    opacity: 0.4;
  }

  .serim-footer__badge-row .serim-footer__badge-link:hover,
  .serim-footer__quick-links .serim-footer__quick-link:hover,
  .serim-footer__nav .serim-footer__menu-link:hover {
    opacity: 1 !important;
  }
}

.serim-footer__badge-row:has(.serim-footer__badge-link:focus-visible) .serim-footer__badge-link,
.serim-footer__quick-links:has(.serim-footer__quick-link:focus-visible) .serim-footer__quick-link,
.serim-footer__nav:has(.serim-footer__menu-link:focus-visible) .serim-footer__menu-link {
  opacity: 0.4;
}

.serim-footer__badge-row .serim-footer__badge-link:focus-visible,
.serim-footer__quick-links .serim-footer__quick-link:focus-visible,
.serim-footer__nav .serim-footer__menu-link:focus-visible {
  opacity: 1 !important;
}

@keyframes serim-footer-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--serim-footer-status-pulse);
  }

  70% {
    box-shadow: 0 0 0 6px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .serim-footer__status-dot {
    animation: none;
  }

  .serim-footer__badge-link,
  .serim-footer__quick-link,
  .serim-footer__menu-link,
  .serim-footer__company-link,
  .serim-footer__tooltip {
    transition-duration: 0.01ms;
  }
}

@media (min-width: 768px) {
  .serim-footer__inner {
    padding-inline: 2rem;
  }
}

@media (min-width: 810px) {
  .serim-footer__inner {
    padding-top: 80px;
  }

  .serim-footer__base {
    margin-top: 80px;
  }
}

@media (min-width: 992px) {
  .serim-footer__inner {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1100px) {
  .serim-footer__main {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .serim-footer__brand {
    grid-column: span 3 / span 3;
  }

  .serim-footer__nav {
    grid-column: span 9 / span 9;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0;
  }

  .serim-footer__group--wide {
    grid-column: span 2 / span 2;
  }

  .serim-footer__group-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

