/* TookAndCook FAQ Styles */

.faq-container {
  max-width: 900px;
}

.faq-container .legal-content {
  padding: 48px;
}

.faq-container h1 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-container h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.faq-container h2:first-of-type {
  margin-top: 0;
}

/* FAQ Item */
.faq-item {
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.1);
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: #f3f4f6;
}

.faq-item.open .faq-question {
  background: var(--primary);
  color: white;
}

/* FAQ Icon */
.faq-icon {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: white;
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: white;
}

.faq-item.open .faq-answer {
  max-height: 800px;
  padding: 20px;
}

.faq-answer p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 12px 0;
  padding-left: 24px;
}

.faq-answer ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-answer ul li strong {
  color: var(--text-primary);
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* FAQ Table */
.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.faq-table th,
.faq-table td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.faq-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.faq-table th:first-child {
  text-align: left;
}

.faq-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.faq-table tbody tr:hover {
  background: #f3f4f6;
}

/* Back Link */
.faq-container .back-link {
  margin-top: 48px;
  text-align: center;
}

.faq-container .back-link a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.faq-container .back-link a:hover {
  background: #38A169;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-container .legal-content {
    padding: 24px 16px;
  }
  
  .faq-container h1 {
    font-size: 28px;
    margin-bottom: 32px;
  }
  
  .faq-container h2 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 16px;
  }
  
  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .faq-item.open .faq-answer {
    padding: 16px;
  }
  
  .faq-table {
    font-size: 12px;
  }
  
  .faq-table th,
  .faq-table td {
    padding: 8px 10px;
  }
}

