* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  /* padding: 80px 20px; */
}

.success-cases-wrap {
  margin: 60px auto 0;
}

.header-section {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 1rem;
}

.header-section h2 {
  font-size: 40px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.header-section p {
  font-size: 22px;
  color: #555;
  line-height: 1.5;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
  max-width: 1200px;
  margin: 0 auto;
}

.case-card {
  display: flex;
  flex-direction: column;
}

.clipboard-board {
  background: linear-gradient(180deg, #ebe6df 0%, #dfd8cf 100%);
  padding: 16px 20px 20px 20px;
  border-radius: 2px;
  border: 1px solid rgba(200, 169, 106, 0.22);
  box-shadow:
    0 5px 14px rgba(62, 48, 32, 0.07),
    0 1px 2px rgba(62, 48, 32, 0.04),
    inset 0 1px 0 rgba(255, 252, 246, 0.7);
  position: relative;
  margin-bottom: 20px;
}

.paper-inner {
  background-color: #ffffff;
  height: 300px;
  position: relative;
  padding: 50px 15px;
  text-align: center;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 28px,
    #f2f2f2 28px,
    #f2f2f2 29px
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.paper-inner h3 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
  background: #fff;
  display: inline-block;
  padding: 0 5px;
}

.paper-inner p {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  background: #fff;
  display: inline-block;
  padding: 0 5px;
  line-height: 1.4;
  word-break: keep-all;
}

/* 도장 기본 스타일 */
.stamp {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 85px;
  height: 85px;
  border: 3px solid #db2121;
  border-radius: 50%;
  color: #db2121;
  font-size: 18px; /* 세 글자 기준 */
  font-weight: 900;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
  line-height: 1.2;
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px #db2121;
  background-color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.5px;
}

/* 글자 수에 따른 미세 조정 */
.stamp-small-text {
  font-size: 15px;
} /* 기소유예처럼 긴 글자 */
.stamp-number {
  font-size: 20px;
} /* 1,2호처럼 숫자 위주 */

.case-info {
  padding-top: 5px;
}

.case-info h4 {
  font-size: 23px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.6px;
}

.case-info p {
  font-size: 18px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 5px;
  word-break: keep-all;
  min-height: 60px;
}

.btn-more {
  display: inline-block;
  padding: 3px 15px;
  font-size: 18px;
  color: #555;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-more:hover {
  background-color: #f7f7f7;
}

/* 미성년자 승소사례: PNG 카드 스킨 + 텍스트 오버레이 */
#juvenile-success-cases .juvenile-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
  align-items: start;
  max-width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 3vw, 20px);
  padding-right: clamp(12px, 3vw, 20px);
  box-sizing: border-box;
}

#juvenile-success-cases .juvenile-case-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.2s ease;
  height: auto;
  min-width: 0;
}

#juvenile-success-cases .juvenile-case-card-link:focus-visible {
  outline: 2px solid rgba(30, 64, 175, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

#juvenile-success-cases .juvenile-case-card-link:hover {
  opacity: 0.96;
}

#juvenile-success-cases .juvenile-case-card-link.case-card {
  display: block;
  height: auto;
}

#juvenile-success-cases .juvenile-case-frame {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  line-height: 0;
  container-name: juvenile-card;
  container-type: inline-size;
}

#juvenile-success-cases .juvenile-case-skin {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  border-radius: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

#juvenile-success-cases .juvenile-case-inner {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  line-height: normal;
  padding: 8.5% 12% 12% 6.5%;
  overflow: hidden;
}

#juvenile-success-cases .juvenile-case-inner > p,
#juvenile-success-cases .juvenile-case-inner > hr,
#juvenile-success-cases .juvenile-case-inner > div {
  min-width: 0;
  align-self: stretch;
}

