/* ═══════════════════════════════════════════════════════════════
   Legal, Pricing & Support Pages — Shared Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Shell ─────────────────────────────────────────────── */
.lp-wrap  { max-width: 800px;  margin: 0 auto; padding: 110px 40px 80px; }
.lp-wide  { max-width: 1100px; margin: 0 auto; padding: 110px 40px 80px; }

/* ── Page Header ────────────────────────────────────────────── */
.lp-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(100,140,255,0.1);
}
.lp-eyebrow {
  font-size: 0.73rem; font-weight: 700; color: #6488ff;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px;
}
.lp-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800;
  color: #e0e8ff; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px;
}
.lp-sub  { font-size: 0.92rem; color: #7a9ec0; line-height: 1.6; }
.lp-date { font-size: 0.77rem; color: #3a5a78; margin-top: 10px; }

/* ── Section Content ────────────────────────────────────────── */
.lp-content h2 {
  font-size: 1.08rem; font-weight: 700; color: #e0e8ff;
  margin-top: 44px; margin-bottom: 14px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(100,140,255,0.09);
}
.lp-content h3 { font-size: 0.96rem; font-weight: 600; color: #c0d8f0; margin-top: 24px; margin-bottom: 10px; }
.lp-content p  { font-size: 0.91rem; color: #7a9ec0; line-height: 1.78; margin-bottom: 16px; }
.lp-content ul, .lp-content ol { padding-left: 22px; margin-bottom: 16px; }
.lp-content li { font-size: 0.91rem; color: #7a9ec0; line-height: 1.72; margin-bottom: 7px; }
.lp-content a  { color: #6488ff; text-decoration: underline; text-underline-offset: 3px; }
.lp-content a:hover { color: #88aaff; }
.lp-content strong { color: #a8c8e8; font-weight: 600; }

/* ── Info Box ───────────────────────────────────────────────── */
.lp-box {
  background: rgba(100,140,255,0.07); border: 1px solid rgba(100,140,255,0.18);
  border-radius: 12px; padding: 18px 22px; margin: 24px 0;
}
.lp-box p { margin: 0; font-size: 0.88rem; color: #8aaecc; }
.lp-box-warn { background: rgba(255,160,60,0.06); border-color: rgba(255,160,60,0.2); }
.lp-box-warn p { color: #c8a060; }

/* ── Contact Page ───────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 48px; margin-top: 16px; align-items: start;
}
.contact-info-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(100,140,255,0.15);
  border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 22px;
}
.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 38px; height: 38px; background: rgba(100,140,255,0.12);
  border: 1px solid rgba(100,140,255,0.2); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.ci-label { font-size: 0.7rem; font-weight: 700; color: #3a5a78; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.ci-value { font-size: 0.88rem; color: #8aaecc; }
.ci-value a { color: #6488ff; text-decoration: none; }
.ci-value a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-label { font-size: 0.74rem; font-weight: 600; color: #5a7a9a; text-transform: uppercase; letter-spacing: 0.07em; }
.cf-input, .cf-textarea, .cf-select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(100,140,255,0.18);
  border-radius: 9px; color: #c8e0ff; font-size: 0.88rem; font-family: inherit;
  padding: 10px 14px; outline: none; transition: border-color 0.2s, background 0.2s; width: 100%;
}
.cf-textarea { resize: vertical; min-height: 140px; }
.cf-input:focus, .cf-textarea:focus, .cf-select:focus {
  border-color: rgba(100,140,255,0.5); background: rgba(100,140,255,0.06);
}
.cf-input::placeholder, .cf-textarea::placeholder { color: #304a65; }
.cf-select option { background: #0d0d24; color: #c8e0ff; }
.cf-btn {
  padding: 12px 28px; background: linear-gradient(135deg, #3a5acc, #6488ff);
  border: none; border-radius: 10px; color: #fff; font-size: 0.9rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 6px 24px rgba(100,140,255,0.25); align-self: flex-start;
}
.cf-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cf-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.cf-feedback { font-size: 0.84rem; padding: 10px 14px; border-radius: 8px; display: none; }
.cf-feedback.success { display: block; background: rgba(76,221,122,0.1); border: 1px solid rgba(76,221,122,0.25); color: #4cdd7a; }
.cf-feedback.error   { display: block; background: rgba(255,80,80,0.08);  border: 1px solid rgba(255,80,80,0.25);  color: #ff9898; }

/* ── Pricing Page FAQ ───────────────────────────────────────── */
.pricing-page-faq { max-width: 760px; margin: 60px auto 0; padding: 0 0 80px; }
.pricing-page-faq h2 { font-size: 1.6rem; font-weight: 800; color: #e0e8ff; letter-spacing: -0.03em; margin-bottom: 32px; }

/* ── Changelog / Support Page ───────────────────────────────── */
.cl-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(100,140,255,0.1); margin-bottom: 44px;
}
.cl-tab {
  padding: 11px 22px; background: none; border: none;
  border-bottom: 2px solid transparent; color: #4e6e90;
  font-size: 0.88rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: color 0.15s, border-color 0.15s; margin-bottom: -1px;
}
.cl-tab:hover { color: #9ab8d8; }
.cl-tab.active { color: #c8e0ff; border-bottom-color: #6488ff; }

/* Changelog entries */
.cl-list { display: flex; flex-direction: column; }
.cl-entry {
  display: grid; grid-template-columns: 88px 1fr;
  gap: 28px; padding: 28px 0;
  border-bottom: 1px solid rgba(100,140,255,0.07);
}
.cl-entry:last-child { border-bottom: none; }
.cl-entry-left { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.cl-entry-date { font-size: 0.77rem; color: #3a5a78; font-weight: 500; }
.cl-entry-version {
  font-size: 0.66rem; font-weight: 700; color: #6488ff;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cl-entry-right {}
.cl-entry-title { font-size: 1.02rem; font-weight: 700; color: #d0e8ff; margin-bottom: 8px; }
.cl-entry-body  { font-size: 0.87rem; color: #7a9ec0; line-height: 1.7; }
.cl-entry-body ul { padding-left: 18px; margin-top: 8px; }
.cl-entry-body li { margin-bottom: 5px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.cl-tag {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 20px;
}
.cl-tag-new     { background: rgba(76,221,122,0.1);  border: 1px solid rgba(76,221,122,0.22);  color: #4cdd7a; }
.cl-tag-fix     { background: rgba(255,160,60,0.1);  border: 1px solid rgba(255,160,60,0.22);  color: #ffb060; }
.cl-tag-improve { background: rgba(100,140,255,0.1); border: 1px solid rgba(100,140,255,0.22); color: #8ab8ff; }

/* FAQ */
.faq-search-wrap { position: relative; margin-bottom: 20px; }
.faq-search-wrap svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: #3a5a78; pointer-events: none; width:16px;height:16px;
}
.faq-search {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(100,140,255,0.18);
  border-radius: 10px; color: #c8e0ff; font-size: 0.9rem; font-family: inherit;
  padding: 11px 14px 11px 42px; outline: none; transition: border-color 0.2s, background 0.2s;
}
.faq-search:focus { border-color: rgba(100,140,255,0.45); background: rgba(100,140,255,0.06); }
.faq-search::placeholder { color: #2e4a62; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid rgba(100,140,255,0.1); border-radius: 12px;
  overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(100,140,255,0.25); }
.faq-q {
  width: 100%; background: rgba(255,255,255,0.025); border: none;
  padding: 15px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #c8e0ff;
  font-family: inherit; text-align: left; transition: background 0.15s;
}
.faq-q:hover { background: rgba(100,140,255,0.06); }
.faq-q svg { flex-shrink: 0; color: #3a5a78; transition: transform 0.2s; width:16px; height:16px; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 14px 20px 18px;
  font-size: 0.88rem; color: #7a9ec0; line-height: 1.72;
  border-top: 1px solid rgba(100,140,255,0.07);
}
.faq-item.open .faq-a { display: block; }
.faq-empty { font-size: 0.88rem; color: #3a5a78; padding: 32px 0; text-align: center; }

/* Support / Q&A */
.qa-section-title {
  font-size: 0.8rem; font-weight: 700; color: #5a7a9a;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.qa-ask-box {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(100,140,255,0.15);
  border-radius: 16px; padding: 26px; margin-bottom: 36px;
}
.qa-ask-title { font-size: 0.95rem; font-weight: 700; color: #c8e0ff; margin-bottom: 18px; }
.qa-char-hint { font-size: 0.74rem; color: #3a5a78; text-align: right; margin-top: 4px; }

.qa-item {
  border: 1px solid rgba(100,140,255,0.1); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; background: rgba(255,255,255,0.015);
}
.qa-item-header { padding: 16px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.qa-item-q    { font-size: 0.9rem; font-weight: 600; color: #c8e0ff; margin-bottom: 4px; }
.qa-item-meta { font-size: 0.74rem; color: #3a5a78; }
.qa-status {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 9px; border-radius: 20px; flex-shrink: 0; white-space: nowrap;
}
.qa-status-pending  { background: rgba(255,160,60,0.1);  border: 1px solid rgba(255,160,60,0.22);  color: #e0a060; }
.qa-status-answered { background: rgba(76,221,122,0.1);  border: 1px solid rgba(76,221,122,0.22);  color: #4cdd7a; }
.qa-answer-block {
  padding: 14px 20px 18px; font-size: 0.88rem; color: #7a9ec0; line-height: 1.7;
  border-top: 1px solid rgba(100,140,255,0.07); background: rgba(100,140,255,0.03);
}
.qa-answer-label { font-size: 0.68rem; font-weight: 700; color: #6488ff; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }

/* Admin controls */
.admin-answer-form {
  padding: 14px 20px 18px; border-top: 1px solid rgba(100,140,255,0.07);
  background: rgba(100,140,255,0.03);
}
.admin-answer-ta {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(100,140,255,0.18);
  border-radius: 8px; color: #c8e0ff; font-size: 0.85rem; font-family: inherit;
  padding: 9px 12px; resize: vertical; min-height: 80px; outline: none; margin-bottom: 10px;
  transition: border-color 0.2s;
}
.admin-answer-ta:focus { border-color: rgba(100,140,255,0.45); }
.admin-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-btn {
  padding: 7px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.admin-btn-save   { background: rgba(100,140,255,0.14); border: 1px solid rgba(100,140,255,0.35); color: #a0c4ff; }
.admin-btn-save:hover   { background: rgba(100,140,255,0.25); color: #c8e0ff; }
.admin-btn-delete { background: rgba(255,60,60,0.08); border: 1px solid rgba(255,60,60,0.2); color: rgba(255,120,120,0.8); }
.admin-btn-delete:hover { background: rgba(255,60,60,0.16); color: #ff9898; }
.admin-faq-toggle { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: #5a7a9a; cursor: pointer; user-select: none; }
.admin-faq-toggle input { accent-color: #6488ff; width: 14px; height: 14px; cursor: pointer; }

.admin-panel-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.admin-badge {
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(255,180,0,0.1); border: 1px solid rgba(255,180,0,0.22); color: #e0c060;
}

/* Auth gate */
.auth-gate {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(100,140,255,0.15);
  border-radius: 16px; padding: 36px; text-align: center; margin-bottom: 28px;
}
.auth-gate p { font-size: 0.9rem; color: #7a9ec0; margin-bottom: 18px; }

/* Divider */
.lp-divider { height: 1px; background: rgba(100,140,255,0.08); margin: 36px 0; }

/* Empty state */
.lp-empty { font-size: 0.88rem; color: #3a5a78; padding: 32px 0; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .lp-wrap, .lp-wide { padding: 100px 20px 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cl-entry { grid-template-columns: 1fr; gap: 8px; }
  .cf-row { grid-template-columns: 1fr; }
}
