/* info.css — info 페이지 전용 스타일 (New_2 시안 톤, 2026-05-12)
 * 메인 사이트 토큰을 그대로 사용 (paper / ink / gold + Pretendard Variable / JetBrains Mono)
 * Renewal 시안의 info 페이지와 유사 구조지만 색·여백·라벨 패턴은 New_2 시안에 맞게 미세 조정.
 */

:root {
  /* 메인 sites.css와 동일 토큰 (info 페이지는 단일 진입점이라 자체 :root 유지) */
  --paper: #FAF7F0;
  --paper-2: #F2EEE3;
  --paper-3: #E9E3D2;
  --ink:    #0A0A0A;
  --ink-dim: rgba(10, 10, 10, 0.68);
  --gold:   #C49A6C;
  --gold-deep: #9B7E4F;
  --line-light: rgba(10, 10, 10, 0.10);
  --line:        rgba(10, 10, 10, 0.16);
  --yellow: #F7CC23;
  --font-base: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Pretendard Variable", "Pretendard", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-base);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex; flex-direction: column;
  line-height: 1.6;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }

/* HEADER — 메인 nav와 동일 톤 (paper 불투명 + ink 텍스트 + 하단 라인) */
.info-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line-light);
  padding: 18px 40px;
  display: flex; align-items: center; gap: 14px;
}
.info-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: -0.04em;
}
/* Y 마크 — 메인 nav의 brand-mark-img와 동일 mask 패턴, 검정 ink */
.info-brand-mark {
  display: inline-block;
  width: 32px; height: 32px;
  background-color: var(--ink);
  -webkit-mask: url('assets/y-mark-trans.webp') center / contain no-repeat;
  mask: url('assets/y-mark-trans.webp') center / contain no-repeat;
  flex-shrink: 0;
}
.info-brand-name {
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.info-brand-name small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-left: 6px;
}
.info-back {
  margin-left: auto;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 200ms ease, transform 200ms ease;
}
.info-back:hover { background: var(--gold-deep); transform: translateY(-1px); }

/* LAYOUT */
.info-layout {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* SIDEBAR */
.info-sidebar {
  width: 260px;
  min-width: 260px;
  background: transparent;
  border-right: 1px solid var(--line-light);
  padding: 36px 0;
  min-height: calc(100vh - 73px);
}
.info-sidebar h3 {
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 28px;
  margin: 24px 0 10px;
  font-weight: 600;
}
.info-sidebar h3:first-child { margin-top: 0; }
.info-tab {
  display: block;
  padding: 11px 28px;
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms ease, background 200ms ease, font-weight 200ms ease;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.info-tab:hover {
  color: var(--gold-deep);
  background: rgba(196, 154, 108, 0.04);
}
.info-tab.active {
  color: var(--gold-deep);
  background: rgba(196, 154, 108, 0.08);
  font-weight: 700;
}

/* CONTENT */
.info-content {
  flex: 1;
  padding: 48px 56px;
  min-height: calc(100vh - 73px);
  background: var(--paper);
}
.info-card {
  background: #fff;
  padding: 48px 56px;
  max-width: 920px;
  border-radius: 14px;
  box-shadow:
    0 4px 24px rgba(10, 10, 10, 0.05),
    0 1px 2px rgba(10, 10, 10, 0.04);
}
.info-card h2 {
  font-family: var(--font-base);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--ink);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
}
.info-card .kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.info-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* BODY 텍스트 — 약관·정책 본문 */
.info-body {
  font-family: var(--font-base);
  line-height: 1.85;
  color: var(--ink);
  font-size: 15px;
}
.info-body h3 {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.info-body h4 {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 600;
  margin: 1.2em 0 0.4em;
  color: var(--ink);
}
.info-body p { margin-bottom: 0.9em; color: var(--ink-dim); }
.info-body ul, .info-body ol { padding-left: 1.5em; margin-bottom: 0.8em; }
.info-body li { color: var(--ink-dim); margin-bottom: 0.25em; }
.info-body strong { color: var(--ink); font-weight: 600; }
.info-body em { color: var(--gold-deep); font-style: normal; font-weight: 500; }

/* VERSION INFO 라벨 — 약관 페이지 시행일 표시 */
.info-version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  margin-bottom: 24px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* NOTICE / FAQ 공통 — 토글 형식 */
.info-list { list-style: none; padding: 0; }
.info-list-item {
  border-bottom: 1px solid var(--line-light);
  padding: 20px 0;
}
.info-list-item:last-child { border-bottom: none; }
.info-list-q {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: -0.01em;
}
.info-list-q::before {
  content: 'Q';
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 500;
}
.info-list-q::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  color: var(--ink-dim);
  font-weight: 300;
  transition: transform 200ms ease;
}
.info-list-item.open .info-list-q::after { content: '−'; color: var(--gold); }
.info-list-item.open .info-list-q { color: var(--gold-deep); }
.info-list-a {
  display: none;
  padding: 14px 0 4px 32px;
  line-height: 1.85;
  font-size: 14px;
  color: var(--ink-dim);
  position: relative;
}
.info-list-a::before {
  content: 'A';
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  opacity: 0.6;
  position: absolute;
  left: 0; top: 0;
}
.info-list-item.open .info-list-a { display: block; }

/* 2026-05-19 (F) NOTICE 전용 카드 구조 — Q/A 마커/토글 제거, 항상 펼침.
   기존 .info-list-q 구조의 한 줄 flex 가정 (제목 + 날짜 같은 row) → 제목 2줄+ 시
   고정 뱃지/날짜 위치 깨지던 문제 해결. */
.info-notice-list { list-style: none; padding: 0; margin: 0; }
.info-notice-item {
  border-bottom: 1px solid var(--line-light);
  padding: 24px 0;
}
.info-notice-item:first-child { padding-top: 0; }
.info-notice-item:last-child { border-bottom: none; padding-bottom: 0; }

/* meta row — 고정 뱃지 + 날짜. 항상 한 줄, 좌측 정렬. */
.info-notice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.info-notice-title {
  font-family: var(--font-base);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 10px 0;
  word-break: keep-all;
}
.info-notice-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
  margin: 0;
  word-break: keep-all;
  white-space: pre-line;
}

