/* heri2go.com 정적 공개 페이지 공통 스타일
   톤앤매너는 약관 페이지(static-intro/src/styles.css .policy-*)와 랜딩 헤더(.intro-header)를 따른다:
   Roboto, 흰 헤더 + 하늘색→파랑 그라디언트 히어로, 본문 #616161 / 제목 #212121 / 강조 #4688ec, 경계선 #e0e0e0.
   마크업은 pages-src/build.py 가 만든다. */
:root {
  --sky: #54bad5;
  --brand: #4688ec;
  --brand-btn: #1562e3;      /* 랜딩 헤더 Sign In */
  --brand-cta: #1f83ff;      /* 랜딩 본문 CTA */
  --ink: #212121;
  --text: #616161;
  --muted: #9e9e9e;
  --line: #e0e0e0;
  --tint: rgba(70, 136, 236, .06);
  --tint-strong: rgba(70, 136, 236, .1);
  --grad: linear-gradient(to right, var(--sky), var(--brand));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand-btn); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 300; padding: 8px 14px; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* 랜딩과 같은 반응형 표시 규칙 (Quasar 호환) */
@media (max-width: 1023px) { .gt-sm { display: none !important; } }
@media (min-width: 1024px) { .lt-md { display: none !important; } }
@media (min-width: 600px) { .lt-sm { display: none !important; } }
@media (max-width: 599px) { .gt-xs { display: none !important; } }

