/* ============================================================
   Voxliber — Others / Legal Pages Unified CSS
   covers: contact, faq, notice, terms, privacy, copyright, youth
   ============================================================ */

/* ── 공통 레이아웃 ── */
.other-page,
.contact-page,
.faq-page,
.policy-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 28px 88px;
}

/* ── 다크 히어로 헤더 ── */
.other-hero {
  background: #111;
  padding: 48px 48px 40px;
  margin-bottom: 0;
}
.other-hero-inner { max-width: 860px; margin: 0 auto; }
.other-hero-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 10px;
}
.other-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem; font-weight: 800; color: #fff;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.other-hero p { font-size: .84rem; color: rgba(255,255,255,.36); }
@media (max-width: 768px) { .other-hero { padding: 32px 20px 28px; } }

/* ── 페이지 헤더 (히어로 없는 경우) ── */
.page-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
  padding-bottom: 20px;
  border-bottom: 2px solid #111;
}
.page-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: #111;
}
.page-header p { font-size: .84rem; color: #888; margin-top: 4px; }

/* ── 버튼 ── */
.btn-write,
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: #111; color: #fff; border: none;
  padding: 10px 20px; font-size: .82rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: opacity .18s;
  font-family: inherit;
}
.btn-write:hover, .btn-primary:hover { opacity: .82; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: #111;
  border: 1.5px solid #111; padding: 9px 18px;
  font-size: .82rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: all .18s;
  font-family: inherit;
}
.btn-ghost:hover { background: #111; color: #fff; }

/* ── 빈 상태 ── */
.empty-state {
  text-align: center; padding: 64px 24px;
  background: #fff; border: 1px solid #e8e8e8;
}
.empty-state-icon { font-size: 2rem; margin-bottom: 14px; }
.empty-state h3 { font-size: .96rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.empty-state p { font-size: .82rem; color: #888; }

/* ══════════════════════════════
   CONTACT 문의 목록
══════════════════════════════ */
.contact-list { display: flex; flex-direction: column; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 6px; border-bottom: 1px solid #e8e8e8;
  text-decoration: none; color: #111; transition: background .12s;
}
.contact-item:hover { background: #fafafa; padding-left: 12px; }
.contact-status {
  padding: 3px 9px; font-size: .62rem; font-weight: 700; flex-shrink: 0;
}
.status-pending  { background: rgba(234,179,8,.1); color: #b45309; }
.status-answered { background: rgba(34,197,94,.1);  color: #16a34a; }
.status-closed   { background: #f5f5f5; color: #888; }
.contact-subject { flex: 1; font-size: .88rem; font-weight: 600; color: #111; }
.contact-author  { font-size: .73rem; color: #999; flex-shrink: 0; }
.contact-date    { font-size: .73rem; color: #bbb; flex-shrink: 0; }

/* ── 문의 상세 ── */
.contact-detail-card {
  background: #fff; border: 1px solid #e8e8e8; padding: 28px 28px;
  margin-bottom: 24px;
}
.contact-detail-title { font-size: 1.05rem; font-weight: 800; color: #111; margin-bottom: 10px; }
.contact-detail-meta { font-size: .76rem; color: #999; margin-bottom: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.contact-detail-body { font-size: .86rem; color: #444; line-height: 1.9; white-space: pre-wrap; }
.contact-answer-card {
  background: #fafafa; border: 1px solid #e8e8e8; border-left: 3px solid #5b4cf5;
  padding: 22px 24px; margin-top: 16px;
}
.contact-answer-label { font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b4cf5; margin-bottom: 10px; }
.contact-answer-body { font-size: .84rem; color: #444; line-height: 1.9; white-space: pre-wrap; }

/* ── 문의 작성 ── */
.contact-write-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label { display: block; font-size: .76rem; font-weight: 700; color: #111; margin-bottom: 6px; letter-spacing: .02em; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e8e8e8;
  font-size: .86rem; font-family: inherit; color: #111;
  background: #fff; outline: none; transition: border-color .15s;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: #111; }
.form-group textarea { min-height: 200px; resize: vertical; line-height: 1.7; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ══════════════════════════════
   FAQ
══════════════════════════════ */
.faq-category-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.cat-btn {
  padding: 6px 14px; border: 1.5px solid #e8e8e8;
  background: none; color: #888; font-size: .76rem; font-weight: 600;
  cursor: pointer; transition: all .14s; font-family: inherit;
}
.cat-btn.active, .cat-btn:hover { border-color: #111; color: #111; background: #fff; }
.cat-btn.active { background: #111; color: #fff; border-color: #111; }

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-question {
  display: flex; align-items: center; gap: 12px; padding: 16px 4px;
  cursor: pointer; user-select: none;
}
.faq-question:hover .faq-q-text { color: #5b4cf5; }
.faq-q-icon {
  font-size: .76rem; font-weight: 800; color: #5b4cf5;
  flex-shrink: 0; width: 22px; height: 22px;
  background: rgba(91,76,245,.08); display: flex; align-items: center;
  justify-content: center;
}
.faq-q-text { flex: 1; font-size: .9rem; font-weight: 600; color: #111; }
.faq-chevron { color: #bbb; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 4px 18px 38px; font-size: .84rem; color: #555;
  line-height: 1.85; display: none;
}
.faq-answer.open { display: block; }

/* ══════════════════════════════
   NOTICE 공지사항
══════════════════════════════ */
.notice-list { display: flex; flex-direction: column; }
.notice-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 6px; border-bottom: 1px solid #e8e8e8;
  cursor: pointer; transition: background .12s;
}
.notice-item:hover { background: #fafafa; padding-left: 10px; }
.notice-pin { color: #5b4cf5; flex-shrink: 0; }
.notice-badge {
  font-size: .62rem; font-weight: 700; padding: 2px 8px;
  background: rgba(91,76,245,.08); color: #5b4cf5; flex-shrink: 0;
}
.notice-main { flex: 1; min-width: 0; }
.notice-title { font-size: .9rem; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-meta  { font-size: .72rem; color: #bbb; margin-top: 2px; }
.notice-body {
  display: none; padding: 14px 6px 20px 18px;
  font-size: .84rem; color: #555; line-height: 1.85;
  border-bottom: 1px solid #e8e8e8; background: #fafafa;
}
.notice-body.open { display: block; }

/* ══════════════════════════════
   POLICY (terms, privacy, copyright, youth)
══════════════════════════════ */
.policy-nav {
  display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 28px;
  border-bottom: 2px solid #e8e8e8;
}
.policy-nav a {
  padding: 10px 18px; font-size: .8rem; font-weight: 600;
  color: #888; text-decoration: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .14s, border-color .14s; white-space: nowrap;
}
.policy-nav a:hover { color: #111; }
.policy-nav a.active { color: #111; border-bottom-color: #111; }

.policy-header { margin-bottom: 28px; }
.policy-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: #111; margin-bottom: 6px;
}
.policy-date { font-size: .76rem; color: #999; }

.policy-body {
  background: #fff; border: 1px solid #e8e8e8; padding: 36px 32px;
}
.policy-body h2 {
  font-size: .96rem; font-weight: 800; color: #111;
  margin: 28px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li {
  font-size: .84rem; color: #444; line-height: 1.9;
}
.policy-body ul { padding-left: 20px; margin: 8px 0; }
.policy-body strong { color: #111; }
.policy-content-raw {
  font-size: .84rem; color: #444; line-height: 1.9;
  white-space: pre-wrap;
}

/* ══════════════════════════════
   Responsive
══════════════════════════════ */
@media (max-width: 640px) {
  .other-page, .contact-page, .faq-page, .policy-page {
    padding: 24px 16px 64px;
  }
  .policy-body { padding: 22px 16px; }
  .contact-author { display: none; }
  .policy-nav a { padding: 8px 12px; font-size: .74rem; }
}
