/* ---------------------------------------------------------------------------
   Cookie consent + third-party gate.
   Styled from the site's own tokens so it does not read as a bolted-on widget.
   Pattern follows the common storefront banner: fixed bottom card, short text,
   secondary "decline" and primary "accept", link to the policy.
   --------------------------------------------------------------------------- */

.consent {
  position: fixed;
  z-index: 9000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 560px;
  background: var(--dark-bg);
  color: var(--dark-fg);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.consent[hidden] { display: none; }

.consent__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--dark-fg);
}

.consent__text { margin: 0 0 16px; color: var(--dark-primary); }

.consent__text a { color: var(--sand); text-decoration: underline; }
.consent__text a:hover { color: #fff; }

.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.consent__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--btn-radius);
  flex: 1 1 auto;
  min-height: 44px;              /* touch target */
}

.consent__btn--accept { background: var(--sand); color: var(--sand-deep); }
.consent__btn--accept:hover { background: #fff; }

.consent__btn--decline {
  background: transparent;
  color: var(--dark-fg);
  border: 1px solid rgba(246, 241, 239, .45);
}
.consent__btn--decline:hover { background: rgba(246, 241, 239, .1); }

.consent__btn:focus-visible,
.gate__btn:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

@media (max-width: 520px) {
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .consent__actions { flex-direction: column-reverse; }
}

/* --- placeholder shown in place of a blocked third-party embed --- */

.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 352px;
  padding: 28px 24px;
  background: #f6f1ef;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
}

.gate[hidden] { display: none; }

.gate__text { margin: 0; max-width: 42ch; color: #6b5a50; font-size: 15px; line-height: 1.5; }

.gate__btn {
  appearance: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--btn-radius);
  min-height: 44px;
}
.gate__btn:hover { background: var(--btn-bg-hover); }

/* footer link that reopens the choice */
.consent-reopen {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-decoration: underline;
}

/* ------------------------------ legal pages ------------------------------ */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  font-family: var(--font-body);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.65;
}

.legal h1 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; color: var(--foreground-heading); }
.legal h2 { font-size: 21px; margin: 38px 0 10px; color: var(--foreground-heading); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal a:hover { color: var(--primary-hover); }
.legal code { background: #f6f1ef; padding: 1px 5px; border-radius: 4px; font-size: 14px; }
.legal em { color: #6b5a50; font-style: normal; background: #fdf3e7; padding: 1px 5px; border-radius: 4px; }

.legal__back { margin: 0 0 28px; font-size: 15px; }
.legal__lead { font-size: 18px; color: #3a2a21; }
.legal__updated { margin-top: 44px; font-size: 14px; color: #6b5a50; }

.legal__todo {
  margin: 24px 0 8px;
  padding: 14px 16px;
  border-left: 4px solid #a05513;
  background: #fdf3e7;
  font-size: 15px;
}

.legal__table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14.5px; }
.legal__table th,
.legal__table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal__table th { font-weight: 700; color: var(--foreground-heading); }

@media (max-width: 620px) {
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table thead { display: none; }
  .legal__table tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  .legal__table td { border: 0; padding: 2px 0; }
}
