:root{
  --bg: #f4efe6;
  --text: #1e1b16;
  --muted: rgba(30, 27, 22, 0.55);
  --line: rgba(30, 27, 22, 0.10);
  --card: rgba(255, 255, 255, 0.35);
}

/* =========================
   WOW HELPERS
========================= */
.hover-tilt{
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.hover-tilt:hover{
  box-shadow: 0 20px 55px rgba(0,0,0,0.08);
}

.cursor-glow{
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  background: radial-gradient(circle, rgba(139,90,43,0.35) 0%, rgba(139,90,43,0.15) 40%, rgba(139,90,43,0) 70%);
  transform: translate(-999px, -999px);
  filter: blur(2px);
}

/* Background FX */
.bg-fx{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.blob{
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.45;
  transform: translateZ(0);
}

.blob-1{
  top: -180px;
  left: -160px;
  background: rgba(139, 90, 43, 0.25);
  animation: blobFloat1 12s ease-in-out infinite;
}

.blob-2{
  top: 25%;
  right: -220px;
  background: rgba(30, 27, 22, 0.16);
  animation: blobFloat2 14s ease-in-out infinite;
}

.blob-3{
  bottom: -220px;
  left: 20%;
  background: rgba(139, 90, 43, 0.20);
  animation: blobFloat3 16s ease-in-out infinite;
}

@keyframes blobFloat1{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(60px, 80px) scale(1.1); }
}
@keyframes blobFloat2{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-80px, 40px) scale(1.08); }
}
@keyframes blobFloat3{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(40px, -70px) scale(1.12); }
}

.noise{
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: multiply;
}

.vignette{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(244,239,230,0) 0%, rgba(244,239,230,0) 45%, rgba(10,8,6,0.14) 100%);
  opacity: 0.65;
}

/* Reading progress */
.reading-progress{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 99998;
  background: rgba(30, 27, 22, 0.06);
}

.reading-progress-bar{
  height: 100%;
  width: 0%;
  background: rgba(139, 90, 43, 0.45);
  border-radius: 999px;
  transition: width 0.12s ease;
}

/* =========================
   TERMS HERO
========================= */
.terms-hero{
  padding: 45px 10px 0px;
  position: relative;
  overflow: hidden;
}

.terms-hero-wrap{
  position: relative;
}

.terms-head{
  max-width: 820px;
}

.terms-kicker{
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(30, 27, 22, 0.45);
  margin-bottom: 10px;
}

.terms-title{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: clamp(30px, 4vw, 62px);
  line-height: 0.98;
  margin-bottom: 12px;
}

.terms-subtitle{
  font-size: 13px;
  line-height: 1.7;
  color: rgba(30, 27, 22, 0.55);
  max-width: 650px;
}

.terms-meta{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill{
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 27, 22, 0.12);
  background: rgba(255, 255, 255, 0.25);
  color: rgba(30, 27, 22, 0.75);
}

.pill.soft{
  color: rgba(30, 27, 22, 0.55);
}

.terms-watermark{
  position: absolute;
  right: -10px;
  top: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(120px, 18vw, 220px);
  opacity: 0.05;
  letter-spacing: 6px;
  pointer-events: none;
}

/* =========================
   TERMS CONTENT
========================= */
.terms-content{
  padding: 45px 0 0px;
}

.terms-grid{
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}

/* left nav */
.terms-nav{
  position: sticky;
  top: 20px;
  height: fit-content;
}

.nav-card{
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(30, 27, 22, 0.10);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(10px);
}

.nav-title{
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 12px;
  color: rgba(30, 27, 22, 0.85);
}

.nav-link{
  display: block;
  text-decoration: none;
  font-size: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  color: rgba(30, 27, 22, 0.65);
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover{
  background: rgba(30, 27, 22, 0.04);
  color: rgba(30, 27, 22, 0.95);
  border-color: rgba(139, 90, 43, 0.18);
  transform: translateY(-1px);
}

/* active section highlight */
.nav-link.active{
  background: rgba(139, 90, 43, 0.08);
  border-color: rgba(139, 90, 43, 0.22);
  color: rgba(30, 27, 22, 0.95);
}

/* right content cards */
.terms-main{
  display: grid;
  gap: 14px;
}

.terms-card{
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(30, 27, 22, 0.10);
  border-radius: 18px;
  padding: 18px 18px;
  backdrop-filter: blur(10px);
}

.terms-card h2{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  font-size: 18px;
}

.terms-card p{
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(30, 27, 22, 0.58);
  margin-bottom: 10px;
}

.terms-list{
  padding-left: 18px;
  margin: 8px 0 12px;
  display: grid;
  gap: 6px;
}

.terms-list li{
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(30, 27, 22, 0.58);
}

/* small note */
.note{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(139, 90, 43, 0.20);
  background: rgba(139, 90, 43, 0.06);
  font-size: 12px;
  color: rgba(30, 27, 22, 0.70);
}

/* contact box */
.contact-box{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.contact-label{
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(30, 27, 22, 0.45);
  margin-bottom: 4px;
}

.contact-value{
  font-size: 12.5px;
  color: rgba(30, 27, 22, 0.75);
}

/* mini CTA */
.terms-cta{
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(30, 27, 22, 0.10);
  background: rgba(30, 27, 22, 0.04);
}

.terms-cta-left h3{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 14px;
}

.terms-cta-left p{
  margin: 0;
  font-size: 12.5px;
  color: rgba(30, 27, 22, 0.55);
}

.terms-cta-btn{
  text-decoration: none;
  background: #241c18;
  color: #fff;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 950px){
  .terms-grid{
    grid-template-columns: 1fr;
  }

  .terms-nav{
    position: relative;
    top: unset;
  }

  .contact-box{
    grid-template-columns: 1fr;
  }

  .terms-cta{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow{ display: none !important; }
  .reading-progress{ display: none !important; }
}
