:root {
    --primary-color: #3C8D99;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-main: #FFFFFF;
    --bg-secondary: #F8F9FF;
    --bg-body: #F5F5F5;
    --border-color: #E6E6E6;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --corner-radius: 12px;
      --white: #FFFFFF;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
}


* {
    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(--bg-body);
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.wrapper {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 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 */
}


/* Main container */
.container {
    flex: 1;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* Logo section */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    padding-top: 12px;
}

.logo {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    position: relative;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    position: relative;
}

.logo-icon::before, .logo-icon::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 2px;
    background: var(--primary-color);
    left: 15%;
}

.logo-icon::before {
    top: 30%;
}

.logo-icon::after {
    top: 60%;
}

.tagline {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 8px;
    text-align: center;
}

.title {
    font-size: 26px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

/* Content area */
.content {
    background-color: var(--bg-main);
    border-radius: var(--corner-radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

/* Sections */
.section {
    margin-bottom: 40px;
}

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

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

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

.subsection-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.section p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.section ul, .section ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.section li {
    margin-bottom: 8px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-secondary);
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .content {
        padding: 24px 20px;
        border-radius: 8px;
    }

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

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

    th, td {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px 16px 24px;
    }

    .content {
        padding: 20px 16px;
    }


    .title {
        font-size: 22px;
    }
}



  /* 모바일 디바이스 테두리 */
  .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;
    }
  }