/* ============================================================
   Gardwyn — shared stylesheet for legal pages
   Visually unified with the homepage (index.html inline <style>).
   Tokens, reset, header, and footer are copied faithfully so the
   legal pages share the exact look; a calm long-form prose layout
   is added for readability.
   ============================================================ */

/* ---------- Font ---------- */
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (LOCKED) ---------- */
:root {
  --bg: #f7f9f8;
  --panel: #ffffff;
  --ink: #15211c;
  --muted: #586b63;
  --hairline: #e2e9e5;
  --green: #0e8f6e;
  --green-deep: #0a5f48;
  --green-press: #0b7559;
  --green-soft: #e8f4ef;
  --blue: #2f6fae;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,28,22,.05), 0 18px 40px rgba(16,28,22,.08);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
p { margin: 0; }

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(10,95,72,.7);
}
.btn-primary:hover { background: var(--green-press); color: #fff; }
.btn-primary .arrow { transition: transform .18s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,249,248,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wordmark {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--green); }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}
.nav a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--green); text-decoration: none; }
.nav .nav-cta {
  color: #fff;
  background: var(--green);
  padding: 9px 20px;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--green-press); color: #fff; }

/* ============================================================
   LEGAL PROSE LAYOUT — calm, generous, legible long-form reading
   ============================================================ */
main.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(48px, 7vw, 96px);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2.2em;
}
.legal-back:hover { color: var(--green); text-decoration: none; }

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 0.5em;
  text-wrap: balance;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2.5em;
  padding-bottom: 1.25em;
  border-bottom: 1px solid var(--hairline);
}

.legal h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  margin: 2.2em 0 0.6em;
  text-wrap: balance;
}
.legal h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.6em 0 0.4em;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.75;
}
.legal p { margin: 0 0 1.1em; }

.legal ul,
.legal ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}
.legal li { margin-bottom: 0.5em; }

.legal a { color: var(--green-deep); }
.legal a:hover { color: var(--green); text-decoration: underline; }

.legal strong { color: var(--ink); font-weight: 700; }

.legal address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}
.legal em { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  padding-block: clamp(36px, 4vw, 52px);
  font-size: 14.5px;
  line-height: 1.7;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand .wordmark { font-size: 24px; }
.footer-contact a { color: var(--green-deep); }
.footer-contact a:hover { color: var(--green); }
.footer-addr { margin-top: 6px; color: var(--muted); }
.footer-notice {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 78ch;
}
.footer-bottom {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
