/* ── Legal / static pages shared styles ── */
/* Header, search bar, nav-menu, hamburger styles are all in styles.css */

.legal-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.legal-article h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.legal-updated {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 0 0 32px;
}

.legal-article h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1e3a2f;
  margin: 32px 0 8px;
}

.legal-article h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a2f;
  margin: 20px 0 6px;
}

.legal-article p {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 14px;
}

.legal-article a {
  color: var(--accent, #2f6b4a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: #255a3e;
}

.legal-article code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  color: #334155;
}

/* ── Contact form ── */
.contact-form {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 13px;
  font-weight: 600;
  color: #1e3a2f;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(18,24,20,0.15);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--accent, #2f6b4a);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
  padding: 11px 28px;
  background: var(--accent, #2f6b4a);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-submit:hover {
  background: #255a3e;
}

.contact-alt {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted, #64748b);
}

/* ── Footer ── */
.legal-footer {
  border-top: 1px solid rgba(20,30,20,0.08);
  padding: 24px 20px;
  text-align: center;
}

.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 12px;
}

.legal-footer-nav a {
  font-size: 13px;
  color: var(--accent, #2f6b4a);
  text-decoration: none;
}

.legal-footer-nav a:hover {
  text-decoration: underline;
}

.legal-footer-copy {
  font-size: 12px;
  color: var(--muted, #64748b);
  margin: 0;
}

/* ── Site footer on main index ── */
.site-footer {
  border-top: 1px solid rgba(20,30,20,0.08);
  padding: 20px 16px;
  text-align: center;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 8px;
}

.site-footer-nav a {
  font-size: 12px;
  color: var(--muted, #64748b);
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: var(--accent, #2f6b4a);
}

.site-footer-copy {
  font-size: 11px;
  color: var(--muted, #64748b);
  margin: 0;
}

/* ── Blog list page — tile grid layout ── */
.blog-tile-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 12px 60px;
  flex: 1 0 auto;
}

.blog-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 4px;
}

.blog-tile {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  border: 1px solid rgba(20,30,20,0.06);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.blog-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(15,23,42,0.13);
  border-color: rgba(47,107,74,0.18);
}

.blog-tile:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}

.blog-tile-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

.blog-tile-body {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tile-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-tile-read {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #2f6b4a);
}

@media(min-width: 480px) {
  .blog-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .blog-tile-title { font-size: 15px; }
}

@media(min-width: 700px) {
  .blog-tile-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .blog-tile-title { font-size: 15px; }
}

@media(min-width: 960px) {
  .blog-tile-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .blog-tile-title { font-size: 15px; }
}

/* kept for backward compat (old card style still used in blog posts' back link area) */
.blog-list-main {
  max-width: 720px;
}

.blog-list-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.blog-list-sub {
  font-size: 15px;
  color: var(--muted, #64748b);
  margin: 0 0 36px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(20,30,20,0.1);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.blog-card:hover {
  border-color: var(--accent, #2f6b4a);
  box-shadow: 0 4px 20px rgba(47,107,74,0.10);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-card-tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(47,107,74,0.10);
  color: var(--accent, #2f6b4a);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.blog-card-date {
  font-size: 13px;
  color: var(--muted, #64748b);
}

.blog-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 14px;
}

.blog-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #2f6b4a);
}

/* ── Blog post page ── */
.blog-post-back {
  margin-bottom: 24px;
}

.blog-post-back a {
  font-size: 14px;
  color: var(--accent, #2f6b4a);
  text-decoration: none;
  font-weight: 500;
}

.blog-post-back a:hover {
  text-decoration: underline;
}

.blog-post-header {
  margin-bottom: 28px;
}

.blog-post-header h1 {
  margin: 10px 0 6px;
}

.blog-post ul {
  padding-left: 20px;
  margin: 0 0 14px;
}

.blog-post ul li {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 4px;
}

/* Step illustrations */
.step-img {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 18px auto 24px;
  border-radius: 12px;
  border: 1px solid rgba(20,30,20,0.09);
  box-shadow: 0 2px 16px rgba(15,23,42,0.08);
  background: #f8f7f4;
}
