/*
 * 정적 HTML 페이지(이용약관·개인정보 처리방침 등)용 공통 헤더·푸터.
 * 메인 페이지의 components/SiteHeader.tsx · SiteFooter.tsx 와 같은 모양을 순수 CSS로 옮긴 것.
 * 각 페이지의 기존 스타일(header, nav, footer 태그 선택자 등)과 섞이지 않도록
 * 모든 클래스에 sc- 접두사를 붙이고, 태그도 div 로만 구성함. 단위는 px 고정.
 */

.sc-header, .sc-header *, .sc-drawer, .sc-drawer *, .sc-footer, .sc-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: normal;
  word-break: keep-all;
}
.sc-header a, .sc-drawer a, .sc-footer a { text-decoration: none; }
.sc-header img, .sc-footer img { display: block; max-width: none; }
.sc-ext { flex-shrink: 0; color: #5a8f3c; }

/* ── 헤더 ── */
.sc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.sc-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px;
}
.sc-logo { display: flex; align-items: center; }
.sc-logo img { height: 44px; width: auto; }

.sc-nav { display: none; align-items: center; gap: 36px; }
.sc-nav a {
  display: flex; align-items: center; gap: 2px;
  font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap;
  color: #474747; transition: color 0.2s;
}
.sc-nav a:hover { color: #5a8f3c; }
.sc-nav .sc-ext { margin-top: -8px; }

.sc-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 999px; background: transparent; color: #111111; cursor: pointer;
}
.sc-menu-btn:hover { background: rgba(0, 0, 0, 0.05); }
.sc-menu-btn .sc-icon-close { display: none; }
.sc-menu-btn[aria-expanded="true"] .sc-icon-open { display: none; }
.sc-menu-btn[aria-expanded="true"] .sc-icon-close { display: block; }

/* 모바일·태블릿 풀스크린 메뉴 (헤더의 backdrop-filter 영향을 받지 않도록 헤더 밖에 둠) */
.sc-drawer {
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 300;
  overflow-y: auto; background: #ffffff;
}
.sc-drawer[hidden] { display: none; }
.sc-drawer-inner { display: flex; flex-direction: column; max-width: 1140px; margin: 0 auto; padding: 8px 20px 40px; }
.sc-drawer-link {
  display: flex; align-items: center; gap: 4px;
  padding: 20px 0; border-bottom: 1px solid #EAEAEA;
  font-size: 18px; font-weight: 600; color: #111111; transition: color 0.2s;
}
.sc-drawer-link:hover { color: #5a8f3c; }
.sc-drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 52px; margin-top: 32px; border-radius: 12px;
  background: #5a8f3c; color: #ffffff !important; font-size: 16px; font-weight: 600; transition: background 0.2s;
}
.sc-drawer-cta:hover { background: #3a6628; }
.sc-drawer-note { margin-top: 12px; text-align: center; font-size: 13px; color: #888888; }

@media (min-width: 768px) {
  .sc-header-inner, .sc-drawer-inner { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1024px) {
  .sc-nav { display: flex; }
  .sc-menu-btn, .sc-drawer { display: none !important; }
}

/* ── 푸터 ── */
.sc-footer { width: 100%; padding: 40px 0; background: #FAFAFA; border-top: 1px solid #EAEAEA; }
.sc-footer-inner { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.sc-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sc-footer-brand { display: flex; align-items: center; gap: 16px; }
.sc-footer-brand img { height: 56px; width: auto; flex-shrink: 0; }
.sc-footer-intro { font-size: 14px; line-height: 1.6; color: #777777; }
.sc-insta {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border: 1px solid #EAEAEA; border-radius: 999px; background: #ffffff;
  transition: border-color 0.2s;
}
.sc-insta:hover { border-color: #5a8f3c; }
.sc-insta img { width: 18px; height: 18px; }

.sc-footer-links { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.sc-link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sc-link-row a {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 14px; line-height: 1.5; white-space: nowrap; color: #474747; transition: color 0.2s;
}
.sc-link-row a:hover { color: #5a8f3c; }
.sc-link-row a.sc-strong { font-weight: 600; color: #111111; }
.sc-link-row .sc-ext { margin-top: -6px; }

.sc-footer-info {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid #EAEAEA;
  font-size: 13px; line-height: 1.7; color: #777777;
}
.sc-footer-info .sc-name { font-weight: 600; color: #474747; }
.sc-footer-info .sc-area { margin-top: 4px; }
.sc-footer-info a { color: inherit; text-underline-offset: 2px; }
.sc-footer-info a:hover { color: #5a8f3c; text-decoration: underline; }
.sc-footer-info .sc-copy { margin-top: 16px; color: #888888; }

@media (min-width: 768px) {
  .sc-footer { padding: 48px 0; }
  .sc-footer-inner { padding: 0 32px; }
  .sc-footer-brand img { height: 64px; }
  .sc-footer-links { flex-direction: row; align-items: center; justify-content: space-between; }
}
