/* EasyCheck Support Website Styles */
/* Color scheme matches the App: #1f3b2f (dark green), #fffaf0 (cream) */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #fffaf0;
  color: #1f3b2f;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #1f3b2f;
  text-decoration: underline;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
.header {
  background-color: #1f3b2f;
  color: #fffaf0;
  padding: 32px 0;
  text-align: center;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: #fffaf0;
  text-decoration: none;
  display: inline-block;
}

.tagline {
  font-size: 16px;
  opacity: 0.85;
  margin-top: 8px;
}

/* Main Content */
main {
  flex: 1;
  padding: 40px 0;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1f3b2f;
}

.section-desc {
  color: #5d564c;
  margin-bottom: 24px;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid #d6cbb8;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: #7a6f60;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 16px;
  color: #5d564c;
  border-top: 1px solid #e8e0d5;
  margin-top: -1px;
  padding-top: 16px;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 12px 0;
  padding-left: 24px;
}

.faq-answer li {
  margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
  background: #fff;
  border: 1.5px solid #d6cbb8;
  border-radius: 16px;
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f3b2f;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1.5px solid #d6cbb8;
  border-radius: 8px;
  background: #fffaf0;
  color: #1f3b2f;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1f3b2f;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a09080;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fffaf0;
  background-color: #1f3b2f;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Policy Navigation */
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  background: #fff;
  border: 1.5px solid #d6cbb8;
  border-radius: 12px;
}

.policy-nav-item {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  color: #5d564c;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.policy-nav-item:hover {
  background: rgba(31, 59, 47, 0.05);
  color: #1f3b2f;
}

.policy-nav-item.active {
  background: #1f3b2f;
  color: #fffaf0;
}

/* Policy Content */
.policy-content {
  display: none;
}

.policy-content.active {
  display: block;
}

/* Privacy Page */
.privacy-section {
  background: #fff;
  border: 1.5px solid #d6cbb8;
  border-radius: 16px;
  padding: 32px;
}

.updated-date {
  color: #7a6f60;
  font-size: 14px;
  margin-bottom: 24px;
}

.privacy-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #1f3b2f;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: #3d5347;
}

.privacy-content p {
  margin-bottom: 12px;
  color: #5d564c;
}

.privacy-content ul {
  margin: 12px 0;
  padding-left: 24px;
  color: #5d564c;
}

.privacy-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background-color: #1f3b2f;
  color: #fffaf0;
  padding: 24px 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fffaf0;
  text-decoration: none;
  opacity: 0.85;
}

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

.footer-links .divider {
  margin: 0 12px;
  opacity: 0.5;
}

.copyright {
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
  .header {
    padding: 24px 0;
  }

  .logo {
    font-size: 28px;
  }

  main {
    padding: 24px 0;
  }

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

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 14px;
    font-size: 14px;
  }

  .contact-form {
    padding: 20px;
  }

  .privacy-section {
    padding: 24px 20px;
  }

  .privacy-content h3 {
    font-size: 16px;
  }

  .privacy-content h4 {
    font-size: 14px;
  }
}
