/* Content Page Styling for LottoFlick */

:root {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --blue: #45b7d1;
  --dark: #2d3436;
  --success: #26de81;
  --warning: #fed330;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 20px;
  line-height: 1.8;
  color: var(--dark);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.header {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

.logo {
  font-family: "Black Han Sans", sans-serif;
  font-size: 3rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 400;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .1);
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), #ee5a5a);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(255, 107, 107, .3);
}

.nav a:hover {
  transform: translateY(-3px);
}

.nav a.active {
  background: linear-gradient(135deg, #a66cff, #8a5cf6);
}

.main-content {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
  min-height: 400px;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.2rem;
  color: #999;
}

/* Dynamic Content Styles */
.content-title {
  font-family: "Black Han Sans", sans-serif;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 400;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .1);
}

.content-description {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 600;
}

.content-section {
  margin: 40px 0;
}

.section-title {
  font-family: "Black Han Sans", sans-serif;
  font-size: 1.8rem;
  color: var(--dark);
  margin: 40px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--blue);
  font-weight: 400;
  letter-spacing: -0.5px;
}

.section-content h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin: 25px 0 15px 0;
  font-weight: 700;
}

.section-content p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  line-height: 1.9;
}

.section-content ul,
.section-content ol {
  margin: 15px 0 15px 25px;
}

.section-content li {
  margin: 10px 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Info Boxes */
.formula-box {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  padding: 30px;
  border-radius: 16px;
  margin: 25px 0;
  text-align: center;
  border: 2px solid var(--blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.formula {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin: 15px 0;
  font-family: monospace;
}

.info-box {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  padding: 25px;
  border-left: 6px solid #3b82f6;
  margin: 25px 0;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.info-box strong {
  font-size: 1.25rem;
  color: #1e40af;
  display: block;
  margin-bottom: 15px;
}

.warning-box {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  padding: 25px;
  border-left: 6px solid #fc5c65;
  margin: 25px 0;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.warning-box strong {
  font-size: 1.25rem;
  color: #991b1b;
  display: block;
  margin-bottom: 15px;
}

.success-box {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  padding: 25px;
  border-left: 6px solid var(--success);
  margin: 25px 0;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.success-box strong {
  font-size: 1.25rem;
  color: #059669;
  display: block;
  margin-bottom: 15px;
}

.highlight {
  background: linear-gradient(135deg, #fff9e6, #fff3cd);
  padding: 25px;
  border-left: 6px solid var(--warning);
  margin: 25px 0;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.highlight strong {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
  border: 2px solid #dee2e6;
}

th {
  background: linear-gradient(135deg, var(--blue), #3aa3c2);
  color: white;
  padding: 18px;
  font-weight: 700;
  font-size: 1.05rem;
}

td {
  padding: 18px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

tr:hover {
  background: #f8f9fa;
}

/* Global Disclaimer Footer */
.legal-footer {
  margin-top: 50px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 2px solid rgba(69, 183, 209, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}

.legal-title {
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.legal-body {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.legal-links-label {
  color: #6b7280;
  font-weight: 800;
}

.legal-links a {
  color: #2563eb;
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal-sep {
  color: #9ca3af;
}

/* Responsive */
@media(max-width:768px) {
  .main-content {
    padding: 30px 20px;
  }

  .content-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .formula {
    font-size: 1.4rem;
  }

  .nav {
    gap: 8px;
  }

  .nav a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