#juvenile-success-cases .juvenile-case-intro {
  margin: clamp(4px, 1.2cqw, 10px) 0 clamp(4px, 1.2cqw, 6px);
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#juvenile-success-cases .juvenile-case-title {
  margin: clamp(5px, 1.8cqw, 12px) 0 clamp(18px, 4.5cqw, 26px);
  padding: 0 0 clamp(10px, 2.6cqw, 14px);
  box-sizing: border-box;
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: clamp(14px, 6cqw, 21px);
  line-height: 1.35;
  font-weight: 400;
  color: #111827;
  letter-spacing: -0.02em;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d9d9d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
}

#juvenile-success-cases .juvenile-case-title-lead {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

#juvenile-success-cases .juvenile-case-title-sep {
  margin: 0;
  font-size: clamp(13px, 4.4cqw, 19px);
  line-height: 1.35;
  font-weight: 400;
  color: #9ca3af;
}

#juvenile-success-cases .juvenile-case-title-tail {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: #111827;
}

#juvenile-success-cases .juvenile-case-divider {
  border: none;
  border-top: 1px solid rgba(17, 24, 39, 0.14);
  margin: clamp(4px, 1.2cqw, 8px) 0 clamp(14px, 3.6cqw, 22px);
  padding: 0;
  width: 100%;
}

#juvenile-success-cases .juvenile-case-summary {
  margin: clamp(6px, 1.6cqw, 10px) 0 clamp(8px, 2.2cqw, 12px);
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #374151;
  letter-spacing: -0.03em;
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  width: 100%;
  max-width: 100%;
}

#juvenile-success-cases .juvenile-case-detail {
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  min-height: 0;
  box-sizing: border-box;
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: clamp(15px, 4.4cqw, 18px);
  line-height: 1.42;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: -0.02em;
  background: transparent;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
  width: 100%;
}

#juvenile-success-cases .juvenile-case-bottom {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto;
  /* 우하단 도장 쪽으로 CTA 한 줄 내림 */
  padding-top: clamp(26px, 11cqw, 60px);
  width: 100%;
  flex-shrink: 0;
}

#juvenile-success-cases .juvenile-case-cta {
  display: inline-block;
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.05em;
  color: #374151;
  background: transparent;
  padding: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

#juvenile-success-cases .juvenile-case-card-link:hover .juvenile-case-cta {
  color: #1f2937;
  transform: none;
  font-weight: 500;
}

#juvenile-success-cases .header-section h2 {
  color: #111827;
  letter-spacing: -0.03em;
}

#juvenile-success-cases .header-section p {
  color: #6b7280;
}

/* 좁은 데스크톱·태블릿: 4열은 카드·텍스트가 과도하게 좁아짐 */
@media (max-width: 1100px) {
  #juvenile-success-cases .juvenile-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* age-specific success cases (2nd block) */
.age-cases-section {
  margin-top: 90px;
  padding: 24px 8px 8px;
  background: transparent;
}

.age-cases-grid {
  grid-template-columns: repeat(3, minmax(280px, 400px));
  justify-content: center;
  gap: 34px;
}

/* 연령대별 블록: 과한 여백 완화 · 시선 밀도 정리 */
#refine-legal-document-card.age-cases-section {
  margin-top: 48px;
  padding: 8px 8px 0;
}

#refine-legal-document-card .header-section {
  margin-bottom: 32px;
}

#refine-legal-document-card .header-section h2 {
  margin-bottom: 10px;
}

#refine-legal-document-card .header-section p {
  font-size: calc(19px * 1.15);
  line-height: 1.48;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

#refine-legal-document-card .age-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 388px);
  justify-content: center;
  gap: 14px;
}

#refine-legal-document-card .age-clip-card {
  position: relative;
  padding: 0;
  height: 100%;
  min-height: 0;
}

#refine-legal-document-card a.age-case-card-link {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 388px;
  max-width: 100%;
  height: 424px;
  margin: 0 auto;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  border-radius: 30px;
  overflow: hidden;
  background: #333333;
  box-shadow: none;
  transition: color 0.2s ease;
}

