/* ==========================================================================
   Instant Gamers - Legal & Support Pages Styling
   ========================================================================== */

.page-header {
  background: linear-gradient(130deg, var(--color-navy-900) 0%, var(--color-navy-800) 60%, var(--color-navy-700) 100%);
  color: #ffffff;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 650px;
  line-height: 1.6;
}

.legal-content-body {
  padding: 60px 0;
  background: var(--color-surface-bg);
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin: 0 auto;
}

.legal-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 32px 0 14px;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.legal-card ul, .legal-card ol {
  margin: 14px 0 20px 24px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-card li {
  margin-bottom: 8px;
}

.compliance-notice {
  background: #fff8f5;
  border: 1px solid #ffd8cc;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
}

.compliance-notice h3 {
  font-size: 16px;
  font-weight: 800;
  color: #c93b12;
  margin-bottom: 8px;
}

.compliance-notice p {
  color: #633224;
  margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: #c5d8ed;
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-muted);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 24px;
}

/* --- Contact Directory --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface-bg);
  border: 1px solid var(--color-border-subtle);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(12, 113, 244, 0.1);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 42px;
}

.channel-info b {
  display: block;
  font-size: 14.5px;
  color: var(--color-text-main);
}

.channel-info span {
  font-size: 13px;
  color: var(--color-text-muted);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 28px 20px;
  }
}
