/**
 * 서비스 소개 > 생활법령 소개 (UI-A-06-01-01) — 임시 스타일 (공식 퍼블 대기).
 *
 * 퍼블 재사용: .sub_top / .nav_box / .page_title / .sub_content / .law_notice / .sub_btn point
 * 이 파일은 본문 텍스트 블록(소제목·Q 배지·불릿·하단 CTA)만 보완한다(퍼블 CSS 무수정).
 * 커스텀 클래스는 kebab-case(intro-*)로 퍼블 snake_case 와 구분한다.
 */

/*
 * 상단 간격 과다 보정 (notice-list.css 와 동일 사유)
 * pub #contents{margin-top:var(--row-gap-lg)} 만으로 sub_top 아래 여백이 과도해진다.
 * .service-intro 화면에만 한정 적용한다.
 */
#contents:has(> .service-intro) {
    padding-bottom: var(--row-gap-md);
}

.service-intro {
    display: flex;
    flex-direction: column;
    gap: var(--row-gap-sl);
}

/* 소제목 (설계서: 파란색 소제목) */
.service-intro .intro-title {
    font-size: var(--text-22);
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

/* 본문 공통 */
.service-intro p,
.service-intro li {
    font-size: var(--text-17);
    color: var(--gray-90);
    line-height: 1.7;
    word-break: keep-all;
}

.service-intro strong {
    font-weight: 700;
    color: var(--primary-60);
}

/* 찾기 쉬운 생활법령? — 01/02/03 숫자 배지 */
.service-intro .intro-qa-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-intro .intro-qa-list > li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

/* 원형 숫자 배지 — rem 단위라 화면크기(확대) 기능에 함께 커진다.
   margin-top 은 본문 첫 줄(글자크기 × line-height 1.7) 가운데에 배지를 맞추기 위한 값 */
.service-intro .intro-qa-no {
    --intro-qa-badge: 1.75rem;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--intro-qa-badge);
    height: var(--intro-qa-badge);
    margin-top: calc((var(--text-17) * 1.7 - var(--intro-qa-badge)) / 2);
    border-radius: 50%;
    background: var(--primary-60);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 640px) {
    .service-intro .intro-qa-no {
        --intro-qa-badge: 1.625rem;
        font-size: 0.8125rem;
    }
}

/* 운영계획 · 사이트 이용 문의 — 불릿 */
.service-intro .intro-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-intro .intro-bullet-list > li {
    position: relative;
    padding-left: 0.9rem;
}

.service-intro .intro-bullet-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-60);
}

.service-intro .intro-tel {
    color: var(--primary-text);
}

/* 하단 안내 + 전체 생활법령 보기 버튼 (.law_notice 재사용) */
.service-intro .intro-cta {
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.service-intro .intro-cta-text {
    font-size: var(--text-17);
    font-weight: 700;
    color: var(--gray-90);
    word-break: keep-all;
}

.service-intro .intro-cta-btn .sub_btn {
    min-width: 180px;
    justify-content: center;
}

@media screen and (max-width: 640px) {

    .service-intro .intro-title {
        font-size: var(--text-19);
    }

    .service-intro .intro-cta-btn .sub_btn {
        min-width: 0;
        width: 100%;
    }
}


/* 메인·메가메뉴 축소 비율에 맞춘 서비스 소개 본문 밀도 */
#container:has(> #contents > .service-intro) {
    padding-bottom: 0;
}

#contents:has(> .service-intro) {
    padding-bottom: 36px;
}

.service-intro {
    gap: 28px;
}

.service-intro .intro-title {
    margin-bottom: 12px;
    font-size: var(--text-20);
}

.service-intro .intro-qa-list,
.service-intro .intro-bullet-list {
    gap: 10px;
}

.service-intro .intro-cta {
    gap: 12px;
    padding: 16px 20px;
}

@media screen and (max-width: 640px) {
    #contents:has(> .service-intro) {
        padding-bottom: 28px;
    }

    .service-intro {
        gap: 20px;
    }
}