#refine-legal-document-card a.age-case-card-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 3px;
}

#refine-legal-document-card a.age-case-card-link:hover {
  transform: none;
  box-shadow: none;
}

.age-clip-card .age-clip-board {
  margin-bottom: 0;
  padding-top: 0;
}

#refine-legal-document-card .age-clip-board {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
  border-radius: 0;
  padding: 0;
  border: none;
}

.age-paper-inner {
  height: 270px;
}

#refine-legal-document-card .age-paper-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-align: left;
  align-items: stretch;
  position: relative;
  height: auto;
  padding: 22px 30px 18px;
  border: 0;
  outline: none;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  overflow: hidden;
}

#refine-legal-document-card .age-paper-inner > * {
  min-width: 0;
}

/* 전역 .paper-inner p 의 흰 배경·inline-block 이 다크 카드에서 글자를 가림 */
#refine-legal-document-card .age-paper-inner p:not(.age-pill):not(.legal-card-titleline) {
  background: transparent;
  display: block;
  padding: 0;
}

#refine-legal-document-card .legal-card-titleline {
  margin: 9px 0 17px;
  padding: 0 0 14px;
  border: none;
  border-bottom: 1px solid #74787d;
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  display: block;
}

#refine-legal-document-card .legal-card-title-lead {
  font-size: 1.15em;
  font-weight: 800;
  color: #ffffff;
}

#refine-legal-document-card .legal-card-titlesep {
  margin: 0;
  font-size: 1em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

#refine-legal-document-card .legal-card-title-tail {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

#refine-legal-document-card .legal-card-summary {
  margin: 0;
  font-size: calc(16px * 1.1);
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#refine-legal-document-card .legal-card-detail {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
  color: #bbbbbb;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#refine-legal-document-card .legal-card-cta-wrap {
  margin-top: auto;
  padding-top: 16px;
  text-align: right;
}

#refine-legal-document-card .legal-card-outcome-bar {
  flex-shrink: 0;
  padding: 17px 20px 18px;
  text-align: center;
  font-family:
    "NanumSquare",
    "Nanum Square",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #111111;
  line-height: 1.4;
  border: none;
  box-shadow: none;
}

#refine-legal-document-card .legal-card-outcome-bar--elementary {
  background: #86efac;
}

#refine-legal-document-card .legal-card-outcome-bar--middle {
  background: #90c8ff;
}

#refine-legal-document-card .legal-card-outcome-bar--high {
  background: #d1b2ff;
}

.age-pill {
  display: inline-block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.3px;
  padding: 5px 13px;
  border-radius: 999px;
  margin: 0 0 10px;
  border: 0;
  box-shadow: none;
}

#refine-legal-document-card .age-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: calc(14px * 1.15);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  padding: 9px 26px;
  border-radius: 999px;
  margin: 0 0 10px;
  line-height: 1.25;
  border: none;
  color: #111111;
}

/* 연령 필: 초·중·고 동일 타이포(나눔스퀘어 800), 배경만 연령색 */
#refine-legal-document-card .age-pill--elementary,
#refine-legal-document-card .age-pill--middle,
#refine-legal-document-card .age-pill--high {
  font-family:
    "NanumSquare",
    "Nanum Square",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: #111111;
  padding: 8px 26px;
}

#refine-legal-document-card .age-pill--elementary {
  background: #86efac;
}

#refine-legal-document-card .age-pill--middle {
  background: #90c8ff;
}

#refine-legal-document-card .age-pill--high {
  background: #d1b2ff;
}

.age-pill--elementary {
  color: #137b4f;
  border-color: rgba(19, 123, 79, 0.26);
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.18) 0%,
    rgba(34, 197, 94, 0.1) 100%
  );
}

.age-pill--middle {
  color: #1e4fc9;
  border-color: rgba(30, 79, 201, 0.26);
  background: linear-gradient(
    180deg,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(59, 130, 246, 0.1) 100%
  );
}

