/* Common Docs Style - Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 20px;
}

.doc-container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 48px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Styles */
.doc-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid #f1f5f9;
}

.doc-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.doc-header .subtitle {
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
}

.doc-header .company-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 16px;
}

/* Section Styles */
.doc-section {
  margin-bottom: 32px;
}

.doc-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #ec4899;
}

.doc-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  margin: 20px 0 12px 0;
}

.doc-section h4 {
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  margin: 16px 0 10px 0;
}

/* Paragraph Styles */
p {
  margin-bottom: 12px;
  color: #475569;
  text-align: justify;
}

/* List Styles */
ul, ol {
  margin: 12px 0 12px 24px;
  color: #475569;
}

li {
  margin-bottom: 8px;
  padding-left: 4px;
}

ul li::marker {
  color: #ec4899;
}

ol li::marker {
  color: #ec4899;
  font-weight: 600;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
}

.highlight-box.info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.highlight-box.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #334155;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

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

tr:hover td {
  background-color: #f8fafc;
}

/* Definition List */
.def-list {
  margin: 16px 0;
}

.def-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.def-term {
  font-weight: 600;
  color: #334155;
  min-width: 120px;
}

.def-desc {
  color: #64748b;
  flex: 1;
}

/* Contact Info */
.contact-info {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}

.contact-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info h3::before {
  content: "📞";
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.contact-label {
  font-weight: 500;
  color: #64748b;
  min-width: 80px;
}

.contact-value {
  color: #334155;
}

/* Footer */
.doc-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-required {
  background: #fef2f2;
  color: #dc2626;
}

.badge-optional {
  background: #f0fdf4;
  color: #16a34a;
}

/* Indented Content */
.indent-1 {
  margin-left: 20px;
}

.indent-2 {
  margin-left: 40px;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin: 32px 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .doc-container {
    padding: 24px;
    border-radius: 12px;
  }

  .doc-header h1 {
    font-size: 22px;
  }

  .doc-section h2 {
    font-size: 16px;
  }

  table {
    font-size: 13px;
  }

  th, td {
    padding: 10px 12px;
  }

  .def-item {
    flex-direction: column;
    gap: 4px;
  }

  .def-term {
    min-width: auto;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .doc-container {
    box-shadow: none;
    padding: 20px;
  }
}
