/* ─────────────────────────────────────────────────────────────
   FormYaar — long-form / legal article styles
   Used by: privacy-policy.html, terms.html
   Requires: shared.css (loaded first)
   ───────────────────────────────────────────────────────────── */

/* ───── Article hero ───── */
.art-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.art-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 92% -10%, rgba(255,153,51,0.08), transparent 40%),
    radial-gradient(circle at -5% 110%, rgba(19,136,8,0.07), transparent 42%);
  pointer-events: none;
}
.art-hero-inner { position: relative; max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.art-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.06;
  margin: 0.8rem 0 1rem;
}
.art-hero .lead { font-size: 1.08rem; max-width: 720px; }

/* Meta grid (Effective date, Last updated, etc.) */
.art-meta {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(4px);
}
.art-meta-item {
  display: flex; flex-direction: column;
  font-size: 0.82rem;
}
.art-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.art-meta-val {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* ───── TL;DR / summary box ───── */
.art-tldr-wrap {
  background: #fff;
  padding: 2.5rem 0;
}
.art-tldr {
  max-width: 980px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 2rem;
}
.art-tldr-title {
  font-family: "Source Serif 4", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.art-tldr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
}
.art-tldr-item {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
}
.art-tldr-item strong { color: var(--text); font-weight: 700; }
.art-tldr-check {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ───── Body layout (TOC sidebar + content) ───── */
.art-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  align-items: start;
}

.art-toc {
  position: sticky;
  top: 90px;
  font-size: 0.88rem;
}
.art-toc-title {
  font-family: "Source Serif 4", serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.art-toc-list {
  display: flex; flex-direction: column;
  gap: 0.15rem;
  border-left: 1px solid var(--line);
  padding-left: 0;
}
.art-toc-list a {
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: all 0.15s;
  line-height: 1.4;
}
.art-toc-list a:hover { color: var(--navy); }
.art-toc-list a.active {
  color: var(--navy);
  font-weight: 600;
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(201,107,10,0.05), transparent);
}
.art-toc-help {
  margin-top: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.art-toc-help-title {
  font-family: "Source Serif 4", serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.art-toc-help p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}
.art-toc-help a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ───── Article content ───── */
.art-content {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}
.art-content h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.2;
}
.art-content h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.art-section {
  scroll-margin-top: 90px;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line-soft);
}
.art-section:first-of-type { border-top: none; padding-top: 0; }
.art-section-num {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-lt);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}
.art-content p { margin: 0 0 1.1rem; }
.art-content p:last-child { margin-bottom: 0; }
.art-content a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.art-content a:hover { color: var(--amber-deep); }
.art-content strong { color: var(--text); font-weight: 700; }
.art-content em { font-style: italic; }
.art-content ul,
.art-content ol {
  margin: 0 0 1.2rem 1.4rem;
  padding: 0;
  list-style: disc;
}
.art-content ol { list-style: decimal; }
.art-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}
.art-content li::marker { color: var(--amber); }

/* ───── Callout boxes (4 variants) ───── */
.callout {
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.callout-title {
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.callout p { margin: 0 !important; font-size: 0.95rem; line-height: 1.65; }
.callout a { font-weight: 600; }
.callout-saffron { background: var(--amber-lt); border-color: #f4d6a3; color: #6b3d05; }
.callout-saffron .callout-title { color: var(--amber-deep); }
.callout-saffron a { color: var(--amber-deep); border-bottom-color: var(--amber-deep); }
.callout-green { background: var(--green-bg); border-color: var(--green-line); color: #144a20; }
.callout-green .callout-title { color: var(--green); }
.callout-blue { background: var(--navy-tint); border-color: #c7d6ef; color: #0a1f4a; }
.callout-blue .callout-title { color: var(--navy); }
.callout-purple { background: #f3edff; border-color: #d6c7f0; color: #2c1664; }
.callout-purple .callout-title { color: #5b21b6; }

/* ───── Data table ───── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.data-table th {
  background: var(--paper);
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: "Source Serif 4", serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--text-2);
  line-height: 1.55;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(250,246,236,0.5); }

/* ───── Permission list (numbered field/why pairs) ───── */
.perm-list { display: flex; flex-direction: column; gap: 0.8rem; margin: 1.5rem 0; }
.perm-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.perm-item:hover { border-color: rgba(0,45,110,0.25); box-shadow: 0 4px 14px -6px rgba(0,30,80,0.12); }
.perm-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.perm-why {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}
.perm-why strong { color: var(--text); }

/* ───── Refund grid (terms.html) ───── */
.refund-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.refund-card {
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  border: 1.5px solid var(--line);
  background: #fff;
}
.refund-card.yes { background: var(--green-bg); border-color: var(--green-line); }
.refund-card.no { background: var(--red-bg); border-color: var(--red-line); }
.refund-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: "Source Serif 4", serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.refund-card.yes .refund-badge { color: var(--green); }
.refund-card.no .refund-badge { color: var(--red); }
.refund-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.refund-card.yes h3 { color: #144a20; }
.refund-card.no h3 { color: #7a1010; }
.refund-card ul { margin: 0; list-style: none; padding: 0; }
.refund-card li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.95rem; line-height: 1.55;
  padding: 0.4rem 0;
}
.refund-card.yes li { color: #144a20; }
.refund-card.no li { color: #5a1010; }

/* ───── Responsive ───── */
@media (max-width: 980px) {
  .art-body { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem 4rem; }
  .art-toc { position: static; }
  .art-toc-list { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; border-left: none; padding-left: 0; }
  .art-toc-list a {
    border-left: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    background: #fff;
  }
  .art-toc-list a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
  .art-toc-help { margin-top: 1.5rem; }
  .art-tldr-grid { grid-template-columns: 1fr; }
  .refund-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .art-hero { padding: 3rem 0 2.5rem; }
  .art-meta { padding: 0.9rem 1rem; }
  .art-tldr { padding: 1.4rem 1.2rem; }
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 0.65rem 0.8rem; }
}
