:root {
  --bg: #f5f1ed;
  --bg-subtle: #ebe6e0;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6560;
  --accent: #2c5f2e;
  --accent-soft: #e8f0e8;
  --border: #e0dbd4;
  --shadow: 0 1px 2px rgb(26 26 26 / 0.04), 0 4px 16px rgb(26 26 26 / 0.04);
  --radius: 1rem;
  --max: 42rem;
  --bar-max: 56rem;
}

* { box-sizing: border-box; }

body.legal-page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Subtle top bar (not a hero banner) —— */
.site-bar {
  background: rgb(255 255 255 / 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-bar-inner {
  max-width: var(--bar-max);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.brand span {
  font-family: Newsreader, Georgia, serif;
  font-weight: 600;
  font-size: 1.0625rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* —— Page intro (quiet title block on page bg) —— */
.legal-main {
  flex: 1;
  width: 100%;
  max-width: var(--bar-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.page-intro {
  max-width: var(--max);
  margin: 0 auto 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-intro h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
}

/* —— Article card —— */
.legal-article {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .legal-article {
    padding: 2rem 2.25rem;
  }
}

.legal-article h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.65rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
}

.legal-article p,
.legal-article li {
  color: var(--text);
  font-size: 0.9375rem;
}

.legal-article ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.legal-article li {
  margin-bottom: 0.4rem;
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.meta-row {
  padding-bottom: 1.25rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

a.inline {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.inline:hover {
  color: #234d25;
}

code {
  font-size: 0.8125rem;
  background: var(--bg-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.8125rem;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0;
}

.contact-card .label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card .email {
  margin: 0;
  font-size: 1.0625rem;
}

.contact-card .email a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-card .email a:hover {
  text-decoration: underline;
}

.contact-card .note {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-card .contact-intro {
  margin: 0 0 1.25rem;
}

.contact-card .contact-alt {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-status.is-success {
  color: #234d25;
  background: var(--accent-soft);
  border: 1px solid rgb(44 95 46 / 0.2);
}

.form-status.is-error {
  color: #7a2e2e;
  background: #fce8e8;
  border: 1px solid rgb(122 46 46 / 0.15);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(44 95 46 / 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-submit {
  align-self: flex-start;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 0.625rem 1.35rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.form-submit:hover {
  background: #234d25;
}

.form-submit:active {
  transform: scale(0.98);
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.faq dt {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 1.15rem;
  color: var(--text);
}

.faq dd {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.summary-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

.quick-start {
  margin: 0;
  padding-left: 1.25rem;
}

.quick-start li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.quick-start li:last-child {
  margin-bottom: 0;
}

/* —— Footer —— */
.legal-footer {
  border-top: 1px solid var(--border);
  background: rgb(255 255 255 / 0.5);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.legal-footer .tagline {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.legal-footer nav a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.legal-footer nav a:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  .site-bar-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .legal-main {
    padding-top: 1.75rem;
  }
}