.age-pill--high {
  color: #7a2cc0;
  border-color: rgba(122, 44, 192, 0.26);
  background: linear-gradient(
    180deg,
    rgba(168, 85, 247, 0.2) 0%,
    rgba(168, 85, 247, 0.1) 100%
  );
}

.age-clip-card .paper-inner h3 {
  font-size: 30px;
  margin-bottom: 10px;
}

.age-clip-card .paper-inner p {
  font-size: 20px;
  line-height: 1.35;
}

#refine-legal-document-card .legal-card-urgency {
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 400;
  color: #999999;
  letter-spacing: -0.02em;
  background: transparent;
  display: block;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.age-clip-card .stamp {
  width: 85px;
  height: 85px;
  font-size: 20px;
}

.stamp--elementary {
  border-color: #14a36a;
  color: #14a36a;
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px #14a36a;
}

.stamp--middle {
  border-color: #2f6cd8;
  color: #2f6cd8;
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px #2f6cd8;
}

.stamp--high {
  border-color: #c13f8f;
  color: #c13f8f;
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px #c13f8f;
}

.age-case-info {
  text-align: center;
  padding: 0 4px;
}

.age-case-info h4 {
  font-size: 24px;
  margin-bottom: 7px;
  letter-spacing: -0.45px;
  color: #0f172a;
}

.age-case-info p {
  font-size: 18px;
  line-height: 1.5;
  min-height: 0;
  margin-bottom: 10px;
  color: #4b5563;
}

.age-case-info .btn-more {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #334155;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 4px 14px;
  background: #fff;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

#refine-legal-document-card .legal-case-more {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: none;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  cursor: inherit;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

#refine-legal-document-card .age-case-card-link:hover .legal-case-more {
  opacity: 0.95;
  color: #cbd5e1;
  background: none;
  background-color: transparent;
  background-image: none;
  transform: none;
}

@media (max-width: 1200px) {
  .cases-grid {
    padding: 0 24px;
  }

  .age-cases-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 26px;
  }

  #refine-legal-document-card .age-cases-grid {
    gap: 14px;
  }
}

@media (max-width: 1240px) {
  #refine-legal-document-card .age-cases-grid {
    grid-template-columns: repeat(2, 388px);
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .paper-inner {
    height: 260px;
  }

  .age-cases-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 26px;
  }

  #refine-legal-document-card .age-cases-grid {
    grid-template-columns: repeat(2, min(388px, calc(50vw - 24px)));
    justify-content: center;
  }

  #juvenile-success-cases .juvenile-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #juvenile-success-cases .juvenile-case-inner {
    padding: 8.5% 12% 20% 6.5%;
  }

  #refine-legal-document-card .legal-card-titleline {
    font-size: 19px; /* 리드·테일은 1.15em */
    margin: 8px 0 15px;
    padding: 0 0 12px;
    border: none;
    border-bottom: 1px solid #74787d;
    background: transparent;
  }

  #refine-legal-document-card .legal-card-outcome-bar {
    padding: 15px 18px 16px;
    font-size: 20px;
  }

  #refine-legal-document-card .age-paper-inner {
    min-height: 0;
    padding: 20px 24px 16px;
  }

  #refine-legal-document-card .legal-card-urgency {
    margin-bottom: 6px;
    line-height: 1.35;
  }

  #refine-legal-document-card .age-pill {
    padding: 9px 22px;
    margin-bottom: 9px;
  }

  #refine-legal-document-card .age-pill--elementary,
  #refine-legal-document-card .age-pill--middle,
  #refine-legal-document-card .age-pill--high {
    font-size: 24px;
    padding: 8px 22px;
  }

  #refine-legal-document-card .legal-card-detail {
    margin-top: 5px;
  }
}

