/* =============================================
   싸인온(SignOn) 전자계약 서비스 - subpages css
   ============================================= */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: none; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── CSS Variables ─── */
:root {
  --primary: #a61118;
  --primary-dark: #8b0f14;
  --primary-light: #fdf0f0;
  --accent: #e05a20;
  --accent2: #00C4A7;
  --sub: #F7E6CA;
  --sub-dark: #e8ccaa;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a68;
  --text-light: #8888aa;
  --bg-light: #fdf8f2;
  --bg-gray: #f5f0e8;
  --border: #e8d8c8;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(166,17,24,.08);
  --shadow-md: 0 8px 32px rgba(166,17,24,.14);
  --shadow-lg: 0 20px 60px rgba(166,17,24,.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
  --header-h: 76px;

  /* ─── Legal page extended variables ─── */
  --primary-bg: rgba(166,17,24,0.04);
  --primary-bg-hover: rgba(166,17,24,0.07);
  --sub-deeper: #d4b48e;
  --bg-white: #ffffff;
  --bg-page: #FAFAF8;
  --bg-section: #F5F3EF;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  --text-on-primary: #ffffff;
  --surface: #ffffff;
  --border-light: #f0ede8;
  --border-primary: rgba(166,17,24,0.15);
  --radius-sm: 8px;
  --radius-xs: 5px;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { color: var(--text-mid); line-height: 1.8; }

/* ─── Layout Utilities ─── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
section#trial { padding: 0; }
.section-sm { padding: 64px 0; }
.section-title { text-align: center; }
.section-title .label {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}
.section-title h2 { margin-bottom: 16px; }
.section-title p { color: var(--text-mid); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: .78rem; font-weight: 600;
}
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-red { background: #ffe8e8; color: var(--accent); }
.badge-green { background: #e0faf6; color: var(--accent2); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary2 {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 0 #6e0c10, 0 6px 16px rgba(166,17,24,.35);
}
.btn-primary2:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 0 #6e0c10, 0 10px 24px rgba(166,17,24,.4); }
.btn-primary2:active { transform: translateY(3px); box-shadow: 0 1px 0 #6e0c10, 0 2px 8px rgba(166,17,24,.3); filter: brightness(.93); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-outline:active { transform: translateY(2px); filter: brightness(.93); }
.btn-white {
  background: #fff; color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--sub); transform: translateY(-2px); }
.btn-white:active { transform: translateY(2px); filter: brightness(.96); }
.btn-white2 {
  background: var(--white); color: var(--primary);
  box-shadow: 0 4px 0 #e7e7e7, 0 6px 16px rgba(0,0,0,.15);
  border: none;
}
.btn-white2:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 0 #e7e7e7, 0 10px 24px rgba(0,0,0,.2); }
.btn-white2:active { transform: translateY(3px); box-shadow: 0 1px 0 #e7e7e7, 0 2px 8px rgba(0,0,0,.15); filter: brightness(.93); }
.btn-sm { padding: 8px 20px; font-size: .875rem; border-radius: 8px; }
.btn-lg { padding: 18px 44px; font-size: 1.1rem; border-radius: 12px; }

/* ─── HEADER ─── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.99);  
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 24px; height: 24px; fill: #fff; }
.logo-text { font-size: 1.35rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.logo-text span { color: var(--accent); }

/* GNB */
.gnb { display: flex; align-items: stretch; height: 100%; flex: 1; justify-content: center; }
.gnb > li { position: relative; display: flex; align-items: center; }
.gnb > li > a {
  padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 4px;
  font-size: .93rem; font-weight: 600; color: var(--text-dark);
  white-space: nowrap; transition: var(--transition);
}
/* 1depth 화살표 아이콘 */
.gnb > li > a .gnb-arrow {
  font-size: .6rem; opacity: .45; transition: var(--transition);
  display: inline-block; margin-top: 1px;
}
.gnb > li:hover > a .gnb-arrow { opacity: 1; transform: rotate(180deg); }
.gnb > li > a:hover, .gnb > li.active > a { color: var(--primary); }
.gnb > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--primary); border-radius: 3px 3px 0 0;
  transition: var(--transition);
}
.gnb > li > a:hover::after, .gnb > li.active > a::after { left: 12px; right: 12px; }

