/* Footer layout */

.footer_info {
  background-color: #0f0f0f;
  padding: clamp(2rem, 5vh, 4rem) 0;
  color: #aaa;
}

.footer_section {
  max-width: auto; margin: 0rem auto; background: #0f0f0f; border-radius: 0rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.0); padding: 0rem 2.75rem; overflow: visible;
}

.footer_info .policy_txt {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 2rem;
}

.footer_info .policy_txt ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
}

.footer_info .policy_txt ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: color 0.3s ease;
}

.footer_info .policy_txt ul li a:hover {
  color: #fff;
}

.footer_info .policy_txt ul li a.white {
  color: #fff;
}

.footer_info .footer_txt {
  margin-bottom: 2rem;
}

.footer_info .footer_txt .left p {
  display: inline-block;
  margin-right: clamp(1rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer_info .footer_txt .left p.white {
  color: #fff;
  font-weight: 600;
}

.footer_info .footer_txt .left p:last-child {
  display: block;
  margin-top: 1rem;
  margin-right: 0;
}

.footer_info .footer_copyright {
  color: #aaa;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer 처리 - fullpage 밖에 위치 */
.footer-section {
    width: 100vw;
    max-width: 100vw;
    background: #0a0a0a;
    color: #fff;
    padding: 3rem 0 2rem;
    position: relative;
    overflow-x: hidden;
    margin: 0;
}

/* ===== 개인정보처리방침 이메일무단수집거부 모달 관련 ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  transition: opacity 0.3s;
}
.modal.active {
  display: flex;
}
.modal-overlay {
  position: absolute; left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
}
.modal-content {
  position: relative;
  background: #fff;
  color: #333;
  border-radius: 1rem;
  max-width: 32rem;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.3);
  z-index: 1;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 2rem; color: #666;
  cursor: pointer; width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: #f5f5f5; color: #333; }
@media (max-width: 600px) {
  .modal-content { padding: 1rem 0.5rem; }
}
/* ===== 개인정보처리방침 이메일무단수집거부 모달 관련 ==== */


/* 모바일 (768px 이하) */
@media (max-width: 768px) {
  .main-visual {
    margin-top: 4rem;
    padding: 2rem 1rem;
  }
    .footer_info .policy_txt ul {
    flex-direction: column;
    gap: 1rem;
  }

  .footer_info .footer_txt .left p {
    display: block;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .footer_info .policy_txt ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: clamp(1.063rem, 2vw, 1.125rem);
  transition: color 0.3s ease;
}
}

/* ===== 2025.09.15 이후 코드 추가 ===== */
/* Footer 스타일 추가 */
.footer-section {
    /* 풀페이지 높이 제거하고 내용에 맞는 높이로 조정 */
    min-height: auto; /* 기존 100vh에서 auto로 변경 */
    height: auto; /* 자동 높이 */
    
    background: #0f0f0f; /* footer.css와 동일한 배경색 */
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 6vh, 5rem) 0; /* 적절한 패딩으로 조정 */
    scroll-snap-align: start;
    
    /* 사이드 마진 문제 해결 */
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    box-sizing: border-box;
}

/* Footer 내부 컨테이너 */
.footer-section .footer_info {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background: transparent; /* 투명 배경 */
}

.footer-section .max-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer 스타일 */
.footer-section .policy_txt {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 2rem;
}

.footer-section .policy_txt ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin-bottom: 0rem;
    justify-content: left;
    flex-wrap: wrap;
}

.footer-section .policy_txt a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section .policy_txt a:hover {
    color: #76d4ff;
}

.footer-section .footer_txt .white {
    color: #76d4ff;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section .footer_txt p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-section .footer_copyright {
    text-align: center;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 0rem;
}

/* body 스크롤 허용 */
body {
    overflow-y: auto;
}

/* fullpage 컨테이너 조정 */
#fullpage {
    position: relative;
    z-index: 1;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .footer-section {
        padding: clamp(2rem, 4vh, 3rem) 0;
    }
    
    .footer-section .policy_txt ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-section .footer_txt .left p {
        text-align: center;
        line-height: 1.5;
    }

    .footer-section .footer_info {
        padding: 0 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 2rem 0;
    }
    
    .footer-section .footer_info {
        padding: 0 1rem;
        margin-top: 2rem;
    }
}