@media (max-width: 600px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .header-section h2 {
    font-size: 26px;
  }

  #refine-legal-document-card .header-section {
    margin-bottom: 26px;
  }

  #refine-legal-document-card .header-section p {
    font-size: calc(17px * 1.15);
  }

  .case-info p {
    min-height: auto;
  }

  /* 미성년자 승소사례: 모바일만 1열(한 행에 카드 1개). PC·태블릿(601px+)은 1100/1024 규칙 유지 */
  #juvenile-success-cases.success-cases-wrap {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  #juvenile-success-cases .juvenile-cases-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: min(100%, 26.5rem);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }

  /* 높이만 살짝 줄임: 이미지는 흐름에 두어 프레임·그리드 행 높이가 유지되고 전체가 보임(absolute+cover 제거로 겹침 방지) */
  #juvenile-success-cases .juvenile-case-frame {
    width: 100%;
    min-height: 0;
  }

  #juvenile-success-cases .juvenile-case-skin {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 400px;
  }

  #juvenile-success-cases a.juvenile-case-card-link.case-card {
    position: relative;
    z-index: 0;
  }

  .clipboard-board {
    margin-bottom: 10px;
  }

  .age-cases-section {
    margin-top: 70px;
    padding: 22px 4px 4px;
  }

  #refine-legal-document-card.age-cases-section {
    margin-top: 40px;
    padding-top: 12px;
  }

  .age-cases-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #refine-legal-document-card .age-cases-grid {
    grid-template-columns: min(356px, 100%);
    justify-content: center;
    gap: 18px;
  }

  /* 연령대별 카드: 모바일만 너비 356 한도·종이 영역 높이 250px, PC(601px+)는 기존 388×424 유지 */
  #refine-legal-document-card a.age-case-card-link {
    width: min(356px, 100%);
    height: auto;
  }

  .age-paper-inner {
    height: 250px;
  }

  .age-pill {
    font-size: 16px;
    padding: 4px 11px;
  }

  .age-clip-card .paper-inner h3 {
    font-size: 27px;
  }

  .age-clip-card .paper-inner p {
    font-size: 18px;
  }

  .age-clip-card .stamp {
    width: 78px;
    height: 78px;
    font-size: 20px;
  }

  .age-case-info h4 {
    font-size: 21px;
  }

  .age-case-info p {
    font-size: 16px;
  }

  .age-case-info .btn-more {
    font-size: 16px;
  }

  #refine-legal-document-card .age-paper-inner {
    padding: 12px 14px 10px;
    min-height: 0;
    height: 250px;
    flex: 0 0 auto;
    box-sizing: border-box;
    border: 0;
    outline: none;
  }

  #refine-legal-document-card .legal-card-titleline {
    font-size: 17px; /* 리드·테일은 1.15em */
    margin: 7px 0 15px;
    padding: 0 0 13px;
    border: none;
    border-bottom: 1px solid #74787d;
    background: transparent;
  }

  #refine-legal-document-card .legal-card-summary {
    font-size: calc(15px * 1.1);
  }

  #refine-legal-document-card .legal-card-detail {
    font-size: calc(12px * 1.1);
  }

  #refine-legal-document-card .age-pill {
    font-size: calc(13px * 1.15);
    padding: 8px 20px;
    margin-bottom: 8px;
  }

  #refine-legal-document-card .age-pill--elementary,
  #refine-legal-document-card .age-pill--middle,
  #refine-legal-document-card .age-pill--high {
    font-size: 20px;
    padding: 7px 18px;
    line-height: 1.4;
    letter-spacing: -0.05em;
  }

  #refine-legal-document-card .legal-card-urgency {
    font-size: calc(12px * 1.1);
    margin-bottom: 5px;
    line-height: 1.35;
  }

  #refine-legal-document-card .legal-card-outcome-bar {
    padding: 14px 16px 15px;
    font-size: 18px;
  }

  #refine-legal-document-card .legal-card-cta-wrap {
    text-align: right;
    padding-top: 16px;
  }

  #refine-legal-document-card .legal-case-more {
    font-size: 15px;
    padding: 6px 0;
  }
}
