/**
 * 약관 페이지 스타일
 * 이용약관, 개인정보처리방침, 이메일무단수집거부 등
 */

/* ========================================
   히어로 섹션
======================================== */
.terms-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
}

.terms-hero-detail {
    padding-bottom: 40px;
}

.terms-hero .container {
    max-width: 800px;
}

.terms-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.terms-back-link:hover {
    color: #00D4AA;
}

.terms-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50px;
    color: #00D4AA;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.terms-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.terms-hero p {
    font-size: 18px;
    color: #b0b0b0;
    line-height: 1.7;
}

.terms-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.terms-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
}

.terms-meta i {
    color: #00D4AA;
}

/* ========================================
   약관 선택 페이지
======================================== */
.terms-selection {
    padding: 80px 0;
    background: #f8f9fa;
}

.terms-intro {
    text-align: center;
    margin-bottom: 48px;
}

.terms-intro h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.terms-intro p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.terms-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.terms-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.terms-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.terms-card:hover {
    border-color: #00D4AA;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.15);
}

.terms-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 180, 216, 0.1));
    border-radius: 12px;
}

.terms-card-icon i {
    font-size: 24px;
    color: #00D4AA;
}

.terms-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.terms-card-content p {
    flex: 1;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.terms-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #00D4AA;
    transition: gap 0.2s;
    margin-top: auto;
}

.terms-card:hover .terms-card-link {
    gap: 10px;
}

/* 특별약관 및 기타 정책 링크 */
.terms-other-links {
    padding: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    margin-top: 24px;
}

.terms-other-links:first-of-type {
    margin-top: 0;
}

.terms-other-links h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00D4AA;
    display: inline-block;
}

.terms-other-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms-other-links li {
    flex: 0 0 auto;
}

.terms-other-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.terms-other-links a:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: #00D4AA;
    color: #00D4AA;
}

.terms-other-links a i {
    font-size: 16px;
    color: #00D4AA;
}

/* ========================================
   약관 내용 섹션
======================================== */
.terms-content {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.terms-wrapper {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    position: relative;
}

.terms-wrapper-center {
    display: block;
}

/* 목차 사이드바 */
.terms-toc {
    flex-shrink: 0;
    width: 260px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
}

.terms-toc h4 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.terms-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms-toc li {
    margin-bottom: 4px;
}

.terms-toc a {
    display: block;
    padding: 10px 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.terms-toc a:hover {
    background: #f5f5f5;
    color: #1a1a2e;
}

.terms-toc a.active {
    background: rgba(0, 212, 170, 0.1);
    color: #00D4AA;
    font-weight: 500;
}

/* 약관 본문 */
.terms-body {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.terms-body-full {
    max-width: 100%;
}

.terms-intro-box {
    padding: 24px;
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    margin-bottom: 40px;
}

.terms-intro-box p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.terms-chapter {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e0e0e0;
}

.terms-chapter:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-chapter > h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #00D4AA;
    display: inline-block;
}

.terms-article {
    margin-bottom: 32px;
}

.terms-article:last-child {
    margin-bottom: 0;
}

.terms-article h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.terms-article h4 {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 24px 0 12px;
}

.terms-article p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-article ol,
.terms-article ul {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.terms-article li {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}

.terms-article li strong {
    color: #1a1a2e;
}

.terms-article ul li {
    list-style-type: disc;
}

.terms-article ol > li > ul {
    margin-top: 8px;
}

/* 테이블 */
.terms-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.terms-table th,
.terms-table td {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.terms-table th {
    background: rgba(0, 212, 170, 0.1);
    color: #1a1a2e;
    font-weight: 600;
}

.terms-table td {
    color: #555;
    background: #fff;
}

.terms-table tr:nth-child(even) td {
    background: #fafafa;
}

/* 정보 박스 */
.terms-info-box {
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.terms-info-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #00D4AA;
    margin: 0 0 16px 0;
}

.terms-info-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.terms-info-box li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #555;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.terms-info-box li strong {
    color: #1a1a2e;
    font-weight: 600;
    min-width: 60px;
    flex-shrink: 0;
}

.terms-info-box li strong::after {
    content: none;
}

/* 연락처 목록 */
.terms-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms-contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.terms-contact-list li strong {
    font-size: 15px;
    color: #1a1a2e;
}

.terms-contact-list li span {
    font-size: 14px;
    color: #888;
}

/* ========================================
   이메일 무단수집거부 페이지
======================================== */
.email-policy-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.email-policy-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.2));
    border-radius: 50%;
    margin: 0 auto 32px;
}

.email-policy-icon i {
    font-size: 48px;
    color: #dc3545;
}

.email-policy-container h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 32px;
}

.email-policy-content {
    text-align: left;
}

.email-policy-content > p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.email-policy-law {
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.email-policy-law h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #00D4AA;
    margin-bottom: 20px;
}

.law-content {
    text-align: left;
}

.law-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.law-article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.law-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.law-article strong {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.law-article ol,
.law-article ul {
    margin: 0;
    padding-left: 20px;
}

.law-article li {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 6px;
}

.email-policy-notice {
    padding: 24px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: left;
}

.email-policy-notice h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #e6a700;
    margin-bottom: 16px;
}

.email-policy-notice ul {
    margin: 0;
    padding-left: 20px;
}

.email-policy-notice li {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.email-policy-footer {
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.email-policy-footer p {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.email-policy-footer p strong {
    color: #1a1a2e;
    font-size: 16px;
}

/* ========================================
   반응형
======================================== */
@media (max-width: 1024px) {
    .terms-wrapper {
        flex-direction: column;
    }

    .terms-toc {
        position: static;
        width: 100%;
        max-height: none;
        margin-bottom: 32px;
    }

    .terms-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .terms-toc li {
        margin-bottom: 0;
    }

    .terms-toc a {
        padding: 8px 16px;
        background: #f5f5f5;
        border-radius: 20px;
    }

    .terms-body {
        padding: 32px;
    }

    .terms-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 100px 0 40px;
    }

    .terms-hero h1 {
        font-size: 32px;
    }

    .terms-hero p {
        font-size: 16px;
    }

    .terms-meta {
        flex-direction: column;
        gap: 12px;
    }

    .terms-selection,
    .terms-content {
        padding: 48px 0;
    }

    .terms-intro h2 {
        font-size: 26px;
    }

    .terms-body {
        padding: 24px;
    }

    .terms-chapter > h2 {
        font-size: 20px;
    }

    .terms-article h3 {
        font-size: 16px;
    }

    .terms-info-box ul {
        grid-template-columns: 1fr;
    }

    .terms-other-links {
        padding: 24px;
    }

    .terms-other-links ul {
        gap: 8px;
    }

    .terms-other-links a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .email-policy-container h2 {
        font-size: 26px;
    }
}
