/* ═══════════════════════════════════════════════
   LandPath — Legal pages (Privacy / Terms)
   Self-contained: tokens + nav + footer + content.
   Matches index.html design system.
═══════════════════════════════════════════════ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Manrope', sans-serif;
  background: #F0EDE6;
  color: #1E1C18;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }

/* DESIGN TOKENS */
:root {
  --sand:        #F0EDE6;
  --sand-dark:   #E8E3D9;
  --parchment:   #EAE5DB;
  --surface:     #FAF8F4;
  --surface-dim: #F3EFE7;
  --ink:         #1E1C18;
  --ink-mid:     #3A3830;
  --ink-soft:    #6B6558;
  --ink-faint:   #9D9488;
  --moss:        #3B4D2E;
  --moss-mid:    #4F6840;
  --moss-pale:   #E6EDE2;
  --moss-muted:  #8FA884;
  --clay:        #8C6645;
  --gold:        #C8A97C;
  --clay-pale:   #F0E8DF;
  --earth:       #1A1F14;
  --earth-mid:   #252B1C;
  --rule:        #DDD8CE;
  --rule-soft:   #E8E3DA;
  --sh-sm: 0 1px 6px rgba(0,0,0,0.05), 0 2px 16px rgba(0,0,0,0.04);
  --sh-md: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.03);
  --sh-lg: 0 8px 48px rgba(0,0,0,0.10);
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --max: 1140px;
}

/* UTILITIES */
.wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* ═══════════════════════════════════
   NAVBAR (always solid on legal pages)
═══════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(240, 237, 230, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo-img { height: 28px; width: auto; display: block; flex-shrink: 0; object-fit: contain; filter: brightness(0); opacity: 0.92; }
.nav-logo .word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--moss); border: 1px solid transparent; color: #fff;
  font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 20px; border-radius: var(--r-sm); text-decoration: none;
  transition: background 0.22s;
}
.nav-cta:hover { background: var(--moss-mid); }
.nav-burger { display: none; cursor: pointer; gap: 4px; flex-direction: column; padding: 4px 0; }
.nav-burger span { display: block; width: 20px; height: 1.5px; background: var(--ink-mid); border-radius: 2px; transition: 0.3s; }
.nav-burger.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ═══════════════════════════════════
   LEGAL PAGE HEADER
═══════════════════════════════════ */
.legal-hero {
  background: var(--earth);
  color: rgba(255,255,255,0.6);
  padding: 150px 0 64px;
}
.legal-hero .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moss-muted); margin-bottom: 20px;
}
.legal-hero .kicker::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--moss-muted); }
.legal-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5.5vw, 60px); font-weight: 600; line-height: 1.08;
  color: #fff; letter-spacing: -0.01em; margin-bottom: 16px;
}
.legal-hero .updated { font-size: 13px; color: rgba(255,255,255,0.4); letter-spacing: 0.02em; }

/* ═══════════════════════════════════
   LEGAL CONTENT
═══════════════════════════════════ */
.legal-body { padding: clamp(56px, 8vw, 88px) 0 clamp(64px, 9vw, 100px); }
.legal-body .wrap { max-width: 760px; }
.legal-intro {
  font-size: 17px; line-height: 1.75; color: var(--ink-mid);
  padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--rule);
}
.legal-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; line-height: 1.18;
  color: var(--ink); letter-spacing: -0.01em; margin: 48px 0 16px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--ink-mid);
  margin: 28px 0 10px;
}
.legal-body p { font-size: 15.5px; line-height: 1.78; color: var(--ink-soft); margin-bottom: 16px; }
.legal-body ul { list-style: none; margin: 4px 0 20px; padding: 0; }
.legal-body ul li {
  position: relative; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft);
  padding-left: 22px; margin-bottom: 11px;
}
.legal-body ul li::before {
  content: ''; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--moss-muted);
}
.legal-body a { color: var(--moss); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--moss-mid); }
.legal-body strong { color: var(--ink-mid); font-weight: 600; }

.legal-note {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 22px 26px; margin: 32px 0;
}
.legal-note p { margin-bottom: 0; font-size: 14.5px; color: var(--ink-soft); }

.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 48px; font-size: 13.5px; font-weight: 600; color: var(--moss);
  text-decoration: none; transition: gap 0.2s;
}
.legal-back:hover { gap: 12px; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer { background: var(--earth); padding: 72px 0 40px; color: rgba(255,255,255,0.52); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.f-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 14px; }
.f-logo-img { height: 30px; width: auto; display: block; flex-shrink: 0; object-fit: contain; opacity: 0.95; }
.f-logo .word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.88);
  letter-spacing: -0.02em; line-height: 1;
}
.f-brand p { font-size: 13.5px; line-height: 1.65; max-width: 240px; margin-bottom: 20px; }
.f-contacts { display: flex; flex-direction: column; gap: 8px; }
.f-contacts a { font-size: 13px; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.2s; }
.f-contacts a:hover { color: rgba(255,255,255,0.78); }
.f-col h5 { font-size: 10.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 18px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.f-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.52); text-decoration: none; transition: color 0.2s; }
.f-col ul li a:hover { color: rgba(255,255,255,0.88); }
.footer-bot { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.footer-bot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bot-row p { font-size: 12.5px; }
.f-legal-links { display: flex; gap: 18px; }
.f-legal-links a { font-size: 12.5px; color: rgba(255,255,255,0.34); text-decoration: none; transition: color 0.2s; }
.f-legal-links a:hover { color: rgba(255,255,255,0.65); }
.footer-disclaimer { font-size: 11.5px; color: rgba(255,255,255,0.22); line-height: 1.65; max-width: 700px; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-inner { height: 62px; padding: 0 16px; }
  .nav-logo-img { height: 24px; }
  .nav-logo { gap: 9px; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 12px; right: 12px; z-index: 930;
    background: rgba(240, 237, 230, 0.98);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--rule); border-radius: 12px; padding: 16px;
    flex-direction: column; gap: 4px; box-shadow: var(--sh-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--ink-mid); font-size: 14px; padding: 10px 8px; border-radius: 8px; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .legal-hero { padding: 120px 0 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bot-row { flex-direction: column; align-items: flex-start; }
}