/* ---------- 헤더: 약관 페이지 .policy-header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}
.site-header__inner {
  position: relative;
  max-width: 1286px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 22px; width: auto; display: block; }
.site-header__right { display: flex; align-items: center; gap: 20px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .18s, background-color .18s;
}
.site-nav a:hover { color: var(--ink); background: rgba(0, 0, 0, .04); text-decoration: none; }

/* 랜딩 헤더 버튼 (.intro-header__btn) — 흰 배경이라 Sign Up 은 랜딩 모바일 메뉴의 흰 배경용 테두리를 쓴다 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; }
.intro-header__actions { display: flex; align-items: center; gap: 8px; }
.intro-header__btn {
  min-width: 80px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 20px;
  padding: 8px 20px;
  line-height: 1;
}
.intro-header__btn--signup { color: var(--ink); background: transparent; border: 1px solid rgba(0, 0, 0, .2); }
.intro-header__btn--signup:hover { color: var(--ink); border-color: rgba(0, 0, 0, .4); background: rgba(0, 0, 0, .03); }
.intro-header__btn--login { color: #fff; background: var(--brand-btn); border: 1px solid var(--brand-btn); }
.intro-header__btn--login:hover { color: #fff; background: #1257cc; }

/* 모바일 메뉴: 랜딩 .intro-mobile-menu (JS 없이 details 로 연다) */
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
.intro-header__hamburger { display: flex; padding: 8px; margin-right: -8px; border-radius: 50%; color: var(--ink); }
.intro-header__hamburger svg { width: 24px; height: 24px; fill: currentColor; }
.intro-mobile-menu {
  position: absolute;
  top: 100%;
  right: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  overflow: hidden;
  z-index: 200;
}
.intro-mobile-menu__inner { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-width: 180px; }
.site-menu__link { display: block; padding: 6px 12px; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.site-menu__link:hover { text-decoration: none; background: rgba(0, 0, 0, .04); border-radius: 6px; }
.intro-mobile-menu__btn {
  display: block;
  font-size: 13px;
  font-weight: 400;
  border-radius: 20px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  min-width: 80px;
}
.intro-mobile-menu__btn:hover { text-decoration: none; }
.intro-mobile-menu__btn--signup { color: var(--ink); border: 1px solid rgba(0, 0, 0, .2); }
.intro-mobile-menu__btn--login { color: #fff; background: var(--brand-btn); border: 1px solid #fff; }

/* ---------- 히어로: 약관 페이지 .policy-hero ---------- */
.hero { background: var(--grad); color: #fff; padding: 60px 0 52px; }
/* 헤더 로고와 같은 선에서 시작하도록 헤더와 같은 폭·여백 */
.hero__inner { max-width: 1286px; margin: 0 auto; padding: 0 24px; }
.hero__crumb { margin: 0 0 10px; font-size: 13px; font-weight: 500; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 6px; color: rgba(255, 255, 255, .85); }
.hero__crumb a { color: #fff; }
.hero__crumb span { opacity: .7; }
.hero__title { margin: 0; font-size: 38px; font-weight: 700; line-height: 1.2; max-width: 22em; }
.hero__lead { margin: 12px 0 0; max-width: 46em; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.hero__meta { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__meta span {
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---------- 본문 배치: 약관 페이지 .policy-layout / .policy-nav / .policy-main ---------- */
.page-layout { max-width: 1286px; margin: 0 auto; padding: 0 24px; display: flex; }
.page-main { flex: 1; min-width: 0; padding: 48px 48px 80px; }
.page-layout:not(.page-layout--toc) .page-main { padding-left: 0; padding-right: 0; }
.prose { max-width: 800px; }
.page-layout--wide .prose { max-width: none; }
.page-layout--wide .prose > p { max-width: 800px; }

.toc { width: 236px; flex-shrink: 0; padding: 36px 0; border-right: 1px solid var(--line); }
.toc__title {
  margin: 0;
  padding: 0 24px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { list-style: none; margin: 0; padding: 0; position: sticky; top: 72px; }
.toc a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: color .18s, background-color .18s, border-color .18s;
}
.toc a:hover { color: var(--brand); background: rgba(70, 136, 236, .04); border-left-color: var(--brand); text-decoration: none; }

/* ---------- 본문: 약관 페이지 .policy-main__content ---------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.prose h3 { margin: 28px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 8px 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }

/* 순서 목록은 실제 단계 — 약관 버전 배지와 같은 연한 파랑 번호 */
.prose ol { list-style: none; counter-reset: step; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 36px; margin-bottom: 10px; }
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  background: var(--tint-strong);
}

/* 표 */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.table-wrap th, .table-wrap td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { background: #fafafa; color: var(--ink); font-weight: 600; font-size: 13px; }
.table-wrap tbody th, .table-wrap table > tr > th { width: 30%; }

/* 안내 박스 */
.note {
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--tint);
  border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0;
}
.note p:last-child { margin-bottom: 0; }

/* 체크리스트 */
.prose ul.checklist { list-style: none; margin: 8px 0 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }
.prose ul.checklist > li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.prose ul.checklist > li:last-child { margin-bottom: 0; }
.prose ul.checklist > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tint-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.2 7' fill='none' stroke='%234688ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* 글 끝 안내: 히어로와 같은 그라디언트 띠 + 랜딩 히어로 CTA(#77e2ff 알약) */
.cta { margin: 48px 0 0; padding: 28px; border-radius: 12px; background: var(--grad); color: #fff; text-align: center; }
.prose .cta__title { margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 1.35; color: #fff; }
.prose .cta__text { margin: 0 auto 18px; max-width: 34em; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.prose .cta__actions { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }
.cta__btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 32px;
  border-radius: 50px;
  background: #77e2ff;
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .12);
  transition: background-color .2s ease;
}
.cta__btn:hover { background: #8fe8ff; color: #3a3a3a; text-decoration: none; }
.prose .cta__link { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* 주제 태그: 약관 버전 배지 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--tint-strong);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
}

/* ---------- 한국 기공소 강조 (K_BAND, about·가이드 목록) ---------- */
.k-band { margin: 32px 0; padding: 20px 24px; background: var(--tint); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; }
.prose .k-band__title { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--ink); }
.prose .k-band__text { margin: 0 0 12px; }
.prose .k-band__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.prose .k-band__points li { position: relative; margin: 0; padding-left: 24px; font-size: 14px; font-weight: 500; color: var(--ink); }
.prose .k-band__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tint-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.2 7' fill='none' stroke='%234688ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- 이어서 읽기 ---------- */
.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose .related h2 { margin: 0 0 8px; font-size: 18px; }
.prose .related__list { list-style: none; padding: 0; margin: 0; }
.related__list li { margin: 0; border-bottom: 1px solid var(--line); }
.related__list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--ink); }
.related__list a:hover { text-decoration: none; }
.related__list a:hover .related__title { color: var(--brand); }
.related__list .tag { flex: none; min-width: 112px; justify-content: center; }
.related__title { font-size: 15px; font-weight: 500; line-height: 1.5; }

/* ---------- 가이드 목록 ---------- */
.guide-feature, .guide-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.guide-feature:hover, .guide-card:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 1px 6px rgba(0, 0, 0, .06); }
.guide-feature { margin: 32px 0 16px; padding: 24px 28px; border-top: 3px solid var(--brand); }
.guide-card { height: 100%; padding: 20px 22px; }
.guide-feature__top, .guide-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-feature__time, .guide-card__time { font-size: 13px; color: var(--muted); }
.prose .guide-feature__title { margin: 12px 0 6px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.prose .guide-card__title { margin: 12px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.guide-feature:hover .guide-feature__title, .guide-card:hover .guide-card__title { color: var(--brand); }
.guide-feature__desc, .guide-card__desc { display: block; font-size: 14px; line-height: 1.65; color: var(--text); }
.guide-feature__desc { max-width: 52em; }
.prose .guide-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-grid li { margin: 0; }

/* ---------- 푸터: 랜딩(src/IntroFooter.vue + src/styles.css .intro-footer)에서 그대로 복사 — 랜딩을 고치면 여기도 ---------- */
.intro-footer {
  position: relative;
  background: #333333;
  color: #ffffff;
  padding: 70px 24px 40px 24px;
}
@media (max-width: 600px) {
  .intro-footer { padding: 80px 30px; }
}
.intro-footer__inner {
  max-width: 1286px;
  margin: 0 auto;
  padding: 0;
}
.intro-footer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1286px;
  margin: 0 auto;
  padding: 0 100px 10px;
}
@media (max-width: 600px) {
  .intro-footer__header { padding: 0 0 16px; }
}
.intro-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 2fr auto;
  gap: 40px;
  align-items: start;
  padding: 0 100px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 1286px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .intro-footer__top {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 0 0 20px;
  }
}
.intro-footer__logo { margin-bottom: 12px; }
.intro-footer__logo-img {
  height: 22px;
  filter: brightness(0) invert(1);
}
.intro-footer__brand-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}
.intro-footer__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.intro-footer__info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.intro-footer__highlight { color: #ffffff; }
.intro-footer__address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}
.intro-footer__address p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.intro-footer__address .material-icons {
  font-size: 14px;
  vertical-align: middle;
  margin-right: 2px;
}
.intro-footer__social {
  display: flex;
  gap: 8px;
  align-items: center;
}
.intro-footer__social--mobile { margin-top: 60px; }
.intro-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.intro-footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.intro-footer__social-link--facebook {
  background-color: #ffffff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  align-items: flex-end;
  overflow: hidden;
}
.intro-footer__social-link--facebook img {
  width: 26px !important;
  height: 26px !important;
  filter: brightness(0) !important;
  opacity: 0.8;
  transform: translateY(3px);
}
.intro-footer__social-link--facebook:hover {
  background-color: rgba(255, 255, 255, 0.85);
}
.intro-footer__social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.intro-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 100px 0;
  max-width: 1286px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 600px) {
  .intro-footer__bottom {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    padding: 16px 0 0;
    gap: 22px;
  }
}
.intro-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.intro-footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.intro-footer__links a:hover { color: #ffffff; }
.intro-footer__copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.intro-footer__highlight a, a.intro-footer__highlight { text-decoration: none; }
a.intro-footer__highlight:hover { text-decoration: underline; }
/* 랜딩 body 기본값(line-height 1.5, 링크 색 상속, img block)을 푸터 안에서만 재현 */
.intro-footer { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:where(.intro-footer) a { color: inherit; text-decoration: none; }
:where(.intro-footer) img { max-width: 100%; height: auto; display: block; }
.intro-footer__icon { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; margin-right: 2px; }

/* ---------- 반응형: 약관 페이지와 같은 1023px 경계 ---------- */
@media (max-width: 1023px) {
  .site-header__inner { padding: 0 16px; height: 48px; }
  .site-header__logo img { height: 20px; }
  html { scroll-padding-top: 104px; }
  .hero { padding: 44px 0 36px; }
  .hero__inner { padding: 0 16px; }
  .hero__title { font-size: 26px; }
  .hero__lead { font-size: 14px; }
  .page-layout { flex-direction: column; padding: 0; }
  .page-main, .page-layout:not(.page-layout--toc) .page-main { padding: 28px 16px 60px; }
  body { font-size: 14px; line-height: 1.75; }
  /* 목차 → 약관 페이지 모바일 탭처럼 가로 스크롤 */
  .toc { width: 100%; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: 48px; z-index: 50; background: #fff; }
  .toc__title { display: none; }
  .toc ol { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc li { flex-shrink: 0; }
  .toc a { padding: 12px 16px; font-size: 13px; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .toc a:hover { background: transparent; border-bottom-color: var(--brand); }
  .prose h2 { font-size: 18px; margin-top: 32px; }
}
@media (max-width: 640px) {
  .prose .guide-grid { grid-template-columns: 1fr; }
  .guide-feature { padding: 20px; }
  .prose .guide-feature__title { font-size: 19px; }
  .related__list a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .related__list .tag { min-width: 0; }
  .table-wrap tbody th, .table-wrap table > tr > th { width: auto; }
  .cta { padding: 24px 18px; }
}
