:root {
  --bg: #f5efe5;
  --text: #1f1b17;
  --muted: #5b5349;
  --copy: #4f473e;
  --line: rgba(31, 27, 23, 0.10);
  --panel: rgba(255, 251, 246, 0.74);
  --accent: #355847;
  --shadow: 0 18px 48px rgba(52, 37, 20, 0.08);
  --shadow-strong: 0 22px 58px rgba(52, 37, 20, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(213, 194, 170, 0.18), transparent 26%),
    linear-gradient(180deg, #f8f3eb 0%, #f2eadf 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  pointer-events: none;
}

.header-shell {
  padding: 16px 0;
  transition: padding 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border: 1px solid transparent;
  transition:
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header:not(.is-scrolled) .header-inner {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-scrolled .header-shell {
  padding-top: 12px;
}

.site-header.is-scrolled .header-inner {
  width: min(920px, calc(100% - 32px));
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 18px;
  border-color: rgba(31, 27, 23, 0.08);
  background: rgba(255, 250, 244, 0.58);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    0 14px 34px rgba(52, 37, 20, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active::after {
  transition: none;
}

/* =========================
   POLICY HERO
========================= */

.policy-hero {
  padding: 170px 0 42px;
}

.policy-hero-inner {
  max-width: 900px;
  text-align: center;
}

.policy-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.policy-copy {
  margin: 22px auto 0;
  max-width: 700px;
  color: var(--copy);
  font-size: 1.04rem;
  line-height: 1.8;
}

.policy-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* =========================
   POLICY CONTENT
========================= */

.policy-content-section {
  padding: 10px 0 100px;
}

.policy-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.58);
  border: 1px solid rgba(31, 27, 23, 0.08);
  box-shadow:
    0 18px 46px rgba(52, 37, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.policy-content {
  max-width: 780px;
  margin: 0 auto;
}

.policy-block + .policy-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(31, 27, 23, 0.08);
}

.policy-block h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.policy-block p {
  margin: 0;
  color: var(--copy);
  font-size: 1rem;
  line-height: 1.9;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  padding: 34px 0 38px;
  background:
    linear-gradient(180deg, #f2eadf 0%, #eee5d8 100%);
  border-top: 1px solid rgba(31, 27, 23, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(31, 27, 23, 0),
    rgba(31, 27, 23, 0.12),
    rgba(31, 27, 23, 0)
  );
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  min-width: 0;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-logo {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-copy {
  margin: 12px 0 0;
  color: var(--copy);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 20px;
}

.footer-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.22s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 251, 246, 0.85);
  border: 1px solid rgba(31, 27, 23, 0.10);
  box-shadow: 0 10px 24px rgba(52, 37, 20, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.footer-social:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(31, 27, 23, 0.16);
  box-shadow: 0 16px 30px rgba(52, 37, 20, 0.10);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .brand {
    justify-content: center;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .site-header.is-scrolled .header-inner {
    width: calc(100% - 22px);
    padding: 12px 14px;
    border-radius: 16px;
  }

  .policy-hero {
    padding: 170px 0 30px;
  }

  .policy-shell {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .site-footer {
    padding: 28px 0 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }

  .footer-logo-wrap,
  .footer-links,
  .footer-socials {
    justify-content: center;
  }
}

/* =========================
   HAMBURGER (mobile)
========================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.12s ease;
}

.nav-hamburger:hover {
  background: rgba(31, 27, 23, 0.06);
}

.nav-hamburger:active {
  transform: scale(0.86);
}

.hamburger-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.18s ease,
    width     0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.hamburger-bar:nth-child(1) { width: 22px; }
.hamburger-bar:nth-child(2) { width: 16px; }
.hamburger-bar:nth-child(3) { width: 22px; }

.nav-hamburger.is-open .hamburger-bar:nth-child(1) {
  width: 22px;
  transform: translateY(7px) rotate(45deg);
  transition:
    transform 0.46s cubic-bezier(0.34, 1.56, 0.64, 1),
    width     0.20s ease,
    opacity   0.18s ease;
}

.nav-hamburger.is-open .hamburger-bar:nth-child(2) {
  width: 0;
  opacity: 0;
  transform: translateX(10px);
  transition:
    width     0.18s ease,
    opacity   0.14s ease,
    transform 0.18s ease;
}

.nav-hamburger.is-open .hamburger-bar:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
  transition:
    transform 0.46s cubic-bezier(0.34, 1.56, 0.64, 1) 0.04s,
    width     0.20s ease,
    opacity   0.18s ease;
}

/* Mobile nav panel */

.mobile-nav {
  pointer-events: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    opacity    0.28s ease;
}

.mobile-nav.is-open {
  pointer-events: auto;
  max-height: 480px;
  opacity: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 20px;
  background: rgba(248, 243, 235, 0.96);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(31, 27, 23, 0.06);
  box-shadow: 0 16px 32px rgba(52, 37, 20, 0.10);
}

.mobile-nav-link {
  display: block;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 12px;
  letter-spacing: -0.01em;
  transition:
    color      0.2s ease,
    background 0.2s ease,
    transform  0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity    0.3s ease;
  opacity: 0;
  transform: translateX(-14px);
}

.mobile-nav-link:hover {
  color: var(--text);
  background: rgba(31, 27, 23, 0.05);
}

.mobile-nav-link.is-active {
  color: var(--accent);
  background: rgba(53, 88, 71, 0.07);
}

.mobile-nav.is-open .mobile-nav-link             { opacity: 1; transform: translateX(0); }
.mobile-nav.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.04s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.12s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.16s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(5) { transition-delay: 0.20s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(6) { transition-delay: 0.24s; }

/* Mobile header: logo left, hamburger right */
@media (max-width: 720px) {
  .main-nav   { display: none !important; }
  .nav-hamburger { display: flex; }
  .header-inner {
    flex-direction: row !important;
    align-items: center !important;
  }
  .brand { justify-content: flex-start !important; }
}