/* ── The Peace Orchard — legal pages (privacy & cookies) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

:root {
  --green:  #2d4a30;
  --mid:    #4a7c59;
  --sage:   #7EA87E;
  --gold:   #C49A3C;
  --amber:  #d4840f;
  --cream:  #F7F3EE;
  --ink:    #2c3e2d;
}

html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--cream); color: var(--ink); overflow-x: clip; }

/* ── NAV ── */
.social-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(30,50,30,0.97); padding: 0.3rem 1.5rem;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; color: #f5f0e8; opacity: 0.82;
  transition: opacity 0.2s, color 0.2s; text-decoration: none; flex-shrink: 0;
}
.social-link:hover { opacity: 1; color: #ffffff; }
.social-link svg { width: 17px; height: 17px; }
.main-nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 2rem;
}
.main-nav-links > li { position: relative; }
.main-nav-link {
  display: block; padding: 0;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.88); text-decoration: none; white-space: nowrap; transition: color 0.2s;
}
.main-nav-link:hover, .main-nav-link:focus { color: #d4840f; outline: none; }
.main-nav-link.has-dropdown::after { content: '▾'; margin-left: 4px; font-size: 11px; vertical-align: middle; }
.main-nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #2d4a30; border-top: 2px solid #d4840f; border-radius: 0 0 6px 6px;
  min-width: 180px; list-style: none; padding: 0.75rem 0; margin: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28); z-index: 300;
}
.main-nav-dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.06em; color: #f5f0e8;
  text-decoration: none; transition: background 0.2s;
}
.main-nav-dropdown-menu a:hover { background: #3d6142; }
.main-nav-links > li:hover .main-nav-dropdown-menu,
.main-nav-links > li:focus-within .main-nav-dropdown-menu { display: block; }
.main-nav-links > li:nth-last-child(-n+2) .main-nav-dropdown-menu { left: auto; right: 0; }
.main-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.65rem 0.5rem; color: rgba(255,255,255,0.88); line-height: 1; }
.main-nav-toggle svg { display: block; width: 22px; height: 22px; }

@media (max-width: 900px) {
  .main-nav-toggle { display: block; }
  .main-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; background: #2d4a30;
    width: 100%; padding: 0.25rem 1.25rem 0.75rem; gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 300;
  }
  .main-nav-links.is-open { display: flex; }
  .main-nav-link { padding: 0.6rem 0; }
  .main-nav-dropdown-menu {
    position: static; box-shadow: none; border-top: none; border-radius: 0;
    border-left: 2px solid rgba(212,132,15,0.5); background: rgba(0,0,0,0.15);
    min-width: unset; width: 100%; padding: 0.25rem 0 0.25rem 0.5rem;
  }
  .main-nav-links > li:hover .main-nav-dropdown-menu { display: none; }
  .main-nav-links > li.is-open .main-nav-dropdown-menu { display: block; }
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--green); color: #f5f0e8;
  padding: 6.5rem 2rem 4.5rem; text-align: center;
  position: relative;
}
.page-hero-label {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 0.9rem; display: block;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 300; line-height: 1.1;
  color: #ffffff; margin: 0 auto; max-width: 800px;
}
.page-hero-divider {
  width: 44px; height: 1px; background: var(--gold); opacity: 0.6;
  margin: 1.5rem auto 0;
}
.legal-dateline {
  margin-top: 1.15rem;
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,240,232,0.66);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 13px; letter-spacing: 0.06em;
  color: rgba(245,240,232,0.65);
  position: absolute; top: 54px; left: 2rem;
  text-align: left;
}
.breadcrumb a { color: rgba(245,240,232,0.65); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: rgba(245,240,232,0.95); }
.breadcrumb span { margin: 0 0.4rem; }
.breadcrumb strong { color: rgba(245,240,232,0.9); font-weight: 400; }

/* ── ANCHOR NAV ── */
.anchor-nav {
  position: sticky; top: 38px; z-index: 100;
  background: var(--cream); border-bottom: 1px solid rgba(196,154,60,0.22);
  box-shadow: 0 2px 8px rgba(44,74,48,0.05);
}
.anchor-nav-inner {
  max-width: 900px; margin: 0 auto; padding: 0 2rem;
  display: flex; gap: 0; justify-content: center;
}
.anchor-nav-link {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(44,62,45,0.55); text-decoration: none;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: block; white-space: nowrap;
}
.anchor-nav-link:hover,
.anchor-nav-link:focus { color: var(--green); outline: none; }
.anchor-nav-link.is-active { color: var(--green); border-bottom-color: var(--amber); }

