/* ===== I-IN HOUSE — สไตล์รวมทั้งเว็บไซต์ ===== */
/* โทนแบรนด์: ดำ + เขียวสว่าง */

:root {
  --brand-black: #000000;
  --brand-green: #00c853;
  --text-light: #f5f5f5;
  --text-muted: #b3b3b3;
  --content-bg: #fafafa;
  --content-text: #1a1a1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sarabun", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--brand-black);
  color: var(--text-light);
}

a {
  color: var(--brand-green);
}

/* ===== Hero (หน้าแรก) ===== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--brand-black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  max-width: 100%;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ลูกศรเลื่อนลง กะพริบเบาๆ ที่ขอบล่างของ hero */
.hero-scroll-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  animation: hero-blink 2s ease-in-out infinite;
}

.hero-scroll-arrow svg {
  width: 100%;
  height: 100%;
  stroke: var(--brand-green);
}

@keyframes hero-blink {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ===== Header bar (หน้านโยบาย) ===== */

.page-header {
  background: var(--brand-black);
  padding: 20px 24px;
  border-bottom: 1px solid #1a1a1a;
}

.page-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 600;
}

.page-header .back-link:hover {
  text-decoration: underline;
}

/* ===== เนื้อหาหลัก (หน้านโยบาย) ===== */

.policy-content {
  background: var(--content-bg);
  color: var(--content-text);
}

.privacy-policy {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px;
  line-height: 1.75;
  font-size: 17px;
}

.privacy-policy h1 {
  font-size: 28px;
  color: var(--brand-green);
  margin-bottom: 4px;
  line-height: 1.3;
}

.privacy-policy .subtitle {
  color: #4a4a4a;
  font-size: 16px;
  margin: 0 0 4px;
}

.privacy-policy .effective {
  color: #6b6b6b;
  font-size: 15px;
  margin: 0 0 28px;
}

.privacy-policy h2 {
  font-size: 20px;
  color: #00994a;
  margin-top: 32px;
  margin-bottom: 10px;
}

.privacy-policy p { margin: 0 0 12px; }
.privacy-policy ul,
.privacy-policy ol { margin: 0 0 12px; padding-left: 24px; }
.privacy-policy li { margin-bottom: 6px; }

.privacy-policy .contact {
  background: #eeeeee;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 28px 28px 8px;
  margin-top: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.privacy-policy .contact .contact-title {
  color: #00994a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.privacy-policy .contact .contact-name {
  color: #1a1a1a;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 20px;
}

.privacy-policy .contact .contact-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.privacy-policy .contact .contact-row .label {
  flex: 0 0 88px;
  color: #767676;
  font-size: 14px;
}

.privacy-policy .contact .contact-row .value {
  color: #2a2a2a;
  font-size: 15px;
  margin: 0;
}

.privacy-policy .contact a {
  color: #00994a;
  text-decoration: none;
}

.privacy-policy .contact a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .privacy-policy .contact {
    padding: 22px 20px 6px;
  }

  .privacy-policy .contact .contact-row {
    gap: 4px;
    flex-direction: column;
    padding: 12px 0;
  }

  .privacy-policy .contact .contact-row .label {
    flex-basis: auto;
  }
}

/* ===== Footer (ทุกหน้า) ===== */

.site-footer {
  background: var(--brand-black);
  color: var(--text-muted);
  padding: 40px 24px 28px;
  text-align: center;
  border-top: 1px solid #1a1a1a;
}

.site-footer .footer-company {
  color: var(--text-light);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 12px;
}

.site-footer .footer-contact {
  margin: 0 0 12px;
  font-size: 15px;
}

.site-footer .footer-contact strong {
  color: var(--text-light);
}

.site-footer .footer-links {
  margin: 0 0 16px;
}

.site-footer .footer-links a {
  color: var(--brand-green);
  text-decoration: none;
  font-size: 15px;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

.site-footer .footer-copyright {
  margin: 0;
  font-size: 13px;
  color: #7a7a7a;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .privacy-policy {
    padding: 32px 18px;
    font-size: 16px;
  }

  .privacy-policy h1 {
    font-size: 24px;
  }

  .site-footer {
    padding: 32px 18px 24px;
  }
}

@media (max-width: 480px) {
  .privacy-policy h1 {
    font-size: 21px;
  }

  .privacy-policy h2 {
    font-size: 18px;
  }
}
