/* ═══════════ 법무(개인회생) 스킨 — skin=law ═══════════ */
/* cardui(body.tidy: 헤더·내비·위젯·비용가이드·글)를 재사용하고, 그 위에 얹는 위로·안정형 오버레이. */
/* 새벽·크림 웜톤(시안 A): 라이트 히어로 + 명조 헤드라인 + 상황 공감 카드. */
/* 색은 sites.yaml palette(cardui 토큰: --blue=테라코타, --wash=크림)로 주입. */
@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap");

/* 헤더(주색 하단 보더) */
body.law .site-header { background: rgba(255,255,255,.93); border-bottom: 2px solid var(--blue); }
body.law .brand { color: var(--blue-d); }

body.law .cpa { line-height: 1.7; color: var(--ink); }
body.law main { padding-bottom: 0; }

/* ── 히어로: 라이트 크림 + 새벽빛 라디얼 + 명조 헤드라인 ── */
body.law .cpa-hero {
  position: relative; color: var(--ink); padding: 68px 20px 56px; text-align: center; overflow: hidden;
  background: radial-gradient(70% 80% at 50% -10%, var(--wash2) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg, #fff) 0%, var(--wash) 100%);
}
body.law .cpa-hero-inner { position: relative; max-width: 880px; margin: 0 auto; }
body.law .cpa-hero h1 { font-family: "Gowun Batang", var(--disp), serif; font-size: clamp(1.7rem,4.6vw,2.55rem); font-weight: 700; line-height: 1.4; margin: 14px 0 10px; letter-spacing: -.01em; }
body.law .cpa-hero h1 em { font-style: normal; color: var(--blue-d); }
body.law .cpa-hero p { color: var(--muted); font-size: 1.02rem; margin: 0 auto; max-width: 640px; }
body.law .cpa-kicker { display:inline-block; font-family: var(--latin); font-weight:700; letter-spacing:.08em; font-size:.74rem; color: var(--blue-d); background: var(--wash2); border:1px solid var(--line); padding:6px 14px; border-radius:999px; }
body.law .cpa-fresh { display:inline-flex; align-items:center; gap:6px; font-size:.78rem; color: var(--blue-d); background:#fff; border:1px solid var(--line); padding:5px 11px; border-radius:999px; margin-bottom:10px; }
body.law .cpa-fresh i { width:7px; height:7px; border-radius:50%; background: var(--blue); animation: lawpulse 2s infinite; }
@keyframes lawpulse { 0%{box-shadow:0 0 0 0 rgba(217,119,6,.5)} 70%{box-shadow:0 0 0 8px rgba(217,119,6,0)} 100%{box-shadow:0 0 0 0 rgba(217,119,6,0)} }

/* ── 상황 공감 섹션: "혹시 지금, 이런 상황이신가요?" ── */
body.law .cpa-sit { max-width:1020px; margin:0 auto; padding:52px 20px 8px; }
body.law .cpa-sit-h { text-align:center; font-family:"Gowun Batang", var(--disp), serif; font-size:clamp(1.3rem,3.2vw,1.6rem); font-weight:700; color:var(--ink); margin:0 0 8px; }
body.law .cpa-sit-s { text-align:center; color:var(--muted); font-size:.95rem; margin:0 0 28px; }
body.law .cpa-sit-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
body.law .cpa-sit-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px 22px; box-shadow:0 8px 24px -18px rgba(180,83,9,.28); }
body.law .cpa-sit-card .q { font-weight:800; font-size:.97rem; margin:0 0 8px; color:var(--ink); }
body.law .cpa-sit-card .q i { font-style:normal; margin-right:8px; }
body.law .cpa-sit-card .a { color:var(--muted); font-size:.87rem; margin:0; line-height:1.65; }
body.law .cpa-assure { text-align:center; margin:36px auto 0; max-width:640px; background:var(--wash); border:1px solid var(--line); border-radius:16px; padding:26px 22px; }
body.law .cpa-assure b { display:block; font-family:"Gowun Batang", var(--disp), serif; font-size:1.15rem; margin-bottom:6px; color:var(--ink); }
body.law .cpa-assure span { color:var(--muted); font-size:.9rem; }
body.law .cpa-assure-cta { display:inline-block; margin-top:16px; background:var(--blue); color:#fff; font-weight:800; padding:13px 32px; border-radius:999px; text-decoration:none; box-shadow:0 10px 22px -10px rgba(217,119,6,.55); transition:background .15s; }
body.law .cpa-assure-cta:hover { background:var(--blue-d); }
@media (max-width:860px){ body.law .cpa-sit-grid{grid-template-columns:1fr 1fr} }
@media (max-width:560px){ body.law .cpa-sit-grid{grid-template-columns:1fr} }

/* ── 섹션 ── */
body.law .cpa-firms, body.law .cpa-latest { max-width:1080px; margin:0 auto; padding:40px 20px; }
body.law .cpa-sec-head { text-align:center; margin-bottom:24px; }
body.law .cpa-sec-kicker { font-family: var(--latin); font-weight:700; letter-spacing:.1em; font-size:.72rem; color: var(--aqua); }
body.law .cpa-firms h2, body.law .cpa-latest h2 { font-family: var(--disp); font-size: clamp(1.3rem,3vw,1.8rem); font-weight:800; color: var(--ink); margin:4px 0 0; }

/* ── 법무법인 카드: 골드 좌측 띠 + 책임변호사 강조 ── */
body.law .cpa-firm-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
body.law .cpa-firm { background:#fff; border:1px solid var(--line); border-left:4px solid var(--aqua); border-radius:12px; box-shadow:0 4px 18px rgba(12,47,43,.06); transition:transform .15s, box-shadow .15s; }
body.law .cpa-firm:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(12,47,43,.12); }
body.law .cpa-firm-body { padding:20px 18px; }
body.law .cpa-firm-name { font-family: var(--disp); font-size:1.12rem; font-weight:800; color: var(--blue-d); margin:0 0 6px; }
body.law .cpa-firm-tag { color: var(--muted); font-size:.92rem; margin:0 0 12px; line-height:1.55; }
body.law .cpa-firm-legal { display:inline-block; font-size:.72rem; color: var(--blue-d); background: var(--wash2); border:1px solid var(--line); padding:3px 9px; border-radius:6px; margin-bottom:12px; }
/* 카드 버튼은 소프트(시안 A) — 카드 28개가 전부 진한 주황이면 과해서 톤 다운. 강한 CTA는 상단 무료진단 1곳만. */
body.law .cpa-cta { display:block; text-align:center; background: var(--wash); color: var(--blue-d); border:1px solid var(--line); font-weight:800; padding:10px 14px; border-radius:9px; text-decoration:none; transition:background .15s, border-color .15s; }
body.law .cpa-cta:hover { background: var(--wash2); border-color: var(--blue); }
body.law .cpa-foot { text-align:center; color: var(--muted); font-size:.82rem; margin-top:22px; line-height:1.6; }

/* ── 최신 정보 ── */
body.law .cpa-latest { background: var(--wash); border-radius:16px; }
body.law .cpa-post-list { list-style:none; padding:0; margin:0 auto; max-width:860px; display:grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap:10px 24px; }
body.law .cpa-post-list a { display:block; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:10px; color: var(--ink); text-decoration:none; font-weight:600; }
body.law .cpa-post-list a:hover { border-color: var(--blue); color: var(--blue-d); }

@media (max-width:640px){ body.law .cpa-hero{padding:46px 16px 38px} }

/* 광고 슬롯: 실제 광고가 채워졌을 때만 표시 — 미승인/미충전 시 섹션 사이 큰 공백(375px)으로 남던 문제 */
body.law ins.adsbygoogle:not([data-ad-status="filled"]) { display: none !important; }
body.law .cpa-landing > ins.adsbygoogle { margin: 0 auto; }

/* 지역별 개인회생 안내 링크 */
body.law .cpa-region-links { display: flex; flex-wrap: wrap; gap: 8px; }
body.law .cpa-region-link { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none; }
body.law .cpa-region-link:hover { border-color: var(--blue); color: var(--blue); }
