/* 법률 색: web.jd8 디자인(web.css)은 그대로 두고 색만 바꾼다 — 짙은 남색 + 차분한 금색 강조 */
.theme-law { --ink: #0f1d33; --text: #2a3445; --muted: #667085; --line: #e2e6ee; --soft: #f5f6f9; --tint: #eef1f7;
  --accent: #1d3a6b; --accent-d: #142a4f; --primary: #0c1729; }
.theme-law .logo b { background: var(--ink); color: #e3c27a; }
.theme-law em.hl { color: #a8823a; }
.theme-law .hero { background: radial-gradient(900px 480px at 86% 6%, #e9edf6 0%, rgba(233, 237, 246, 0) 62%), #fff; }
.theme-law .mark { background: linear-gradient(transparent 62%, #efe2c2 62%); }
.theme-law .hero-sub { color: var(--accent); }
.theme-law .tbl caption { caption-side: top; text-align: left; font-weight: 700; color: var(--ink); padding: 0 0 10px; }
.theme-law .hero .hd-visual { align-self: center; }
.theme-law .closing .wrap { background: linear-gradient(135deg, #1d3a6b, #0c1729); }
/* 메인 맨 위 직업명 바뀌는 효과 — jd8.co.kr 히어로(lp-rotator)와 같은 움직임 */
.theme-law .rot { display: inline-flex; overflow: hidden; vertical-align: bottom; color: #fff; background: #1d3a6b; padding: 0 .16em; border-radius: .14em; line-height: 1.15; }
.theme-law .rot .w { display: inline-block; animation: lawWordIn .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes lawWordIn { from { opacity: 0; transform: translateY(85%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .theme-law .rot .w { animation: none; } }

/* 예시 페이지 9개 → PC 3열(4열이면 마지막 줄에 1개만 남는다) */
@media (min-width: 901px) { .theme-law .samples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-law .sample-cap span { color: #e3c27a; }
/* 히어로 제목: 직업명은 남색 칸 + 흰 글씨, '전국에서'는 금색 형광펜, 나머지는 진한 글씨 — 금색 글자가 많으면 흐려 보인다 */
.theme-law .hero h1 em.hl { color: var(--ink); background: linear-gradient(transparent 58%, #e9cf8f 58%, #e9cf8f 92%, transparent 92%); }
/* 히어로 제목 더 크게·진하게 (2차) */
.theme-law .hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.7rem); letter-spacing: -.045em; color: #0a1424; }
.theme-law .hero h1 em.hl { background: linear-gradient(transparent 55%, #f5c542 55%, #f5c542 94%, transparent 94%); }
.theme-law .rot { background: #13306b; box-shadow: 0 .08em 0 #f5c542; }
@media (max-width: 560px) { .theme-law .hero h1 { font-size: clamp(2.3rem, 11.2vw, 3.2rem); } }
/* 로고: 휴대폰에서는 '대량제작'을 빼서 한 줄 유지 */
.theme-law .logo, .theme-law .nav .tel { white-space: nowrap; }
@media (max-width: 560px) { .theme-law .logo-x { display: none; } }
