/* ===== 맹모즈 — DESIGN SYSTEM ===== */
:root {
  --bg-dark: #0A0A0A;
  --bg-dark-2: #111118;
  --bg-white: #FFFFFF;
  --bg-cream: #F3EFE7;
  --bg-soft: #F7F6F3;

  --sky-a: #E4D9F7;   /* dreamy purple-lavender */
  --sky-b: #F1E5FF;
  --sky-c: #C7B8E8;
  --sky-d: #9B87D6;

  --purple: #7C3AED;
  --purple-2: #A855F7;
  --purple-soft: #EDE9FE;
  --purple-deep: #5B21B6;
  --blue: #3B82F6;

  --ink: #0F1115;
  --ink-2: #191F28;
  --slate: #8B95A1;
  --muted: #C4CDD5;
  --border: #E8EBED;

  --success: #00C471;
  --warn: #F59E0B;
  --danger: #F04452;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --serif: "Instrument Serif", "Apple SD Gothic Neo", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
/* Global em reset — beats page-level rules without !important if they only set color/weight,
   and the !important guarantees no italic Korean ever sneaks through. */
em { font-style: normal !important; font-family: inherit !important; }
em, .serif {
  font-style: normal; font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.025em;
}

/* ===== SHARED NAV ===== */
.corp-nav {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 18px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  box-shadow: 0 10px 40px -10px rgba(91,33,182,0.15);
  /* 컨텐츠 너비에 맞게 자연스럽게 늘어나되 화면 밖으로 절대 넘치지 않음 */
  max-width: calc(100vw - 32px);
  width: max-content;
}
.corp-logo {
  display: flex; align-items: center; gap: 8px;
  padding-right: 12px;
  border-right: 1px solid rgba(0,0,0,0.06);
  margin-right: 2px;
  white-space: nowrap; flex-shrink: 0;
}
.corp-logo-mark {
  width: 32px; height: 32px;
  object-fit: contain; flex-shrink: 0;
}
.corp-wordmark {
  height: 54px; width: auto;
  object-fit: contain; flex-shrink: 0;
  display: block;
}
.corp-nav-links {
  display: flex; gap: 0; align-items: center;
  flex-shrink: 1;
  min-width: 0;
}
.corp-nav-links a {
  padding: 7px 9px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--slate);
  transition: background 0.2s, color 0.2s;
  font-size: 13.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.corp-nav-cta { flex-shrink: 0; }
.nav-primary, .nav-login { white-space: nowrap; flex-shrink: 0; }
.corp-nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.corp-nav-links a.active {
  background: #fff; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.corp-nav-cta {
  display: flex; gap: 4px; align-items: center; margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.nav-login {
  padding: 7px 11px; font-weight: 600; font-size: 13.5px;
  color: var(--ink-2);
}
.nav-primary {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 15px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  border-radius: 999px;
  font-weight: 700; font-size: 13.5px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(124,58,237,0.35);
}
.nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124,58,237,0.45);
}
.nav-primary svg { width: 13px; height: 13px; }

