 :root {
    --primary-color: #3C8D99;
    --primary-light: rgba(60, 141, 153, 0.1);
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --background-color: #F8F9FC;
    --white: #FFFFFF;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    padding-bottom: var(--spacing-xl);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding:8px 16px;
    display: flex;
    align-items: center;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    margin-right: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
}

.header-title {
    font-size: 18px;
    font-weight: 500;
    display:none;
    flex-grow: 1;
    /* text-align: center; */
    padding-right: var(--spacing-md); /* Balance the back button */
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: var(--white);
}

.app-logo {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 16px;
    color: var(--primary-color);
}

.app-name {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
}

.page-title {
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
}

/* Content */
.container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.content-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

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

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: var(--spacing-sm);
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: var(--spacing-md) 0 var(--spacing-xs);
}

.section p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.8;
}

.section ul {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.section li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-medium);
    font-size: 15px;
}

.date {
    text-align: right;
    color: var(--text-light);
    font-size: 14px;
    margin-top: var(--spacing-lg);
}

.toc {
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.toc-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.toc-list {
    list-style-type: none;
    padding-left: 0;
}

.toc-item {
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
}

.toc-link {
    color: var(--text-medium);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: color 0.2s;
}

.toc-link:hover, .toc-link:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .content-card {
        padding: var(--spacing-md);
        border-radius: var(--spacing-xs);
    }

    .section-title {
        font-size: 17px;
    }

    .subsection-title {
        font-size: 15px;
    }

    .section p, .section li {
        font-size: 14px;
    }

    .toc {
        padding: var(--spacing-sm);
    }
}


  /* 모바일 디바이스 테두리 */
  .device-wrapper {
    width: 390px; /* 고정 너비 */
    margin: 20px auto;
    border: 12px solid #111;
    border-radius: 36px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    height: 800px;
    overflow: hidden;
    position: relative;
    background-color: white;
  }
  
  /* 모바일 디바이스 상단 노치 */
  .device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background-color: #111;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 1000;
  }
  
  .device-screen {
    height: 100%;
    overflow-y: auto;
    position: relative;
  }
  
  /* 모바일 기기에서는 테두리 제거 (768px 이하의 화면) */
  @media (max-width: 768px) {
    html, body {
      background-color: #f5f5f5;
      display: block;
    }
    
    .device-wrapper {
      margin: 0;
      border: none;
      border-radius: 0;
      box-shadow: none;
      width: 100%;
      max-width: none;
      height: 100vh;
    }
    
    .device-notch {
      display: none;
    }
    .header {
    	padding: var(--spacing-xs) var(--spacing-xs);
    }
    .header-title {
    	display:block;
    }
  }