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

body {
  font-family: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  background: #f8f9fa;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: #2563eb;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  display: inline-block;
  padding: 4px 12px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a5568;
  background: #ffffff;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: #f7fafc;
}

.lang-btn.active {
  background: #2563eb;
  color: #ffffff;
}

/* Main */
.main {
  flex: 1;
  padding: 48px 0;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.hero-links a.primary {
  background: #2563eb;
  color: #ffffff;
}

.hero-links a.primary:hover {
  background: #1d4ed8;
}

.hero-links a.secondary {
  background: #ffffff;
  color: #2563eb;
  border: 1.5px solid #2563eb;
}

.hero-links a.secondary:hover {
  background: #eff6ff;
}

.hero-links a.outline {
  background: #ffffff;
  color: #4a5568;
  border: 1.5px solid #e2e8f0;
}

.hero-links a.outline:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* Legal content */
.legal-page {
  background: #ffffff;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.legal-page .effective-date {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  color: #4a5568;
  margin-bottom: 14px;
}

.legal-page ul, .legal-page ol {
  color: #4a5568;
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: #2563eb;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page strong {
  color: #2d3748;
}

.section-content {
  color: #4a5568;
  margin-bottom: 14px;
}

.section-content ul {
  padding-left: 24px;
  margin: 8px 0;
}

.section-content li {
  margin-bottom: 4px;
}

.legal-page .contact-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 24px;
}

.legal-page .contact-box p {
  margin-bottom: 6px;
}

/* Consent specific */
.consent-summary {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.consent-summary h3 {
  color: #1e40af;
  margin-top: 0;
}

.consent-summary ul {
  color: #1e40af;
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: #a0aec0;
  padding: 32px 0;
  margin-top: auto;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    height: auto;
    padding: 12px 24px;
    gap: 8px;
  }

  .header-right {
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .hero-logo {
    width: 80px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-links {
    flex-direction: column;
    align-items: center;
  }

  .hero-links a {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .legal-page {
    padding: 24px 20px;
  }

  .legal-page h1 {
    font-size: 1.5rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
