/* Vilkar - terms of service. Quiet, professional, lightly branded.
   Section numbers are CSS counters, not authored text: reorder in
   Gutenberg and they renumber themselves. */

.vilkar {
  counter-reset: vsec;
}

/* Let each scoped element take the document text color rather than
   whatever the theme cascades into descendants. Links opt out below. */
.vilkar :is(p, h2, h3, h4, li, strong, em, br) {
  color: inherit;
}

.vilkar :is(p, li) {
  line-height: 1.78;
}

.vilkar :is(p, ul) {
  margin-block: 0.9em;
}

/* Intro --------------------------------------------------------------- */

.vilkar-lead {
  font-size: 1.12em;
  line-height: 1.7;
  padding-left: 1.1em;
  border-left: 2px solid var(--decorative-gold, #b08d4e);
  color: var(--color-brown-600, #6b5a44);
}

/* Top-level sections -------------------------------------------------- */

.vilkar h2 {
  counter-increment: vsec;
  counter-reset: vsub;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border-color-light, #e6ddcd);
  font-size: 1.5em;
  line-height: 1.25;
}

.vilkar h2::before {
  content: counter(vsec);
  flex: 0 0 auto;
  font-family: var(--font-family-heading, Georgia, serif);
  font-weight: 400;
  font-size: 0.82em;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--decorative-gold, #b08d4e);
}

/* Subsections --------------------------------------------------------- */

.vilkar h3 {
  counter-increment: vsub;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-top: 2em;
  font-size: 1.12em;
  line-height: 1.3;
}

.vilkar h3::before {
  content: counter(vsec) "." counter(vsub);
  flex: 0 0 auto;
  font-family: var(--font-family-heading, Georgia, serif);
  font-weight: 400;
  font-size: 0.85em;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--decorative-gold, #b08d4e);
}

/* Unnumbered sub-points (payment methods) */
.vilkar h4 {
  margin-top: 1.6em;
  margin-bottom: 0.3em;
  font-size: 0.96em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-brown-600, #6b5a44);
}

/* Lists --------------------------------------------------------------- */

.vilkar ul {
  padding-left: 1.3em;
}

.vilkar li {
  margin-block: 0.4em;
}

.vilkar li::marker {
  color: var(--decorative-gold, #b08d4e);
}

/* Footnotes ----------------------------------------------------------- */

.vilkar-note {
  font-size: 0.9em;
  line-height: 1.6;
  color: var(--color-brown-500, #87765c);
}

/* Links --------------------------------------------------------------- */

.vilkar a {
  color: var(--link-color, var(--accent-color, #8a5a2b));
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* Contact card -------------------------------------------------------- */

.vilkar-contact {
  margin-top: 3.4em;
  padding: 1.8em 2em;
  background: var(--bg-color-light, #f6efe2);
  border: 1px solid var(--border-color-light, #e6ddcd);
  border-radius: var(--border-radius, 3px);
}

.vilkar-contact h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.vilkar-contact :is(p, br) {
  line-height: 1.65;
}
