/* ========================================
   혜움 블로그 스타일을 적용한 약관 페이지
   ======================================== */

/* 기본 설정 */
body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F7F1E9;
    color: #333333;
    line-height: 1.6;
}

/* 메인 컨테이너 */
.terms-page-main {
    background-color: #F7F1E9;
    min-height: 1300px;
    padding: 0;
}

/* 상단 보더 */
.terms-page-border {
    border-bottom: 3px solid #F7F1E9;
    padding: 70px 0;
}

/* 날짜 표시 */
.terms-page-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3.125rem 0 2.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

/* 아티클 컨테이너 */
.terms-page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 아티클 콘텐츠 */
.terms-page-content {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 50px;
}

/* 아티클 콘텐츠 내 구분선 */
.terms-page-content hr {
    height: 6px;
    background-color: #884513;
    border: none;
    margin: 16px 0;
    padding: 0;
}

/* 본문 스타일 */
.terms-page-content {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
}

/* 제목 스타일 */
.terms-page-content h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #333333;
    margin: 2rem 0 0.5rem 0;
    line-height: 1.3;
}

.terms-page-content h1 strong {
    font-weight: 700;
}

/* 본문 텍스트 */
.terms-page-content p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.7;
}

.terms-page-content p span {
    color: #333333;
    font-size: 1.25rem;
}

/* 빈 p 태그 숨기기 */
.terms-page-content p:empty {
    display: none;
}

/* 섹션 제목 (h2) */
.terms-page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.terms-page-content h2 strong {
    font-weight: 700;
}

/* 강조 텍스트 */
.terms-page-content strong {
    font-weight: 700;
    color: #333333;
}

/* 이미지 */
.terms-page-content .simple-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

/* Terms content styles */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.terms-article {
    margin-bottom: 2rem;
}

.terms-article h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #8B4513;
}

.terms-article p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
}

.terms-subsection {
    margin: 1rem 0;
}

.terms-subsection h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
}

.terms-subsection p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
}

.terms-subsection ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-subsection li {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 0.5rem;
}

.terms-intro {
    background-color: #F5E6D3;
    padding: 0.5rem;
}

/* Comment 박스 */
.terms-page-comment {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2rem 0;
}

.terms-page-comment-header {
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: flex-start;
    background-size: 200px 80px;
    background-position: center left;
    background-repeat: no-repeat;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 8px;
    position: relative;
}

.terms-page-comment-title {
    margin-bottom: 1.5rem;
    margin-left: 5rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333333;
    position: absolute;
    left: 5rem;
    top: 50%;
    transform: translateY(-50%);
}

.terms-page-comment-text {
    font-size: 1.25rem;
    color: #333333;
    line-height: 1.7;
    margin: 0;
}

/* 구독 섹션 */
.terms-page-subscribe {
    text-align: center;
    margin: 2rem 0;
}

.terms-page-subscribe-text {
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
}

.terms-page-subscribe-button {
    display: inline-block;
    background-color: #3b82f6;
    color: #FAFAFA;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.terms-page-subscribe-button:hover {
    background-color: #2563eb;
    color: #FAFAFA;
}

/* 공유 버튼 */
.terms-page-share {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0;
}

.terms-page-share-btn {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-page-share-btn:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.terms-page-share-btn svg {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

/* 약관 콘텐츠 스타일 */
.terms-content {
    max-width: 100%;
    margin: 0;
}

.terms-intro {
    background-color: #F5E6D3;
    padding: 0.5rem;
}

.terms-intro-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333333;
    margin: 0;
}

.terms-article {
    margin-bottom: 2.5rem;
}

.terms-article h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #8B4513;
}

.terms-article p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
}

.terms-subsection {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.terms-subsection h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
}

.terms-subsection h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333333;
    margin: 1.25rem 0 0.5rem 0;
    line-height: 1.4;
}

.terms-subsection ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.terms-subsection li {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 0.5rem;
}

.terms-footer {
    background-color: #FAFAFA;
    padding: 1rem;
    border-radius: 8px;
    margin: 3rem 0 1rem 0;
    text-align: center;
}

.terms-footer p {
    font-size: 1rem;
    color: #333333;
    margin: 0;
    line-height: 1.7;
}

/* 개인정보 처리방침 테이블 스타일 */
.privacy-table {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.privacy-table table {
    width: 100%;
    border-collapse: collapse;
    background: #FAFAFA;
    border-radius: 8px;
    overflow: hidden;
}

.privacy-table th,
.privacy-table td {
    padding: 0.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid #FAFAFA;
    vertical-align: top;
    font-size: 0.9rem;
    line-height: 1.6;
}

.privacy-table th {
    background-color: #f9fafb;
    font-weight: 700;
    color: #333333;
}

.privacy-table td {
    color: #333333;
}

.privacy-table tr:last-child th,
.privacy-table tr:last-child td {
    border-bottom: none;
}

.privacy-table tr:hover {
    background-color: #f9fafb;
}

/* 반응형 디자인 */

/* 태블릿 (768px 이상) */
@media (min-width: 768px) {
    .terms-page-container {
        padding: 0 2rem;
    }
}

/* 데스크톱 (1024px 이상) */
@media (min-width: 1024px) {
    .terms-page-container {
        padding: 0;
    }
}

/* 모바일 최적화 */
@media (max-width: 767px) {
    .terms-page-content h1 {
        font-size: 1.8rem;
    }
    
    .terms-page-content p,
    .terms-page-content p span {
        font-size: 1.125rem;
    }
    
    .terms-page-content h2 {
        font-size: 1.25rem;
    }
    
    .terms-page-comment-text {
        font-size: 1.125rem;
    }
    
    .terms-page-comment-title {
        font-size: 1.25rem;
        left: 2rem;
    }
    
    .terms-page-comment-header {
        height: 60px;
    }
    
    .terms-page-container {
        padding: 0 1rem;
    }
    
    .terms-content {
        padding: 0;
    }
    
    .terms-intro {
        padding: 1rem;
    }
    
    .terms-intro-text {
        font-size: 1.125rem;
    }
    
    .terms-article h2 {
        font-size: 1.25rem;
    }
    
    .terms-subsection h3 {
        font-size: 1.125rem;
    }
    
    .terms-subsection {
        padding-left: 0.5rem;
    }
    
    .terms-subsection li {
        font-size: 1.125rem;
    }
    
    .privacy-table {
        margin: 1rem 0;
    }
    
    .privacy-table th,
    .privacy-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .privacy-table th {
        white-space: normal;
        word-break: keep-all;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .terms-page-content h1 {
        font-size: 1.8rem;
    }
    
    .terms-page-content p,
    .terms-page-content p span {
        font-size: 1rem;
    }
    
    .terms-page-comment-text {
        font-size: 1rem;
    }
    
    .terms-page-date {
        margin: 2rem 0 1.5rem 0;
    }
    
    .terms-page-share {
        margin: 2rem 0;
    }
    
    .terms-subsection li {
        font-size: 1rem;
    }
    
    .privacy-table th,
    .privacy-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .terms-page-comment,
    .terms-page-subscribe {
        padding: 1rem;
    }
    
    .terms-page-subscribe-text {
        font-size: 1rem;
    }
    
    .terms-page-subscribe-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}