/* 좁은 뷰포트 / 확대 시 추가 축소 */
@media (max-width: 1100px) {
  .corp-nav { padding: 7px 10px 7px 14px; gap: 4px; }
  .corp-wordmark { height: 46px; }
  .corp-logo { padding-right: 10px; }
  .corp-nav-links a { padding: 6px 7px; font-size: 12.5px; }
  .nav-login { padding: 6px 9px; font-size: 12.5px; }
  .nav-primary { padding: 8px 12px; font-size: 12.5px; }
  .corp-nav-cta { margin-left: 4px; padding-left: 6px; gap: 3px; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(124,58,237,0.55);
}
.btn-secondary {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: rgba(124,58,237,0.3);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  transform: translateY(-2px);
  background: #000;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }

/* ===== SHARED FOOTER ===== */
.corp-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding: 80px 32px 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.corp-footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.corp-footer .corp-logo {
  color: #fff; border-right: none; padding-right: 0;
}
.corp-footer h6 {
  color: #fff; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 20px;
  opacity: 0.6;
}
.corp-footer ul li {
  margin-bottom: 10px; font-size: 14px;
}
.corp-footer ul li a { transition: color 0.2s; }
.corp-footer ul li a:hover { color: #fff; }
.corp-footer .brand-copy {
  font-size: 14px; line-height: 1.65;
  margin-top: 16px;
  max-width: 340px;
}
.corp-footer-biz {
  max-width: 1240px; margin: 0 auto;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.biz-info-grid {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  font-size: 11.5px; color: rgba(255,255,255,0.35);
  font-family: var(--mono);
}
.biz-info-grid div { display: flex; align-items: baseline; gap: 6px; }
.biz-info-grid dt { color: rgba(255,255,255,0.22); white-space: nowrap; flex-shrink: 0; }
.biz-info-grid dd { color: rgba(255,255,255,0.45); }
.biz-address { width: 100%; }
.corp-footer-legal {
  max-width: 1240px; margin: 16px auto 0;
  display: flex; justify-content: space-between;
  font-size: 12px;
  font-family: var(--mono);
  opacity: 0.55;
  letter-spacing: 0.05em;
}

/* ===== EYEBROW BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--purple-deep);
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}
.badge svg { width: 14px; height: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--slate);
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ===== SECTION SHELL ===== */
section { position: relative; padding: 120px 32px; }
.container { max-width: 1240px; margin: 0 auto; position: relative; }

/* ===== LEGAL / POLICY PAGES (약관·정책 페이지 공통) ===== */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 110px 24px 60px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.75;
}
.legal-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #1f2937;
}
.legal-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.7;
}
.legal-meta div + div { margin-top: 2px; }
.legal-toc {
  background: rgba(124,58,237,0.04);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.legal-toc h4 {
  font-size: 12px;
  font-weight: 800;
  color: #7c3aed;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.legal-toc ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legal-toc ul li { font-size: 13px; }
.legal-toc ul li a {
  color: #5b21b6;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border 0.15s;
}
.legal-toc ul li a:hover { border-bottom-color: #7c3aed; }
.legal-chapter {
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #7c3aed;
}
/* 약관용 section — 전역 section padding(120px 32px) 무효화 */
.legal-section {
  padding: 0;
  margin-bottom: 18px;
  scroll-margin-top: 100px;
}
.legal-section h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.legal-section p,
.legal-section li {
  font-size: 14px;
  color: #374151;
  line-height: 1.75;
  word-break: keep-all;
}
.legal-section p { margin-bottom: 6px; }
.legal-section ul,
.legal-section ol {
  padding-left: 4px;
  margin-bottom: 8px;
  margin-top: 4px;
}
.legal-section ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 3px;
  list-style: none;
}
/* 중첩 리스트 (조 안의 각 호) */
.legal-section ul li ul {
  margin-top: 4px;
  margin-bottom: 6px;
}
.legal-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #7c3aed;
  font-weight: 700;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 13px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.legal-table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1.5px solid #e5e7eb;
  font-size: 12.5px;
}
.legal-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: top;
  line-height: 1.65;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr.legal-table-header td {
  background: #fef2f2;
  color: #991b1b;
  font-weight: 800;
  font-size: 12.5px;
}
.legal-callout {
  background: rgba(239,68,68,0.06);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.65;
}
.legal-callout-info {
  background: rgba(59,130,246,0.05);
  border-left-color: #3b82f6;
  color: #1e40af;
}
.legal-foot {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.7;
}
.legal-foot a { color: #7c3aed; text-decoration: underline; }
/* 인쇄 최적화 */
@media print {
  .corp-nav, .corp-footer, .legal-toc { display: none !important; }
  .legal-wrap { padding: 20px; max-width: none; }
  .legal-table { page-break-inside: avoid; }
  .legal-section { page-break-inside: avoid; }
}
@media (max-width: 720px) {
  .legal-wrap { padding: 100px 18px 60px; }
  .legal-table { font-size: 12.5px; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  .corp-nav-links a { padding: 8px 10px; font-size: 13px; }
  .corp-nav-cta .nav-login { padding: 7px 10px; font-size: 13px; }
  .corp-nav-cta .nav-primary { padding: 8px 14px; font-size: 13px; }
}
/* 확대/중간 해상도: 링크 영역 숨기고 햄버거 표시 (125%+ zoom 대응) */
@media (max-width: 1150px) {
  .corp-nav-links { display: none; }
  .nav-login { display: none; }
  .corp-nav-cta { border-left: none; padding-left: 0; margin-left: 0; }
  .hamburger { display: flex !important; } /* 각 페이지 inline style 우선순위 극복 */
}
@media (max-width: 1080px) {
  .corp-nav { padding: 8px 8px 8px 16px; gap: 4px; }
  .corp-logo { font-size: 15px; padding-right: 8px; }
  .corp-logo small { display: none; }
  .corp-footer-inner { grid-template-columns: 1fr 1fr; }
  .corp-footer-legal { flex-direction: column; gap: 8px; text-align: center; }
  .biz-info-grid { gap: 5px 16px; font-size: 11px; }
  section { padding: 80px 20px; }
}
