:root {
  --ink: #262323;
  --ink-soft: #4e4848;
  --paper: #f7f6ea;
  --white: #ffffff;
  --stone: #f0f0d8;
  --line: #d9d5bd;
  --head-bg: #ddd5c6;
  --plum: #604848;
  --plum-deep: #463434;
  --plum-tint: #f3ece4;
  --rose: #F0D890;
  --ochre: #c9a548;
  --on-dark: #fbfaf0;
  --gutter: 20px;
  --font-head: "Petrona", Georgia, "Times New Roman", serif;
  --font-body: "Rethink Sans", "Segoe UI", Arial, sans-serif;
  --cf-accent: #604848;
  --cf-on: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header (matches homepage): split links, centred logo, CTA far right, pale sub-row */
.site-head { position: static; background: var(--white); }
.head-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: 1440px; margin: 0 auto; min-height: 76px; padding: 0 32px; }
.head-left { display: flex; gap: 30px; }
.head-right { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.head-left a, .head-link { font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none; }
.head-left a:hover, .head-link:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 5px; }
.brand img { height: 46px; width: auto; }
.btn-head { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--white); background: var(--plum); border-radius: 999px; }
.btn-head:hover { background: var(--plum-deep); }
.head-sub { display: flex; justify-content: center; gap: 40px; padding: 10px var(--gutter); background: var(--plum-tint); }
.head-sub a { font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.head-sub a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

/* Page hero */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); background: var(--white); border-bottom: 1px solid #e8e1d8; }
.crumbs { margin: 0 0 18px; font-size: .9rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.page-hero h1 { max-width: 760px; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page-hero .lede { position: relative; max-width: 640px; font-size: 1.12rem; color: var(--ink-soft); margin: 0; }

/* Content layouts */
.page-body { padding: clamp(48px, 7vw, 88px) 0; }
.prose { max-width: 740px; }
.prose h2 { font-size: 1.7rem; margin-top: 44px; padding-top: 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #322e2e; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { font-size: .92rem; color: var(--ink-soft); }

.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc {
  position: sticky;
  top: 24px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: 4px;
}
.toc p { margin: 0 0 10px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; font-size: .95rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--plum); text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 20px; }

/* About cards */
.about-points { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-points li { padding: 22px; background: var(--white); border-top: 3px solid var(--plum); border-radius: 4px; margin: 0; }
.about-points strong { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 4px; }
.about-points span { font-size: .95rem; color: var(--ink-soft); }

/* Contact */
.contact-mail {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 8px 0 0; padding: 14px 20px;
  font-weight: 700; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
}
.contact-mail svg { width: 22px; height: 22px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contact form ---------- */
.cform { padding: 0; margin: clamp(32px, 5vw, 56px) 0 0; }
.cform-inner {
  max-width: 760px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cf-accent);
  border-radius: 4px;
  background: var(--white);
}
.cform-inner h2 { margin: 0 0 8px; }
.cform-intro { margin: 0 0 24px; color: var(--ink-soft); }
.cform-form { display: grid; gap: 18px; }
.cform-row { display: grid; gap: 6px; min-width: 0; }
.cform-row label { font-weight: 600; font-size: .95rem; }
.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: var(--paper);
  border: 1px solid #b5af96;
  border-radius: 4px;
}
.cform textarea { resize: vertical; min-height: 150px; }
.cform option { color: #111111; background: #ffffff; }
.cform input:focus, .cform select:focus, .cform textarea:focus, .cform-btn:focus-visible { outline: 3px solid var(--cf-accent); outline-offset: 2px; }
.cform-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.cform-consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cf-accent); }
.cform-consent a { color: inherit; text-decoration: underline; }
.cform-btn {
  justify-self: start;
  min-height: 50px;
  padding: 0 28px;
  font: inherit;
  font-weight: 700;
  color: var(--cf-on);
  background: var(--cf-accent);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.cform-btn:hover { background: var(--plum-deep); }
.cform-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-status { display: none; margin: 0 0 20px; padding: 14px 16px; border-radius: 4px; font-weight: 600; }
.cform-status:target { display: block; }
.cform-ok { background: var(--plum-tint); border: 1px solid var(--cf-accent); }
.cform-err { background: #f8e3e0; border: 1px solid #c0392b; }

@media (min-width: 720px) {
  .cform-form { grid-template-columns: 1fr 1fr; }
  .cform-wide, .cform-btn { grid-column: 1 / -1; }
}

/* Footer (matches homepage) */
.site-foot { background: var(--white); border-top: 1px solid #e8e1d8; padding: 52px 0 28px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 360px; }
.foot-brand img { height: 42px; width: auto; margin-bottom: 14px; }
.foot-brand p { font-size: .92rem; color: var(--ink-soft); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.foot-nav a { font-size: .94rem; color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--plum); }
.copy { margin: 30px 0 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }

@media (max-width: 1000px) {
  .head-left, .head-link { display: none; }
  .head-main { grid-template-columns: auto 1fr; padding: 0 var(--gutter); min-height: 68px; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .about-points { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .btn-head { padding: 0 16px; min-height: 42px; font-size: .92rem; }
  .head-sub { gap: 26px; }
  .contact-mail { word-break: break-all; }
}