/* ── LEGAL CONTENT ── */
.legal-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 4.5rem 2rem 5.5rem;
}
.legal-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  font-weight: 400; line-height: 1.55;
  color: var(--green); margin-bottom: 2rem;
}
.legal-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(126,168,126,0.24);
  border: 1px solid rgba(126,168,126,0.24);
  border-radius: 6px; overflow: hidden;
  margin: 0 0 3rem;
}
.legal-meta > div { background: #ffffff; padding: 1.15rem 1.3rem; }
.legal-meta span {
  display: block; font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.35rem;
}
.legal-meta strong,
.legal-meta a {
  display: inline-block; font-size: 0.9rem; font-weight: 400;
  line-height: 1.5; color: var(--ink); text-decoration: none;
}
.legal-meta a { border-bottom: 1px solid rgba(196,154,60,0.55); }
.legal-meta a:hover { color: var(--amber); }

.legal-section {
  scroll-margin-top: 100px;
  margin-bottom: 2.8rem;
}
.legal-section:last-of-type { margin-bottom: 0; }
.legal-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  font-weight: 300; line-height: 1.2; color: var(--green);
}
.section-divider-line {
  width: 44px; height: 1px; background: var(--gold); opacity: 0.6;
  margin: 1.1rem 0 1.35rem;
}
.legal-section p {
  font-size: 1rem; font-weight: 300; line-height: 1.85;
  color: rgba(44,62,45,0.85); margin-bottom: 1rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0.4rem 0 1.1rem 1.2rem; }
.legal-section li {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: rgba(44,62,45,0.85); margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}
.legal-section li::marker { color: var(--gold); }
.legal-section h3 {
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); margin: 1.6rem 0 0.6rem;
}
.legal-section a {
  color: var(--green); text-decoration: underline;
  text-decoration-color: rgba(196,154,60,0.6);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.legal-section a:hover { color: var(--amber); }

.legal-note {
  background: #ffffff;
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0 1.6rem;
  box-shadow: 0 2px 14px rgba(45,74,48,0.05);
}
.legal-note p { font-size: 0.94rem; margin-bottom: 0; }
.legal-note strong { font-weight: 500; color: var(--ink); }

.cookie-table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0 1.8rem;
  border: 1px solid rgba(126,168,126,0.22);
  border-radius: 6px;
  background: #ffffff;
}
.cookie-table {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
}
.cookie-table th {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(44,62,45,0.58); text-align: left;
  background: #f3efe8;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(126,168,126,0.22);
}
.cookie-table td {
  padding: 0.9rem 1rem;
  font-size: 0.86rem; font-weight: 300; line-height: 1.65;
  color: rgba(44,62,45,0.8);
  border-bottom: 1px solid rgba(126,168,126,0.14);
  vertical-align: top;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table td strong { font-weight: 500; color: var(--ink); }

.related-policies {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 2.5rem;
}
.related-policies a {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(126,168,126,0.35);
  border-radius: 3px;
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.related-policies a:hover {
  background: #ffffff; border-color: var(--gold);
}

/* ── CONTACT PANEL ── */
.legal-contact {
  margin-top: 3.5rem; padding: 2.4rem 2.6rem;
  background: var(--green); color: #f5f0e8;
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem; align-items: start;
}
.legal-contact .contact-eyebrow {
  display: block; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.65rem;
}
.legal-contact h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 300; color: #ffffff; line-height: 1.2;
  margin-bottom: 0.75rem;
}
.legal-contact p {
  font-size: 0.94rem; font-weight: 300; line-height: 1.8;
  color: rgba(245,240,232,0.82); margin-bottom: 0.35rem;
}
.legal-contact a {
  color: #f5f0e8; text-decoration: none;
  border-bottom: 1px solid rgba(196,154,60,0.55);
  transition: border-color 0.2s;
}
.legal-contact a:hover { border-bottom-color: var(--gold); }
.legal-contact address {
  font-style: normal; font-size: 0.94rem; font-weight: 300;
  line-height: 1.8; color: rgba(245,240,232,0.82);
}

/* ── FOOTER ── */
.site-footer { background: var(--green); text-align: center; padding: 3rem 2rem; }
.site-footer p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 300; color: #f5f0e8;
  letter-spacing: 0.05em; line-height: 2;
}
.footer-charity {
  font-family: 'Jost', sans-serif; font-size: 12px;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.6);
  padding-top: 1rem; margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15); font-weight: 400;
}
.footer-charity a { color: inherit; text-decoration: underline; }
.footer-sitemap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; max-width: 900px; margin: 0 auto 2rem;
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid rgba(196,154,60,0.15);
  text-align: left;
}
.footer-col-heading {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 0.9rem; display: block;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a {
  font-size: 13px; font-weight: 300;
  color: #f5f0e8; text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: #d4840f; }
@media (max-width: 700px) { .footer-sitemap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .footer-sitemap { grid-template-columns: 1fr; } }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .page-hero { padding: 5.5rem 1.5rem 3.75rem; }
  .breadcrumb { top: 50px; left: 1.5rem; font-size: 12px; }
  .anchor-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .anchor-nav-inner::-webkit-scrollbar { display: none; }
  .anchor-nav-link { padding: 0.85rem 0.8rem 0.7rem; }
  .legal-wrap { padding: 3.25rem 1.5rem 4rem; }
  .legal-meta { grid-template-columns: 1fr; }
  .legal-section { scroll-margin-top: 96px; }
  .legal-contact { grid-template-columns: 1fr; gap: 1.6rem; padding: 2rem 1.5rem; }
}
@media (max-width: 420px) {
  .legal-lead { font-size: 1.25rem; }
  .legal-section p, .legal-section li { font-size: 0.95rem; }
}

/* ── SECTION EYEBROW (legal pages) ── */
.section-eyebrow {
  display: block;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.45rem;
}
.legal-contact { scroll-margin-top: 100px; }
