/* ══════════════════════════════════════════════════════════════════════════════
   pages.css — shared styles for static footer pages
   (FAQ, About, Feedback, Privacy Policy, Terms & Conditions)
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:      #0f1623;
  --surface: #161e2e;
  --surface2:#1c2538;
  --border:  #2a3650;
  --text:    #e8eaf0;
  --muted:   #6b7a99;
  --accent:  #e8a838;
  --green:   #4caf7d;
  --danger:  #e85c38;
  --radius:  8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Page header ── */
.page-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.page-header-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
}
.page-header-logo span { color: var(--text); font-style: italic; }
.page-header-back {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 14px;
  transition: border-color 0.15s, color 0.15s;
}
.page-header-back:hover { border-color: var(--accent); color: var(--accent); }

/* ── Main content ── */
.page-main {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}
.page-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 40px;
}
.page-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── Section headings ── */
.page-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  margin-top: 36px;
}
.page-section-title:first-of-type { margin-top: 0; }

p { margin-bottom: 14px; color: var(--text); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 22px; margin-bottom: 14px; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }

/* ── FAQ accordion ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--surface);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--surface2); }
.faq-chevron {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(90deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .faq-answer { display: block; }

/* ── Feedback form ── */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.form-input, .form-textarea, .form-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-select option { background: var(--surface2); }
.form-submit {
  background: var(--accent);
  color: #0f1623;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  align-self: flex-start;
  min-width: 140px;
}
.form-submit:hover { opacity: 0.88; }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: none;
}
.form-message.success { background: var(--green)22; border: 1px solid var(--green); color: var(--green); display: block; }
.form-message.error   { background: var(--danger)22; border: 1px solid var(--danger); color: var(--danger); display: block; }

/* ── About cards ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.about-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.about-card-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.about-card-text { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* ── Page footer (shared across all pages) ── */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
}
.page-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 10px;
}
.page-footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.page-footer-links a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .page-main { padding: 32px 16px 48px; }
  .page-title { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
