/* Shared styles for the standalone legal/policy pages (privacy, terms, usage, contact).
   Formal document treatment: restrained palette, squared edges, clear hierarchy. */
:root {
  --ink: #1b211d;
  --body: #2b322d;
  --muted: #5d655e;
  --accent: #1d4533;     /* dark, formal green */
  --rule: #d7dbd4;
  --paper: #ffffff;
  --bg: #eef0ec;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.legal-wrap { max-width: 768px; margin: 0 auto; padding: 0 24px; }

/* Masthead */
.legal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 30px 0 14px;
  border-bottom: 2px solid var(--accent);
}
.legal-brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.legal-back { font-size: 13px; color: var(--muted); text-decoration: none; }
.legal-back:hover { color: var(--accent); text-decoration: underline; }

/* Document body */
.legal-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: none;
  padding: 46px 56px 50px;
}
h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.legal-updated {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
h2 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent);
  margin: 30px 0 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
p, li { font-size: 14.5px; color: var(--body); margin-bottom: 11px; }
ul, ol { padding-left: 24px; margin-bottom: 13px; }
li { margin-bottom: 7px; }
a { color: var(--accent); }
strong { color: var(--ink); font-weight: 600; }

/* Call-to-action button (e.g. the contact form link) */
.legal-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
}
.legal-cta:hover { background: #163828; }

/* Contact method blocks — formal left-rule cards (match .legal-note treatment) */
.contact-methods { display: grid; gap: 14px; margin: 18px 0 20px; }
.contact-method {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: #fafbfa;
  padding: 16px 18px;
}
.contact-method h3 { margin-top: 0; }
.contact-method p:last-child { margin-bottom: 0; }
.contact-method .legal-cta { margin: 4px 0 2px; }
.contact-email { font-size: 13.5px; color: var(--muted); }
.contact-email a { font-weight: 600; }

/* Formal callout (left rule, no rounding) */
.legal-note {
  border-left: 3px solid #b9912a;
  background: #fbf7ec;
  padding: 12px 16px;
  margin: 18px 0;
  font-size: 13.5px;
  color: #5c4c18;
}

/* Footer nav */
.legal-foot {
  padding: 20px 0 64px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.legal-foot a { color: var(--muted); margin: 0 7px; text-decoration: none; }
.legal-foot a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 600px) {
  .legal-card { padding: 30px 22px 34px; }
  h1 { font-size: 22px; }
}
