/* 
  Clock In & Out Website - Page Styles
  Shared styles for FAQ, Privacy Policy, and Terms of Service pages
*/

/* Page Header */
.page-header {
  background: linear-gradient(120deg, #fffbee, #fff9e0);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255,240,180,0.3) 0%, rgba(255,240,180,0) 70%);
}

.page-header h1 {
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  position: relative;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  position: relative;
}

/* FAQ Styles */
.faq {
  padding: 60px 0;
  background: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  background-color: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.faq-item.active {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 251, 238, 0.5));
  transition: background 0.3s ease;
}

.faq-item.active .faq-question {
  background: linear-gradient(to right, rgba(255, 251, 238, 0.7), rgba(255, 240, 180, 0.3));
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
  flex: 1;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
}

.faq-answer p {
  padding: 0 0 20px;
  margin: 0;
  line-height: 1.6;
  color: var(--text-light);
}

/* Legal Content Styles */
.legal-content {
  padding: 60px 0;
  background: #fff;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.policy-section h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin: 20px 0 10px;
}

.policy-section p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-color);
}

.policy-section ul, .policy-section ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.policy-section li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-color);
}

.policy-section strong {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Glass Effect Elements for FAQ */
.glass-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  color: var(--primary-dark);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 0;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
  
  .policy-section h2 {
    font-size: 1.6rem;
  }
  
  .policy-section h3 {
    font-size: 1.2rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .policy-section h2 {
    font-size: 1.4rem;
  }
  
  .policy-section {
    margin-bottom: 30px;
    padding-bottom: 15px;
  }
} 