:root {
  /* logo palette: navy #1D3049, coral #E67836, deep green #184830 */
  --paper: #FBF7F0;
  --card: #F3ECE2;
  --white: #FFFFFF;
  --ink: #16243A;
  --ink-soft: #45526A;
  --coral: #E67836;
  --coral-deep: #9A4718;
  --coral-tint: #FBE0CF;
  --plum: #1D3049;
  --plum-soft: #2D4566;
  --green: #184830;
  --mint: #D5E9DD;
  --butter: #F8E3C4;
  --lilac: #DCE4EE;
  --line: #E4DACD;
  --radius: 28px;
  --wrap: 1140px;
  --gutter: 20px;
  --f-head: "SUSE", "Segoe UI", sans-serif;
  --f-body: "Alexandria", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--f-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

.sprite {
  display: none;
}

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

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
}

/* ---------- Topbar + header ---------- */
.topbar {
  margin: 0;
  padding: 9px var(--gutter);
  background: var(--coral-tint);
  color: var(--ink);
  font-size: .82rem;
  text-align: center;
}

.site-header {
  position: static;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand img { height: 50px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-link {
  font-size: .94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--plum);
}

.header-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--white);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}

.pill:hover { background: var(--ink); }
.pill-lg { min-height: 50px; padding: 0 30px; font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin: 12px 0 0; font-size: .88rem; color: var(--ink-soft); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  font-size: .9rem;
  align-content: start;
}

.footer-links a { text-decoration: none; color: var(--plum); }
.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-soft);
}

.footer-bottom p { margin: 0 0 4px; }

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
}

.page-hero p {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.page-hero-card { padding: 0; background: none; text-align: left; }

/* ---------- Prose ---------- */
.prose-wrap {
  max-width: 800px;
  padding-top: 40px;
  padding-bottom: 90px;
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.prose section:first-of-type h2,
.prose > h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose a {
  color: var(--coral-deep);
}

.prose ul {
  padding-left: 22px;
}

.updated {
  font-size: .9rem;
  margin: 0 0 24px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  padding-top: 44px;
  padding-bottom: 90px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
}

.toc-title {
  margin: 0 0 10px;
  font-family: var(--f-head);
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: .92rem;
  display: grid;
  gap: 8px;
}

.toc a {
  text-decoration: none;
  color: var(--ink-soft);
}

.toc a:hover {
  color: var(--coral-deep);
}

.prose section {
  scroll-margin-top: 20px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 90px;
}

.contact-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--plum);
  color: var(--white);
}

.contact-card h2 {
  font-size: 1.4rem;
}

.contact-card p {
  color: #E2E8F0;
}

.contact-card .mail {
  color: var(--butter);
  font-weight: 600;
  word-break: break-all;
}

.contact-card .muted {
  font-size: .88rem;
  color: #C9D3E0;
}

.cform {
  --cf-accent: var(--coral-deep);
  --cf-on: #FFFFFF;
  padding: 0;
  margin: 0;
}

.cform-inner {
  max-width: none;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cf-accent);
  border-radius: 22px;
  background: var(--white);
}

.cform-inner h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.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 #CFC3B4;
  border-radius: 12px;
}

.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 30px;
  font: inherit;
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--cf-on);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.cform-btn:hover {
  background: var(--cf-accent);
}

.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: 12px;
  font-weight: 600;
}

.cform-status:target {
  display: block;
}

.cform-ok {
  background: var(--mint);
  border: 1px solid #1F6B45;
}

.cform-err {
  background: #FBE1DC;
  border: 1px solid #C0392B;
}

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

  .cform-wide,
  .cform-btn {
    grid-column: 1 / -1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .legal-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-row { min-height: 66px; gap: 10px; }
  .brand img { height: 40px; }
  .header-actions { gap: 14px; }
  .pill { padding: 0 18px; }
  .page-hero { padding: 40px 0 34px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}

@media (max-width: 400px) {
  .hide-xs { display: none; }
  .header-link { font-size: .88rem; }
}

/* Blog link in the WordPress header: keep the row on one line on small phones. */
@media (max-width: 480px) {
  .header-actions:has(.header-blog) .header-link:not(.header-blog) { display: none; }
}

/* Keep the space before " a Bend" inside the flex pill. */
.pill .hide-xs { white-space: pre; }
