/* ============================================
   GENERAL-PAGES.CSS - CharmsBot
   Shared styles for changelog, contact, and legal pages
   ============================================ */

/* ===== ACCORDION (Changelog) ===== */
.acc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.acc-item {
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(0, 212, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px;
  background: transparent;
  border: 0;
  color: #00d4ff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.acc-btn .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 999px;
}

.chev {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.10);
  display: grid;
  place-items: center;
  transition: transform .15s ease;
  flex: 0 0 auto;
}

.chev svg {
  width: 16px;
  height: 16px;
  fill: #00d4ff;
}

.acc-item[data-open="true"] .chev {
  transform: rotate(180deg);
}

.acc-panel {
  display: none;
  padding: 0 12px 12px;
}

.acc-item[data-open="true"] .acc-panel {
  display: block;
}

.frame {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  height: 420px;
}

.hint {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-align: center;
}

/* ===== KEY-VALUE PAIRS (Contact) ===== */
.kv {
  margin: 8px 0;
  color: #c4c4c4;
}

.kv strong {
  color: rgba(255, 255, 255, 0.90);
}

/* ===== SUBNAV (Legal / Terms / Privacy) ===== */
.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 28px 0;
}

.subnav a {
  text-decoration: none;
  background: rgba(0, 212, 255, 0.10);
  color: #00d4ff;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.95em;
  border: 1px solid rgba(0, 212, 255, 0.25);
  transition: transform .08s ease, background .08s ease;
}

.subnav a:hover {
  transform: translateY(-1px);
  background: rgba(0, 212, 255, 0.16);
}

/* ===== LINKS ===== */
a.link {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 700;
}

a.link:hover {
  text-decoration: underline;
}

/* ===== DIVIDER ===== */
.divider,
hr.divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 18px 0;
}

/* ===== FOOTER LINKS ===== */
.footer-link {
  color: #ffd700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #ffed4e;
  text-decoration: underline;
}

/* ===== WRAP CONTAINER (Changelog specific) ===== */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .45);
  padding: 34px 26px 30px;
  backdrop-filter: blur(10px);
}

/* ===== ACCORDION (Terms / Privacy) ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.accordion .acc-item {
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}

.accordion .acc-item[data-open="true"] {
  border-color: rgba(73,166,255,0.30);
}

.accordion .acc-btn {
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
  padding: 15px 18px;
  background: transparent;
  color: rgba(255,255,255,0.88);
  font-size: 1em;
  font-weight: 700;
  transition: background .1s ease, color .1s ease;
  display: block;
}

.accordion .acc-btn:hover {
  background: rgba(255,255,255,0.04);
}

.accordion .acc-item[data-open="true"] .acc-btn {
  color: #49a6ff;
  background: rgba(73,166,255,0.06);
}

.accordion .acc-panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.accordion .acc-item[data-open="true"] .acc-panel {
  display: block;
}

.acc-content {
  padding: 16px 20px 20px;
  color: rgba(232,238,252,0.84);
  line-height: 1.65;
  font-size: 0.95em;
}

.acc-content p  { margin-bottom: 10px; color: rgba(232,238,252,0.84); }
.acc-content li { color: rgba(232,238,252,0.84); margin: 5px 0; }
.acc-content ul { padding-left: 20px; margin-bottom: 10px; }
.acc-content code {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 2px 6px;
  border-radius: 6px;
  color: #d7e6ff;
  font-size: 0.9em;
  white-space: nowrap;
}

/* ===== INTRO TEXT (Terms / Privacy) ===== */
.intro-text {
  color: rgba(232,238,252,0.80);
  line-height: 1.7;
  font-size: 0.95em;
  margin-bottom: 4px;
}

/* ===== SUBNAV ACTIVE STATE ===== */
.subnav a.active,
.subnav a[aria-current="page"] {
  background: rgba(0,212,255,0.18);
  border-color: rgba(0,212,255,0.40);
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .acc-btn {
    font-size: 18px;
    padding: 14px;
  }

  .wrap {
    padding: 26px 14px 20px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 26px 14px 20px;
  }
}