/* ── Dropdown (2depth) ── */
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  padding: 6px 0;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 999;
}
/* 드롭다운 말풍선 꼭지 */
.dropdown::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; background: #fff;
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}
.gnb > li:hover .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* 1depth 영역에서 마우스가 dropdown으로 이동하는 사이 gap 보정 */
.gnb > li::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 4px;
}
.dropdown li {
  border-bottom: 1px solid var(--bg-gray);
}
.dropdown li:last-child { border-bottom: none; }
.dropdown li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: .88rem; color: var(--text-mid);
  transition: var(--transition);
}
.dropdown li a:hover {
  background: var(--primary-light); color: var(--primary); padding-left: 22px;
}
.dropdown li a:hover::before { background: var(--primary); }
.dropdown li a.highlight { color: var(--primary); font-weight: 700; }
.dropdown li a.highlight::before { background: var(--primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login {
  padding: 8px 18px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  color: var(--text-mid); border: 1.5px solid var(--border); background: transparent;
  cursor: pointer; transition: var(--transition);
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-signup {
  padding: 8px 20px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  background: var(--primary); color: #fff; cursor: pointer; transition: var(--transition);
  box-shadow: 0 3px 0 #6e0c10, 0 4px 12px rgba(166,17,24,.3);
}
.btn-signup:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-signup:active { transform: translateY(2px); box-shadow: 0 1px 0 #6e0c10; filter: brightness(.93); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text-dark);
  border-radius: 2px; transition: var(--transition);
}

/* ─── HERO SECTION ─── */
#hero {
  min-height: 65dvh; padding-top: var(--header-h);
  /* background: linear-gradient(135deg, #2d0507 0%, #a61118 50%, #6e0c10 100%); */
  background: url(../images/on-hero2.jpeg) center/cover no-repeat;
  position: relative; overflow: hidden; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .25;
}
.hero-blob-1 {
  width: 600px; height: 600px; background: #f7a0a4;
  top: -200px; right: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px; background: #F7E6CA;
  bottom: -100px; left: -100px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);color: var(--primary);
  padding: 7px 16px; border-radius: 100px; font-size: .85rem; font-weight: 600;
  margin-bottom: 8px; border: 1px solid rgba(247,230,202,.3);
}
.hero-text .label {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.hero-title { color: #121212; margin-bottom: 24px; }
.hero-title .highlight { color: #F7E6CA; }
.hero-desc { color: #121212; font-size: 1.1rem; margin-bottom: 40px; max-width: 480px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat { }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stat .label { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-mockup {
  background: rgba(255,255,255,.1); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 24px;
  padding: 28px; width: 100%; max-width: 460px;
  box-shadow: 0 40px 100px rgba(0,0,0,.3);
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
.mockup-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1){background:#ff5f57}
.mockup-dot:nth-child(2){background:#febc2e}
.mockup-dot:nth-child(3){background:#28c840}
.mockup-title { color: rgba(255,255,255,.5); font-size: .82rem; margin-left: 8px; }
.contract-card {
  background: rgba(255,255,255,.95); border-radius: 16px; padding: 20px; margin-bottom: 14px;
}
.contract-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.contract-card-header .title { font-size: .9rem; font-weight: 700; color: var(--text-dark); }
.status-badge {
  font-size: .72rem; padding: 3px 10px; border-radius: 100px; font-weight: 600;
}
.status-signed { background: #e0faf6; color: var(--accent2); }
.status-waiting { background: #fff3e0; color: #f59e0b; }
.status-draft { background: var(--primary-light); color: var(--primary); }
.contract-info { display: flex; gap: 16px; font-size: .8rem; color: var(--text-light); }
.step-flow { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding: 14px; background: rgba(255,255,255,.05); border-radius: 12px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.step-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.step-icon.done { background: rgba(0,196,167,.3); }
.step-icon.active { background: rgba(166,17,24,.5); box-shadow: 0 0 0 3px rgba(166,17,24,.3); }
.step-icon.todo { background: rgba(255,255,255,.1); }
.step-item .step-label { font-size: .65rem; color: rgba(255,255,255,.6); }
.step-arrow { color: rgba(255,255,255,.3); font-size: .8rem; }

/* ─── FEATURES SECTION ─── */
#features { background: var(--bg-light); }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 28px;
  border: 1px solid var(--border); transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  opacity: 0; transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: var(--primary); }
.feature-card:hover::before { opacity: 1; }
.feature-card .icon-wrap {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; font-size: 1.6rem;
  transition: var(--transition);
}
.feature-card:hover .icon-wrap { background: var(--primary); }
.feature-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.feature-card p { font-size: .9rem; line-height: 1.7; }
.feature-card .tag {
  display: inline-block; margin-top: 16px; font-size: .78rem;
  color: var(--primary); font-weight: 600;
}

/* ─── PROCESS SECTION ─── */
#process { background: #fff; }
.process-flow {
  display: flex; gap: 0; align-items: stretch; position: relative;
}
.process-flow::before {
  content: ''; position: absolute; top: 44px; left: 0; right: 0;
  height: 2px; background: var(--primary-light); z-index: 0;
}
.process-step {
  flex: 1; text-align: center; padding: 0 12px; position: relative; z-index: 1;
}
.process-step .step-num {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--primary-light); border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 20px; transition: var(--transition);
  background: #fff;
}
.process-step:hover .step-num { background: var(--primary); transform: scale(1.1); }
.process-step h4 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: .84rem; color: var(--text-light); }

/* ─── STATS SECTION ─── */
#stats {
  background: linear-gradient(135deg, var(--primary) 0%, #6e0c10 100%);
  padding: 80px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 40px 20px; position: relative; }
.stat-item::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,.15);
}
.stat-item:last-child::after { display: none; }
.stat-item .num { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat-item .num span { font-size: 1.8rem; }
.stat-item .label { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ─── TABS SECTION ─── */
.tabs-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.tab-btn {
  padding: 10px 24px; border-radius: 100px; font-size: .9rem; font-weight: 600;
  border: 2px solid var(--border); background: #fff; color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-content { display: block; animation: fadeIn .3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* ─── PRICING SECTION ─── */
#pricing { background: var(--bg-light) url("../images/on-hero3.jpeg"); background-size: cover; background-position: center; }
.pricing-toggle {
  display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 48px;
}
.pricing-toggle span { font-size: .95rem; color: var(--text-mid); font-weight: 600; }
.pricing-toggle .switch {
  width: 50px; height: 26px; background: var(--primary); border-radius: 100px;
  position: relative; cursor: pointer;
}
.pricing-toggle .switch::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: var(--transition);
}
.pricing-toggle .switch.yearly::after { transform: translateX(24px); }
.pricing-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 28px;
  border: 2px solid var(--border); transition: var(--transition); position: relative;
  display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pricing-card.popular {
  border-color: var(--primary); transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.price-label { font-size: .9rem; color: var(--text-light); margin-bottom: 8px; font-weight: 600; }
.price-val { font-size: 2.4rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.price-val span { font-size: 1rem; font-weight: 500; color: var(--text-light); }
.price-period { font-size: .85rem; color: var(--text-light); margin-bottom: 24px; }
.pricing-features { margin: 20px 0 28px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--bg-gray);
  font-size: .9rem; color: var(--text-mid);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--accent2); font-size: 1rem; flex-shrink: 0; }
.pricing-features li .cross { color: var(--text-light); font-size: 1rem; flex-shrink: 0; }

/* ─── CASE STUDY SECTION ─── */
#cases { background: #fff; }
.case-card {
  background: var(--bg-light); border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--border); transition: var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.case-card .industry {
  font-size: .8rem; color: var(--primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.case-card h4 { font-size: 1rem; margin-bottom: 10px; }
.case-card .result {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-light); border-radius: 8px; padding: 10px 14px; margin-top: 16px;
}
.case-card .result .val { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.case-card .result .desc { font-size: .82rem; color: var(--text-mid); }
.case-card .quote { font-size: .88rem; color: var(--text-mid); font-style: italic; margin-top: 14px; line-height: 1.7; }

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--bg-light); }
.testimonial-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-card .stars { color: #f59e0b; font-size: 1rem; margin-bottom: 14px; }
.testimonial-card .text { font-size: .92rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.author-name { font-size: .9rem; font-weight: 700; }
.author-company { font-size: .8rem; color: var(--text-light); }

/* ─── CTA SECTION ─── */
#cta {
  background: linear-gradient(135deg, #2d0507 0%, var(--primary) 60%, #8b0f14 100%);
  padding: 100px 0; text-align: center; position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle,rgba(110, 0, 5, 1) 0%, rgba(166, 17, 24, 1) 90%);
}
#cta .container { position: relative; z-index: 1; }
#cta h2 { color: #fff; margin-bottom: 16px; }
#cta p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 520px; margin: 0 auto 36px; }
#cta .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
#cta .note { margin-top: 20px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ─── FOOTER ─── */
#footer {
  background: #0d1117; padding: 64px 0 32px; color: rgba(255,255,255,.6);
}
.footer-top { display: grid; grid-template-columns:repeat(6, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { color: #fff; font-size: 1.3rem; }
.footer-brand p { font-size: .88rem; margin-top: 14px; line-height: 1.8; max-width: 240px; }
.footer-col h5 { font-size: .92rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .86rem; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a.highlight { color: #F7E6CA; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 0 0 28px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: gap: 16px; }
.footer-bottom .copy { font-size: .84rem; }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .links a { font-size: .84rem; color: rgba(255,255,255,.4); }
.footer-bottom .links a:hover { color: rgba(255,255,255,.8); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  position: fixed; top: 0; right: 0; width: min(360px, 100%); height: 100vh;
  background: #1a0305; backdrop-filter: blur(20px);
  z-index: 1001; display: flex; flex-direction: column;
  padding: 0 0 24px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
}
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1000; backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav.open { transform: translateX(0); }

/* 상단 헤더 */
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.mobile-nav-head .logo-text { color: #fff; font-size: 1.2rem; font-weight: 800; }
.mobile-nav-head .logo-text span { color: var(--sub); }
.mobile-close {
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.mobile-close:hover { background: rgba(255,255,255,.2); }
/* 스크롤 영역 */
.mobile-nav > ul { flex: 1; overflow-y: auto; padding: 8px 0; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-nav > ul > li > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.9);
  transition: var(--transition);
}
.mobile-nav > ul > li > a:hover { color: var(--sub); }
/* 화살표 */
.mob-arrow {
  font-size: .8rem; color: rgba(255,255,255,.4);
  transition: transform .2s ease;
  display: inline-block;
}
.mobile-nav > ul > li.open > a .mob-arrow { transform: rotate(90deg); color: var(--sub); }
.mobile-nav > ul > li.open > a { color: var(--sub); }
/* 2depth 서브메뉴 */
.mobile-nav .sub-menu {
  padding: 0 0 8px 0;
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.05);
}
.mobile-nav .sub-menu li a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 24px 11px 36px; color: rgba(255,255,255,.6); font-size: .9rem;
  transition: var(--transition);
}
.mobile-nav .sub-menu li a::before {
  content: '—'; font-size: .65rem; color: rgba(255,255,255,.25);
}
.mobile-nav .sub-menu li a:hover { color: var(--sub); }
.mobile-nav .sub-menu li a.highlight { color: var(--sub); font-weight: 600; }
/* 하단 버튼 */
.mobile-nav-btns {
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}
.mobile-nav-btns .btn-login {
  width: 100%; text-align: center; margin-top: 10px;
  padding: 10px 20px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  color: rgba(255,255,255,.7); border: 1.5px solid rgba(255,255,255,.2); background: transparent;
  cursor: pointer; transition: var(--transition); display: block;
}
.mobile-nav-btns .btn-login:hover { border-color: var(--sub); color: var(--sub); }

/* ─── PAGE CONTENT (sub pages) ─── */
.page-content { padding-top: calc(var(--header-h) + 48px); }
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #6e0c10 100%);
  padding: 64px 0; text-align: center; color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 20px;
}
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ─── CARDS / DOCS ─── */
.doc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: var(--transition); cursor: pointer;
}
.doc-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.doc-card .doc-icon { font-size: 1.68rem; margin-bottom: 12px; }
.doc-card .doc-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.doc-card .doc-meta { font-size: .9rem; color: var(--text-light); }

/* ─── SUPPORT ─── */
.support-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; transition: var(--transition);
  display: flex; flex-direction: column; justify-content: space-between;
}
.support-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary); }
.support-card .icon { font-size: 2.4rem; margin-bottom: 16px; }
.support-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.support-card p { font-size: .88rem; color: var(--text-mid); margin-bottom: 20px; }

/* ─── CHAT WIDGET ─── */
.chat-widget {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
}
.chat-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 1.5rem; cursor: pointer; box-shadow: 0 6px 20px rgba(166,17,24,.4);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chat-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.chat-window {
  position: absolute; bottom: 72px; right: 0; width: 320px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  overflow: hidden; display: none;
}
.chat-window.open { display: block; animation: fadeIn .2s ease; }
.chat-header {
  background: var(--primary); color: #fff; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-header h4 { font-size: .95rem; }
.chat-header .close-chat { background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; }
.chat-body { padding: 16px; height: 260px; overflow-y: auto; }
.chat-msg { margin-bottom: 12px; }
.chat-msg.bot .bubble {
  background: var(--bg-light); border-radius: 4px 14px 14px 14px;
  padding: 10px 14px; font-size: .88rem; display: inline-block; max-width: 80%;
}
.chat-msg.user .bubble {
  background: var(--primary); color: #fff;
  border-radius: 14px 4px 14px 14px;
  padding: 10px 14px; font-size: .88rem; display: inline-block; max-width: 80%;
  float: right;
}
.chat-msg.user { overflow: hidden; }
.chat-input { display: flex; border-top: 1px solid var(--border); }
.chat-input input {
  flex: 1; padding: 12px 16px; border: none; outline: none; font-size: .9rem;
}
.chat-input button {
  padding: 0 16px; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 1rem;
}

/* ─── ACCORDION ─── */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.accordion-header {
  padding: 18px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: #fff; transition: var(--transition); font-weight: 600; font-size: .95rem;
}
.accordion-header:hover { background: var(--bg-light); }
.accordion-header.active { background: var(--primary-light); color: var(--primary); }
.accordion-icon { font-size: 1.2rem; transition: var(--transition); }
.accordion-header.active .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 24px 18px; font-size: .9rem; color: var(--text-mid); line-height: 1.8; }
.accordion-body.open { display: block; animation: fadeIn .2s ease; }

/* ─── BACK TO TOP ─── */
.back-top {
  position: fixed; bottom: 96px; right: 28px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-gray); border: 1px solid var(--border); color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none; transition: var(--transition);
  font-size: 1rem;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── NOTICE BAR ─── */
.notice-bar {
  background: var(--primary); color: #fff; text-align: center;
  padding: 10px; font-size: .88rem; position: relative;
}
.notice-bar a { color: #F7E6CA; text-decoration: underline; margin-left: 8px; }
.notice-bar .close-notice {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1rem;
}
/* ─── service ─── */
.process-arch-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
  }
  
  .process-arch-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* 아치형 배경 컨테이너 */
  .arch-bg {
    width: 140px;
    height: 100px;
    border-radius: 70px 70px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    transition: transform 0.3s ease;
  }
  
  .process-arch-step:hover .arch-bg {
    transform: translateY(-5px);
  }
  
  /* 내부 아이콘 원형 테두리 */
  .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: absolute;
    bottom: 20px; /* 아치 중앙에 위치하도록 조정 */
  }
  
  /* 단계별 컬러 팔레트 적용 */
  /* ① 계약서 작성 */
  .step-1-color .arch-bg { background-color: #2D2A6E; }
  .step-1-color .icon-circle { background-color: transparent; border: 2px solid #FFFFFF; color: #FFFFFF; }
  
  /* ② 서명 요청 */
  .step-2-color .arch-bg { background-color: #C4B5FD; }
  .step-2-color .icon-circle { background-color: transparent; border: 2px solid #333333; color: #333333; }
  
  /* ③ 전자서명 */
  .step-3-color .arch-bg { background-color: #C7D2FE; }
  .step-3-color .icon-circle { background-color: transparent; border: 2px solid #333333; color: #333333; }
  
  /* ④ 계약서 보관 */
  .step-4-color .arch-bg { background-color: #F59E0B; }
  .step-4-color .icon-circle { background-color: transparent; border: 2px solid #FFFFFF; color: #FFFFFF; }
  
  /* ⑤ 현황 관리 */
  .step-5-color .arch-bg { background-color: #FCD34D; }
  .step-5-color .icon-circle { background-color: transparent; border: 2px solid #333333; color: #333333; }

  .process-arch-step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #333);
    margin-bottom: 12px;
  }
  
  .process-arch-step p {
    font-size: 0.9rem;
    color: var(--text-mid, #666);
    line-height: 1.5;
    word-break: keep-all;
  }
  

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .gnb > li > a { padding: 0 12px; font-size: .88rem; }
}

/* ── 태블릿 (≤900px) ── */
@media (max-width: 900px) {
  :root { --header-h: 60px; }

  /* Header */
  .gnb, .header-actions .btn-login, .header-actions .btn-signup { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { gap: 16px; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; padding: 60px 0; }
  .hero-cta { justify-content: center; flex-direction: column; align-items: center; gap: 12px; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stats { justify-content: center; gap: 24px; }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 32px; }

  /* Layout Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after { display: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(3), .stat-item:last-child { border-bottom: none; }

  /* Process */
  .process-flow { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .process-flow::before { display: none; }
  .process-step { flex: 0 0 calc(50% - 16px); padding: 0; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Section spacing */
  .section { padding: 72px 0; }
  .section-sm { padding: 48px 0; }
  .section-title { margin-bottom: 40px; }

  /* Page hero */
  .page-hero { padding: 60px 0 44px; }

  /* Tabs */
  .tabs-wrap { gap: 6px; }
  .tab-btn { padding: 8px 16px; font-size: .82rem; }

  /* CTA */
  #cta { padding: 72px 0; }
  #cta .cta-btns { flex-direction: column; align-items: center; gap: 12px; }
  #cta .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Pricing */
  .pricing-card.popular { transform: none; }

      .process-arch-flow {
      justify-content: center;
      gap: 32px;
    }
    .process-arch-step {
      min-width: 45%;
    }
}

/* ── 모바일 (≤640px) ── */
@media (max-width: 640px) {
  :root { --header-h: 56px; }

  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-title { margin-bottom: 32px; }
  .section-title p { font-size: .95rem; }

  /* Typography */
  h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }

  /* Stats grid: 2 col */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 28px 12px; }
  .stat-item .num { font-size: 2.2rem; }

  /* Process: 1 col */
  .process-step { flex: 0 0 100%; }

  /* Buttons */
  .btn-lg { padding: 14px 24px; font-size: .95rem; }
  .btn { padding: 12px 24px; font-size: .9rem; }

  /* Hero */
  .hero-inner { padding: 48px 0; gap: 24px; }
  .hero-badge { font-size: .78rem; }
  .hero-desc { font-size: .95rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-stat .num { font-size: 1.5rem; }

  /* Features */
  .feature-card { padding: 24px 20px; }
  .feature-card .icon-wrap { width: 50px; height: 50px; font-size: 1.3rem; }

  /* Pricing */
  .pricing-card { padding: 28px 20px; }
  .pricing-card.popular { transform: none; }
  .price-val { font-size: 2rem; }
  .pricing-toggle { gap: 10px; }

  /* Case cards */
  .case-card { padding: 24px 18px; }
  .testimonial-card { padding: 24px 18px; }

  /* Page hero */
  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .breadcrumb { font-size: .78rem; gap: 6px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
  #footer { padding: 48px 0 28px; }

  /* Chat widget */
  .chat-window { width: calc(100vw - 32px); right: -8px; }
  .back-top { right: 16px; bottom: 80px; }
  .chat-widget { right: 16px; bottom: 16px; }

  /* Notice bar */
  .notice-bar { font-size: .8rem; padding: 8px 36px 8px 16px; text-align: left; }
  .notice-bar a { display: block; margin-top: 2px; margin-left: 0; }

  /* Mobile nav - 패딩은 컴포넌트 자체에서 관리 */
  .mobile-nav > ul > li > a { font-size: .95rem; padding: 14px 24px; }

  /* Support card */
  .support-card { padding: 24px 18px; }
  .support-card .icon { font-size: 2rem; }

  /* Accordion */
  .accordion-header { padding: 14px 16px; font-size: .9rem; }
  .accordion-body { padding: 0 16px 14px; }

  /* Doc card */
  .doc-card { padding: 18px; }

  /* CTA */
  #cta { padding: 56px 0; }
  #cta h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  #cta p { font-size: .95rem; }
  #cta .cta-btns { gap: 10px; }

  /* Tab buttons */
  .tabs-wrap { gap: 6px; }
  .tab-btn { padding: 7px 14px; font-size: .8rem; }

  .process-arch-step {
  min-width: 100%;
  }
}


/* =============================================
   Legal Page (법적효력 및 보안 가이드)
   ============================================= */

/* ─── Legal Page: Animations ─── */
@keyframes fadeSlideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ─── Legal Page: Nav Bar ─── */
.legal-page body {
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
.nav-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav-logo {
  font-weight: 700; font-size: 20px; letter-spacing: -0.3px;
  color: var(--primary); display: flex; align-items: center; gap: 3px; text-decoration: none;
}
.nav-logo span { color: var(--text-primary); font-weight: 800; }
.nav-breadcrumb { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.nav-breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.nav-breadcrumb a:hover { color: var(--primary); }
.nav-breadcrumb .sep { opacity: 0.35; font-size: 11px; }
.nav-breadcrumb .current { color: var(--primary); font-weight: 500; }

/* ─── Legal Page: Hero ─── */
.legal-page .hero,
.page-wrapper .hero {
  background: linear-gradient(170deg, var(--sub) 0%, #fdf6ec 40%, var(--bg-page) 100%);
  padding: 109px 40px 56px; position: relative; overflow: hidden;
}
.page-wrapper .hero::before {
  content: ''; position: absolute; top: -100px; right: -80px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(166,17,24,0.04) 0%, transparent 70%); pointer-events: none;
}
.page-wrapper .hero .hero-inner { max-width: 1160px; margin: 0 auto; position: relative; display: block; grid-template-columns: none; gap: 0; padding: 0; }
.page-wrapper .hero .hero-badge {
  background: var(--bg-white); border: 1px solid var(--border);
  color: var(--primary); font-size: 12px; font-weight: 500;
  padding: 5px 14px; margin-bottom: 24px;
  opacity: 0; animation: fadeSlideUp 0.6s 0.15s forwards;
}
.page-wrapper .hero .hero-badge .dot { width: 6px; height: 6px; background: var(--primary); }
.page-wrapper .hero h1 {
  font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; line-height: 1.3; letter-spacing: -1px;
  color: var(--text-primary); margin-bottom: 16px;
  opacity: 0; animation: fadeSlideUp 0.65s 0.3s forwards;
}
.page-wrapper .hero h1 .hl { color: var(--primary); }
.page-wrapper .hero .hero-desc {
  font-size: 16px; color: var(--text-secondary); max-width: 580px; line-height: 1.85;
  opacity: 0; animation: fadeSlideUp 0.65s 0.45s forwards;
}

/* ─── Legal Page: Stats Bar ─── */
.stats-bar { max-width: 1160px; margin: -28px auto 0; padding: 0 40px; position: relative; z-index: 10; opacity: 0; animation: fadeSlideUp 0.65s 0.6s forwards; }
.stats-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface);
  border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04); overflow: hidden; border: 1px solid var(--border-light);
}
.stats-bar .stat-item { padding: 26px 28px; text-align: center; transition: background 0.25s; position: relative; }
.stats-bar .stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--border);
}
.stat-number { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 2px; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* ─── Legal Page: Content Area & Side Nav ─── */
.content-area { max-width: 1160px; margin: 0 auto; padding: 56px 40px 80px; display: grid; grid-template-columns: 220px 1fr; gap: 52px; }
.side-nav { position: sticky; top: 92px; align-self: start; }
.side-nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 16px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 3px;
  border-radius: var(--radius-xs); font-size: 13.5px; font-weight: 400; color: var(--text-secondary);
  text-decoration: none; transition: all 0.2s; border-left: 2px solid transparent;
}
.side-nav a:hover { color: var(--text-primary); background: rgba(0,0,0,0.025); }
.side-nav a.active { color: var(--primary); background: var(--primary-bg); border-left-color: var(--primary); font-weight: 600; }
.sn-num {
  font-size: 10px; font-weight: 700; width: 20px; height: 20px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.04); color: var(--text-muted); flex-shrink: 0;
}
.side-nav a.active .sn-num { background: rgba(166,17,24,0.1); color: var(--primary); }

/* ─── Legal Page: Section Blocks ─── */
.section-block { margin-bottom: 52px; opacity: 0; transform: translateY(24px); transition: opacity 0.55s, transform 0.55s; }
.section-block.visible { opacity: 1; transform: translateY(0); }
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.section-icon.red { background: rgba(166,17,24,0.07); border: 1px solid rgba(166,17,24,0.12); }
.section-icon.warm { background: rgba(232,204,170,0.35); border: 1px solid rgba(232,204,170,0.5); }
.section-icon.dark { background: rgba(26,26,26,0.06); border: 1px solid rgba(26,26,26,0.08); }
.section-block .section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.3; color: var(--text-primary); text-align: left; margin-bottom: 0; }
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 1px; letter-spacing: 0.3px; }
.section-body { font-size: 15px; color: var(--text-secondary); line-height: 1.85; }
.section-body p { margin-bottom: 14px; }

/* ─── Legal Page: Law Cards ─── */
.law-cards { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.law-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 24px; transition: all 0.25s; cursor: default; position: relative; overflow: hidden;
}
.law-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); opacity: 0; transition: opacity 0.25s; }
.law-card:hover { border-color: var(--border-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03); transform: translateX(3px); }
.law-card:hover::before { opacity: 1; }
.law-card-title { font-size: 14.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.law-tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--primary-bg); color: var(--primary); letter-spacing: 0.3px; }
.law-card-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; }

/* ─── Legal Page: Feature Grid ─── */
.legal-feature-grid,
.content-area .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.content-area .feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; transition: all 0.3s; overflow: visible; }
.content-area .feature-card::before { display: none; }
.content-area .feature-card:hover { border-color: var(--border-primary); box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04); transform: translateY(-2px); }
.content-area .feature-card.span-full { grid-column: 1 / -1; }
.fc-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 14px; }
.fc-icon.red { background: rgba(166,17,24,0.07); }
.fc-icon.warm { background: rgba(232,204,170,0.3); }
.fc-icon.dark { background: rgba(26,26,26,0.05); }
.fc-title { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.fc-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.75; }

/* ─── Legal Page: Notice Box ─── */
.notice-box {
  background: var(--sub); border: 1px solid var(--sub-dark); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-top: 16px; font-size: 13px; color: var(--text-secondary);
  line-height: 1.75; display: flex; gap: 10px; align-items: flex-start;
}
.notice-box .ni { flex-shrink: 0; font-size: 14px; margin-top: 1px; }

/* ─── Legal Page: CTA Section ─── */
.cta-section { max-width: 1160px; margin: 0 auto; padding: 0 40px 80px; }
.cta-inner { background: var(--primary); border-radius: var(--radius); padding: 48px 52px; text-align: center; position: relative; overflow: hidden; }
.cta-inner::before { content:''; position:absolute; top:-60%; right:-20%; width:500px; height:500px; background:radial-gradient(circle,rgba(255,255,255,0.06)0%,transparent 60%); pointer-events:none; }
.cta-inner::after { content:''; position:absolute; bottom:-40%; left:-10%; width:400px; height:400px; background:radial-gradient(circle,rgba(0,0,0,0.08)0%,transparent 60%); pointer-events:none; }
.cta-title { font-size: 24px; font-weight: 700; color: var(--text-on-primary); margin-bottom: 10px; position: relative; }
.cta-desc { font-size: 14.5px; color: rgba(255,255,255,0.78); margin-bottom: 28px; position: relative; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; position: relative; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px; padding: 13px 30px;
  background: var(--bg-white); color: var(--primary); font-weight: 600; font-size: 14.5px;
  border-radius: 8px; text-decoration: none; transition: all 0.25s; border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 13px 30px;
  background: transparent; color: var(--text-on-primary); font-weight: 500; font-size: 14.5px;
  border-radius: 8px; text-decoration: none; border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.25s; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.45); }
.red-bar{width: 3px; height: 44px; background-color: var(--primary);}

/* ─── Legal Page: Footer ─── */
.page-footer { border-top: 1px solid var(--border); padding: 32px 40px; background: var(--bg-white); }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-text { font-size: 12.5px; color: var(--text-muted); }

/* ─── Legal Page: Responsive (≤900px) ─── */
@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 60px; }
  .side-nav { position: relative; top: 0; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .side-nav-label { display: none; }
  .side-nav a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 7px 12px; font-size: 13px; }
  .side-nav a.active { border-left: none; border-bottom-color: var(--primary); }
  .page-wrapper .hero { padding: 52px 24px 44px; }
  .stats-bar { padding: 0 24px; margin-top: -20px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stats-bar .stat-item:not(:last-child)::after { right: 20%; top: auto; bottom: 0; height: 1px; width: 60%; }
  .content-area .feature-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 0 24px 60px; }
  .cta-inner { padding: 36px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .nav-breadcrumb { display: none; }
  .nav-bar { padding: 0 24px; }
  .page-footer { padding: 28px 24px; }
}

/* ─── Legal Page: Responsive (≤520px) ─── */
@media (max-width: 520px) {
  .page-wrapper .hero h1 { font-size: 26px; }
  .section-block .section-title { font-size: 19px; }
  .section-header { gap: 10px; }
  .section-icon { width: 38px; height: 38px; font-size: 17px; }
}
/* ─── Payments Page: Pricing Grids ─── */
.pricing-grid-monthly {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pricing-grid-yearly {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pricing-desc {
  font-size: .88rem;
  color: var(--text-mid);
}
.pricing-val-dual {
  font-size: 1.6rem !important;
}
.feat-section-label {
  font-size: .78rem !important;
  font-weight: 700 !important;
  color: var(--text-light) !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: 12px !important;
  padding-bottom: 4px !important;
  border-bottom: none !important;
  display: block !important;
}
.feat-section-label .check,
.feat-section-label .cross {
  display: none;
}

/* ── Payments Page: Responsive (≤1100px) ── */
@media (max-width: 1100px) {
  .pricing-grid-monthly {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Payments Page: Responsive (≤900px) ── */
@media (max-width: 900px) {
  .pricing-grid-monthly {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pricing-grid-yearly {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ── Payments Page: Responsive (≤640px) ── */
@media (max-width: 640px) {
  .pricing-grid-monthly,
  .pricing-grid-yearly {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing-val-dual {
    font-size: 1.3rem !important;
  }
}