/* NOTICE 메타 컴포넌트 — 날짜 + 고정 뱃지. margin-left: auto 의존 제거.
   meta row 안에서 gap 으로 자연 배치. */
.info-notice-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.info-notice-pin {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

/* 모바일 — 폰트/패딩 다이어트 */
@media (max-width: 700px) {
  .info-notice-item { padding: 20px 0; }
  .info-notice-title { font-size: 15.5px; line-height: 1.4; }
  .info-notice-body { font-size: 13px; line-height: 1.7; }
}

/* 폼 (문의 / 매니저 채용 / 제휴문의 공용) */
.info-form { display: flex; flex-direction: column; gap: 22px; }
.info-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.info-form input,
.info-form textarea,
.info-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--ink);
  border-radius: 8px;
  transition: border-color 200ms ease;
}
.info-form input:focus,
.info-form textarea:focus,
.info-form select:focus {
  outline: none;
  border-color: var(--gold);
}
.info-form textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.info-form-row-2 { display: flex; gap: 18px; }
.info-form-row-2 > div { flex: 1; }
.info-submit {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 14px 36px;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  align-self: flex-start;
  border-radius: 999px;
  transition: background 200ms ease, transform 200ms ease;
}
.info-submit:hover { background: var(--gold-deep); transform: translateY(-1px); }
.info-submit:disabled { background: var(--ink-dim); cursor: not-allowed; transform: none; }
.info-msg {
  padding: 14px 18px;
  font-size: 14px;
  display: none;
  border-radius: 6px;
}
.info-msg.success { display: block; background: rgba(46, 125, 50, 0.08); color: #2e7d32; border-left: 3px solid #2e7d32; }
.info-msg.error   { display: block; background: rgba(198, 40, 40, 0.08); color: #c62828; border-left: 3px solid #c62828; }

/* 2026-05-20 (N) — Plain text 콘텐츠 표시 (WYSIWYG 제거 후)
   줄바꿈은 \n→<br>로 변환되어 표시. 추가 white-space 처리는 불필요. */
.info-body-plain {
  word-break: keep-all;
  line-height: 1.7;
  white-space: normal;
}

/* 2026-05-20 (M5) — Toast 알림 (잠깐 떴다 사라지는 상단 우측 알림)
   info-form-helper / info-msg 박스 누적 문제 해결을 위한 floating notification. */
.info-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  max-width: 380px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
  background: #2e7d32;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
.info-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.info-toast-success { background: #2e7d32; }
.info-toast-error   { background: #c62828; }
@media (max-width: 600px) {
  .info-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    font-size: 13px;
  }
}

/* CAREERS / PARTNERSHIP — 정보 카드 형식 */
.info-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}
.info-stat {
  padding: 18px 20px;
  background: var(--paper-2);
  border-radius: 10px;
  border: 1px solid var(--line-light);
}
.info-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.info-stat-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* EMPTY STATE */
.info-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-dim);
  font-size: 14px;
}
.info-empty strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 6px; font-size: 16px; }

/* MOBILE */
@media (max-width: 900px) {
  .info-header { padding: 14px 20px; }
  .info-brand-name { font-size: 18px; }
  .info-back { font-size: 11px; padding: 8px 14px; }
  .info-layout { flex-direction: column; max-width: none; }
  .info-sidebar {
    width: 100%; min-width: unset; min-height: unset;
    padding: 0;
    display: flex; gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: 1px solid var(--line-light);
    background: var(--paper);
  }
  .info-sidebar h3 { display: none; }
  .info-tab {
    white-space: nowrap;
    padding: 14px 16px;
    border-bottom: 2px solid transparent;
    font-size: 13px;
  }
  .info-tab.active {
    background: transparent;
    border-bottom-color: var(--gold);
  }
  .info-content { padding: 24px 16px; min-height: unset; }
  .info-card { padding: 28px 22px; }
  .info-card h2 { font-size: 24px; margin-bottom: 18px; }
  .info-form-row-2 { flex-direction: column; gap: 14px; }
  .info-stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .info-content { padding: 20px 12px; }
  .info-card { padding: 22px 16px; }
  .info-card h2 { font-size: 20px; }
  .info-body { font-size: 14px; }
  .info-submit { width: 100%; text-align: center; }
}
