/* =========================================================================
   Kitavia — Shared styles for utility pages
   (privacy, terms, support, delete-account, download)

   Loaded together with styles.css, which already provides design tokens
   (:root custom properties), the warm body background, Nunito typography,
   .container, .btn, .store-badge and other base components. This file only
   adds the components specific to document-style utility pages, so the
   whole site stays visually consistent with a single source of truth for
   colors, radii and shadows.
   Sections:
     1. Minimal top bar (no sticky/scroll JS — these are static pages)
     2. Doc shell + card
     3. Doc header (kicker, title, meta, language note)
     4. Bilingual section divider
     5. Section typography (h2/h3/p/ul)
     6. Alert box (delete-account warning)
     7. Steps box (dashed, numbered)
     8. Contact cards (support page)
     9. FAQ accordion (native <details>, no JS required)
     10. Download splash page
     11. Responsive
   ========================================================================= */

/* ============================ 1. TOP BAR ================================ */
.doc-topbar {
  padding-block: 18px;
  border-bottom: 1px solid var(--cream-200);
}
.doc-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--r-btn);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.doc-back:hover { color: var(--walnut-900); background: var(--cream-100); }
.doc-back svg { flex: none; }

/* ============================ 2. DOC SHELL + CARD ======================= */
.doc-shell {
  padding-block: clamp(32px, 5vw, 64px);
}
.doc-card {
  max-width: 820px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-200);
  padding: clamp(24px, 5vw, 52px);
}

/* ============================ 3. DOC HEADER ============================= */
.doc-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-200);
}
.doc-head h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  max-width: none;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 6px;
}
.doc-lang-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ============================ 4. BILINGUAL DIVIDER ======================= */
.lang-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amberwood-600);
  background: var(--cream-100);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.lang-divider {
  border: none;
  border-top: 1px dashed var(--sand-300);
  margin: 36px 0 28px;
}

/* ============================ 5. SECTION TYPOGRAPHY ====================== */
.doc-section { margin-bottom: 26px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-section h2 {
  font-size: 1.15rem;
  color: var(--walnut-900);
  margin-bottom: 10px;
}
.doc-section h3 {
  font-size: 1rem;
  color: var(--walnut-800);
  margin: 16px 0 8px;
}
.doc-section p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 680px;
}
.doc-section ul {
  margin: 0 0 12px;
  max-width: 680px;
}
.doc-section li {
  position: relative;
  padding-left: 20px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.doc-section li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amberwood-500);
}
.doc-section a { color: var(--amberwood-600); font-weight: 700; }
.doc-section a:hover { text-decoration: underline; }

/* ============================ 6. ALERT BOX =============================== */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--r-card-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.alert-box__icon {
  flex: none;
  color: var(--amberwood-600);
  margin-top: 2px;
}
.alert-box p {
  font-size: 0.94rem;
  color: var(--walnut-800);
  margin-bottom: 0;
}

/* ============================ 7. STEPS BOX ================================ */
.steps-box {
  border: 1px dashed var(--sand-300);
  border-radius: var(--r-card-sm);
  background: var(--cream-50);
  padding: 14px 18px;
  margin-top: 10px;
}
.steps-box p.steps-box__label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--walnut-800);
  margin-bottom: 8px;
}
.steps-box ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}
.steps-box li { margin-bottom: 4px; }

/* ============================ 8. CONTACT CARDS ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 8px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-card-sm);
  padding: 16px 18px;
}
.contact-card__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--white);
  color: var(--amberwood-600);
}
.contact-card__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.contact-card__value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--walnut-900);
}
.contact-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ============================ 9. FAQ ACCORDION ============================ */
/* Native <details>/<summary>: keyboard accessible and works without JS. */
.faq-item {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-card-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--walnut-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--cream-100); }
.faq-item .chevron {
  flex: none;
  color: var(--amberwood-600);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] .chevron { transform: rotate(180deg); }
.faq-item__answer {
  padding: 0 18px 16px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--cream-200);
  padding-top: 12px;
}
.faq-item__answer a { color: var(--amberwood-600); font-weight: 700; }

/* ============================ 10. DOWNLOAD SPLASH ========================= */
.download-shell {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 8vw, 80px) var(--gutter);
}
.download-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.download-shell h1 {
  max-width: 520px;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}
.download-sub {
  max-width: 460px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.download-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Minimal footer for the download splash page — deliberately light so the
   page stays fast and single-purpose (get to the store, not browse the site). */
.mini-footer {
  padding: 18px var(--gutter) 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.mini-footer a { color: var(--amberwood-600); font-weight: 700; }
.mini-footer a:hover { text-decoration: underline; }
.mini-footer .sep { margin: 0 8px; color: var(--sand-300); }

/* ============================ 11. RESPONSIVE =============================== */
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
  .doc-card { padding: 22px 18px; }
}
