/*
 * The Heritage — privacy & legal additions.
 *
 * Loaded by js/site.js on every page (and linked directly from the legal
 * pages). Kept apart from site.css because the /admin Colours tab rewrites
 * site.css; these rules only use its design tokens.
 */

/* ── Footer: legal links + newsletter note ──────────────────────── */
.footer-base .f-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-base .f-legal a { color: rgba(251, 248, 242, 0.7); }
.footer-base .f-legal a:hover { color: var(--gold); }
.site-footer p.news-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: rgba(251, 248, 242, 0.55); }
.site-footer p.news-note a { color: rgba(251, 248, 242, 0.75); text-decoration: underline; text-underline-offset: 2px; }

/* ── Consent tick-box above each enquiry form's send button ─────── */
.form-consent {
  display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 4px;
  font-size: 12.5px; font-weight: 300; line-height: 1.6; color: inherit;
  text-transform: none; letter-spacing: normal; text-align: left; cursor: pointer;
}
.form-consent input {
  flex: none; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0;
  accent-color: var(--maroon); cursor: pointer;
}
.field-dark .form-consent input { accent-color: var(--gold); }
.form-consent span { opacity: 0.85; }
.form-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-consent.needed span { opacity: 1; color: #C0392B; }
.field-dark .form-consent.needed span { color: var(--gold-bright); }

/* ── Cookie banner (only shown once GA4_ID is configured) ───────── */
#cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 560px; margin: 0 auto; padding: 18px 22px;
  background: var(--maroon-deep); color: var(--cream);
  border-top: 2px solid var(--gold); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
#cookie-banner p { flex: 1 1 260px; margin: 0; font-size: 13px; font-weight: 300; line-height: 1.6; }
#cookie-banner a { color: var(--gold-bright); text-decoration: underline; }
#cookie-banner .cb-actions { display: flex; gap: 10px; }
#cookie-banner button {
  min-height: 44px; padding: 0 20px; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  background: transparent; color: var(--cream); border: 1px solid var(--line-gold);
}
#cookie-banner button.cb-accept { background: var(--gold); color: var(--maroon-deep); border-color: var(--gold); }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; padding: 80px 6vw 100px; color: var(--ink); }
.legal .updated { font-size: 12px; letter-spacing: 0.18em; color: var(--gold-ink); text-transform: uppercase; margin: 0 0 34px; }
.legal h2 { font-size: 26px; color: var(--maroon); margin: 44px 0 12px; }
.legal h3 { font-size: 19px; color: var(--maroon); margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15.5px; font-weight: 300; line-height: 1.8; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 4px 0; }
.legal a { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 300; }
.legal th { font-weight: 500; color: var(--maroon); background: var(--cream-warm); }
.legal .table-wrap { overflow-x: auto; }
.legal .contact-card { border: 1px solid var(--line); border-top: 2px solid var(--gold); background: var(--cream-warm); padding: 20px 24px; margin: 14px 0; }
.legal .contact-card p { margin: 0; }
