/* ============================================================================
   ISKCON Kirtan Ministry — TRUST / LEGAL / FAQ LAYER  (legal.css)
   ----------------------------------------------------------------------------
   Loads AFTER pages.css + pages-unify.css. Additive only: the trust pages
   (/privacy-policy/, /terms-of-use/, /faq/) reuse the .ikm-page-* primitives
   (hero, section, wrap, doc, toc, note, btn) and inherit the unified design
   system. This file adds ONLY what those primitives do not already provide:
     - long-form list / definition rhythm inside .ikm-page-doc
     - "last updated" meta line
     - a plain data table for the "what we collect" summary
     - the FAQ accordion (native <details>/<summary>, no JS)
   Palette is the unified one: Divine Blue #1E4DB7, navy #0b2a4d,
   Saffron Gold #F5A623, hairline #e5eaf2.
   Delete this file / its one enqueue line for instant rollback.
   ========================================================================== */

/* ---------- 1. Long-form document rhythm ---------- */
.ikm-legal-doc ul,
.ikm-legal-doc ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.ikm-legal-doc li {
  font-size: 17px;
  line-height: 1.8;
  color: #1f2937;
  margin: 0 0 10px;
  padding-left: 4px;
}
.ikm-legal-doc li:last-child { margin-bottom: 0; }
.ikm-legal-doc li > strong { color: #0b2a4d; font-weight: 600; }
.ikm-legal-doc ul { list-style: disc; }
.ikm-legal-doc ul li::marker { color: #F5A623; }
.ikm-legal-doc ol li::marker { color: #1E4DB7; font-weight: 600; }
.ikm-legal-doc h3 {
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  color: #0b2a4d;
  margin: 26px 0 10px;
  padding: 0;
}
.ikm-legal-doc h3:first-child { margin-top: 0; }
.ikm-legal-doc a {
  color: #1E4DB7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ikm-legal-doc a:hover { color: #163A8F; }
.ikm-legal-doc [id] { scroll-margin-top: 120px; }

/* ---------- 2. "Last updated" meta line ---------- */
.ikm-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 0 0 26px;
  padding: 0 0 20px;
  border-bottom: 1px solid #e5eaf2;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}
.ikm-legal-meta strong { color: #0b2a4d; font-weight: 600; }
.ikm-legal-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(30, 77, 183, 0.08);
  border: 1px solid rgba(30, 77, 183, 0.2);
  color: #1E4DB7;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* ---------- 3. Data summary table ---------- */
.ikm-legal-tablewrap { overflow-x: auto; margin: 0 0 22px; }
.ikm-legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.65;
}
.ikm-legal-table th,
.ikm-legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px;
  border-bottom: 1px solid #e5eaf2;
}
.ikm-legal-table thead th {
  background: #f6f8fc;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #0b2a4d;
}
.ikm-legal-table tbody th {
  font-weight: 600;
  color: #0b2a4d;
  white-space: nowrap;
}
.ikm-legal-table tbody td { color: #1f2937; }
.ikm-legal-table tbody tr:last-child th,
.ikm-legal-table tbody tr:last-child td { border-bottom: 0; }
.ikm-legal-table tbody tr:nth-child(even) { background: #fbfcfe; }

/* ---------- 4. FAQ accordion (native details/summary, no JS) ---------- */
.ikm-faq-group { margin: 0 0 44px; }
.ikm-faq-group:last-child { margin-bottom: 0; }
.ikm-faq-grouptitle {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #F5A623;
  margin: 0 0 16px;
  padding: 0;
}
.ikm-faq-list { display: grid; gap: 14px; }
.ikm-faq-item {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 42, 77, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ikm-faq-item[open] {
  border-color: rgba(30, 77, 183, 0.35);
  box-shadow: 0 12px 30px rgba(11, 42, 77, 0.12);
}
.ikm-faq-q {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #0b2a4d;
}
.ikm-faq-q::-webkit-details-marker { display: none; }
.ikm-faq-q::marker { content: ""; }
.ikm-faq-q:hover { color: #1E4DB7; }
.ikm-faq-item[open] .ikm-faq-q { color: #1E4DB7; }
.ikm-faq-q:focus-visible {
  outline: 3px solid rgba(245, 166, 35, 0.85);
  outline-offset: -3px;
  border-radius: 16px;
}
.ikm-faq-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(30, 77, 183, 0.1);
  color: #1E4DB7;
  position: relative;
  transition: background 0.2s ease, transform 0.25s ease;
}
.ikm-faq-ico::before,
.ikm-faq-ico::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.ikm-faq-ico::after { transform: rotate(90deg); }
.ikm-faq-item[open] .ikm-faq-ico { background: #1E4DB7; color: #fff; }
.ikm-faq-item[open] .ikm-faq-ico::after { transform: rotate(0deg); opacity: 0; }
.ikm-faq-a { padding: 0 24px 22px; }
.ikm-faq-a p {
  font-size: 17px;
  line-height: 1.8;
  color: #1f2937;
  margin: 0 0 14px;
}
.ikm-faq-a p:last-child { margin-bottom: 0; }
.ikm-faq-a ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}
.ikm-faq-a li {
  font-size: 17px;
  line-height: 1.8;
  color: #1f2937;
  margin: 0 0 8px;
}
.ikm-faq-a li::marker { color: #F5A623; }
.ikm-faq-a a {
  color: #1E4DB7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ikm-faq-a a:hover { color: #163A8F; }
.ikm-faq-item [id] { scroll-margin-top: 120px; }

/* ---------- 5. Closing help panel ---------- */
.ikm-legal-cta { text-align: center; }
.ikm-legal-cta .ikm-page-h2 { margin-bottom: 10px; }
.ikm-legal-cta .ikm-page-lead { margin-bottom: 24px; }
.ikm-legal-btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- 6. Responsive ---------- */
@media (max-width: 980px) {
  .ikm-faq-q { font-size: 17px; padding: 18px 20px; }
  .ikm-faq-a { padding: 0 20px 20px; }
  .ikm-legal-doc h3 { font-size: 18px; }
}
@media (max-width: 560px) {
  .ikm-faq-q { font-size: 16px; gap: 12px; }
  .ikm-legal-table { font-size: 15px; }
}

/* ---------- 7. Doc sits inside a normal section (kill its own auto margins) --- */
.ikm-page-section .ikm-legal-doc { margin-top: 0; margin-bottom: 0; }
