:root {
    /* Font */
    --font-google: 'Roboto', 'Noto Sans KR', sans-serif; /* Google Sans 대체 폰트 */

    /* Colors (Google/YouTube Palette) */
    --color-text-primary: #202124;    /* 기본 텍스트 (거의 검정) */
    --color-text-secondary: #5f6368;  /* 보조 텍스트 */
    --color-text-link: #1a73e8;       /* 링크 색상 (Google 파랑) */
    --color-text-link-hover: #174ea6; /* 링크 호버 */
    --color-border-subtle: #dadce0;   /* 구분선 */
    --color-background: #ffffff;       /* 흰색 배경 */
    --color-notice-bg: #f8f9fa;        /* 안내 박스 배경 (밝은 회색) */
    --color-notice-border: #dadce0;    /* 안내 박스 테두리 */

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-xxxl: 64px;
}


/* ----- Layout ----- */
.terms-header { /* PHP에서 page-title을 감싸는 div */
    text-align: left; /* 왼쪽 정렬 */
    max-width: 800px;
    margin: var(--spacing-xxl) auto var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.terms-title { /* 콘텐츠 영역 내 메인 타이틀 */
    font-size: 2rem; /* 32px */
    font-weight: 500; /* 약간 얇은 볼드 */
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.last-updated {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.terms-content-wrapper.youtube-style {
    max-width: 800px; /* 본문 너비 제한 */
    margin: 0 auto var(--spacing-xxxl);
    padding: 0 var(--spacing-md); /* 좌우 여백 */
}

.terms-content-container {
    background-color: transparent; /* 배경색 제거 */
    padding: 0; /* 패딩 제거 */
    border: none; /* 테두리 제거 */
    box-shadow: none; /* 그림자 제거 */
}

/* ----- Typography & Content ----- */
article { /* .terms-content-container */
    font-size: 0.9375rem; /* 15px */
}

.terms-section {
    margin-bottom: var(--spacing-xxl);
}

h2 {
    font-size: 1.375rem; /* 22px */
    font-weight: 500;
    color: var(--color-text-primary);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border-subtle); /* 옅은 하단선 */
}
section:first-of-type h2 { /* 첫 h2는 상단 마진/테두리 없음 */
    margin-top: 0;
    border-top: none;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary); /* 본문은 약간 연하게 */
    line-height: 1.6;
}

ol {
    counter-reset: terms-counter;
    margin-left: 0; /* 기본 들여쓰기 제거 */
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl); /* 왼쪽 패딩으로 들여쓰기 조절 */
    color: var(--color-text-secondary);
}

ol > li {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
    list-style-type: none;
}

ol > li:before {
    counter-increment: terms-counter;
    content: counter(terms-counter) ".";
    position: absolute;
    left: -20px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.terms-subtitle {
    font-weight: 500; /* 너무 두껍지 않게 */
    color: var(--color-text-primary);
}

a {
    color: var(--color-text-link);
    text-decoration: none;
}
a:hover, a:focus {
    color: var(--color-text-link-hover);
    text-decoration: underline;
}

.terms-illustration {
    display: block;
    text-align: center;
    margin: var(--spacing-xxl) auto; /* 위아래 여백, 가운데 정렬 */
    max-width: 300px; /* 이미지 최대 너비 (조절 가능) */
}

.terms-illustration img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .terms-illustration {
        margin-top: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
        max-width: 250px;
    }
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .terms-header,
    .terms-content-wrapper.youtube-style {
        padding: 0 var(--spacing-md);
        margin-left: auto;
        margin-right: auto;
    }
    .terms-title { font-size: 1.75rem; } /* 28px */
    h2 { font-size: 1.25rem; } /* 20px */
}