/* Subpage footer / floating — matches front/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('./font/Pretendard-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('./font/Pretendard-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('./font/Pretendard-Bold.woff2') format('woff2');
}

:root {
  --color-primary: #0075ef;
  --color-dark: #111;
  --color-mid: #444;
  --color-border: #ddd;
  --color-white: #fff;
  --font-pretendard: 'Pretendard', sans-serif;
  --font-play: 'Play', sans-serif;
  --max-width: 1600px;
}

.btn {
  --btn-fill: var(--color-dark);
  --btn-color: var(--color-dark);
  --btn-color-hover: var(--color-white);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 40px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  color: var(--btn-color);
  background: transparent;
  text-decoration: none;
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  color: var(--btn-color-hover);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn--outline,
.btn--outline-dark {
  border: 1px solid var(--color-dark);
  --btn-fill: var(--color-dark);
  --btn-color: var(--color-dark);
  --btn-color-hover: var(--color-white);
  font-family: var(--font-play);
}

.btn--outline:hover,
.btn--outline-dark:hover {
  border-color: var(--color-dark);
}

.btn .xi-long-arrow-right {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.site-footer {
  padding-top: 100px;
  border-top: 1px solid var(--color-dark);
  background: var(--color-white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 50px 60px;
  width: 100%;
  max-width: var(--max-width);
}

.footer-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.footer-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  max-width: 650px;
}

.footer-info__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-info__label {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-dark);
  white-space: nowrap;
}

.footer-info__value {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px 50px;
  width: 100%;
  max-width: var(--max-width);
  border-top: 1px solid var(--color-border);
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-link {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-dark);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.footer-link--bold {
  font-weight: 700;
}

.footer-link:hover {
  opacity: 0.6;
}

.footer-copy {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-dark);
  margin: 0;
}

.floating-btns {
  position: fixed;
  right: 30px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.floating-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: none;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: color 0.35s ease, background-color 0.35s ease;
}

.floating-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--btn-fill, currentColor);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-btn:hover::before {
  transform: scale(1);
}

.floating-btn i {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.floating-btn--inquiry {
  --btn-fill: var(--color-white);
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid transparent;
  box-sizing: border-box;
}

.floating-btn--inquiry:hover {
  color: var(--color-primary);
  background: transparent;
  border-color: var(--color-primary);
}

.floating-btn--top {
  --btn-fill: #222;
  background: var(--color-white);
  color: #222;
}

.floating-btn--top .xi-angle-up {
  color: inherit;
  font-size: 28px;
}

.floating-btn--top:hover {
  color: var(--color-white);
  background: transparent;
}

.floating-btn span {
  font-size: 2rem;
}

@media (max-width: 1200px) {
  .footer-top {
    padding: 50px 40px;
  }

  .footer-bottom {
    padding: 30px 40px 50px;
  }
}

@media (max-width: 1024px) {
  .footer-info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    padding: 40px 24px;
  }

  .footer-info {
    max-width: 100%;
    gap: 14px 20px;
  }

  .footer-info__label,
  .footer-info__value {
    font-size: 14px;
  }

  .footer-bottom {
    padding: 24px 24px 40px;
  }

  .footer-copy {
    font-size: 13px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-link {
    font-size: 14px;
  }

  .floating-btns {
    right: 16px;
    bottom: 30px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 576px) {
  .footer-info {
    flex-direction: column;
    gap: 12px;
  }

  .footer-top {
    padding: 30px 16px;
  }

  .footer-bottom {
    padding: 20px 16px 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

body.terms_modal_open {
  overflow: hidden;
}

.terms_modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.terms_modal.is_open {
  display: flex !important;
}

.terms_modal__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.terms_modal__box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 52.5rem;
  max-height: 80vh;
  background: #fff;
}

.terms_modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.875rem;
  border-bottom: 1px solid #ddd;
}

.terms_modal__title {
  margin: 0;
  font-family: var(--font-pretendard);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.terms_modal__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.terms_modal__body {
  padding: 1.875rem;
  overflow-y: auto;
  font-family: var(--font-pretendard);
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
}

.terms_modal__body img {
  max-width: 100%;
  height: auto;
}

.terms_modal__empty {
  margin: 0;
  color: #888;
}

@media (max-width: 768px) {
  .terms_modal {
    padding: 0.75rem;
  }

  .terms_modal__head,
  .terms_modal__body {
    padding: 1.25rem;
  }

  .terms_modal__title {
    font-size: 1.125rem;
  }
}
