/* Legal pages — layout on top of tokens.css + fonts.css */

a:visited { color: inherit; }
footer .ft-col a:visited { color: var(--sand); }
.nav-cta:visited { color: var(--lime-white); }

:root {
  --ease-q: cubic-bezier(0.22, 0.61, 0.36, 1);
  --d-base: 700ms;
}
@media (max-width: 768px) {
  :root { --d-base: 450ms; }
}

.rv { opacity: 0; transform: translateY(24px); transition: opacity var(--d-base) var(--ease-q), transform var(--d-base) var(--ease-q); will-change: opacity, transform; }
.rv.in { opacity: 1; transform: none; }
.rv-d-1 { transition-delay: 100ms; }
.rv-d-2 { transition-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {
  .rv { transition: opacity 200ms ease-out; transform: none !important; }
  nav a::after { transition: none; }
  .nav-cta:hover {
    transform: none;
    box-shadow: none;
  }
}

body { background: var(--lime-white); }

.logo,
.logo:link,
.logo:visited,
.logo:hover,
.logo:active {
  text-decoration: none;
  color: inherit;
}
.nav-knot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
  margin: 0 0.25em;
}
.nav-knot svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-knot svg path {
  stroke: currentColor;
}
header .nav-knot,
.nav .nav-knot {
  color: var(--terracotta);
}
footer .nav-knot,
.ft-brand .nav-knot {
  color: var(--sunlight);
}
@media (prefers-reduced-motion: no-preference) {
  header .logo,
  .nav .logo {
    transition: color 200ms var(--ease-q);
  }
  header .logo:hover,
  .nav .logo:hover {
    color: var(--terracotta);
  }
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 400ms var(--ease-q), backdrop-filter 400ms var(--ease-q), border-color 400ms var(--ease-q), padding 400ms var(--ease-q);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
  padding: 14px 32px;
}
.nav .logo { font-family: var(--font-display); font-size: 22px; font-weight: 350; color: var(--deep-sea); letter-spacing: -0.02em; line-height: 1; display: inline-block; }
.nav .logo em { font-style: italic; color: var(--terracotta); font-weight: 300; }
.nav-mid { display: flex; gap: 28px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
nav a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
.nav-mid a { color: inherit; }
nav a:hover { color: var(--deep-sea); }
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
nav a:hover::after { width: 100%; }
.nav-right { display: flex; gap: 20px; align-items: center; }
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--olive);
  background: none; border: 0; cursor: pointer;
  padding: 6px 0;
  text-transform: uppercase;
}
.lang-toggle b { color: var(--deep-sea); font-weight: 500; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: var(--deep-sea);
  color: var(--lime-white);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}
.nav-cta::after { content: '→'; font-size: 13px; transition: transform 200ms var(--ease-q); }
@media (hover: hover) {
  .nav-cta:hover {
    background: var(--deep-sea-light);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--deep-sea) 15%, transparent);
  }
  .nav-cta:hover::after { transform: translateX(3px); }
}

@media (max-width: 900px) {
  .nav-mid { display: none; }
  .nav { padding: 16px 20px; }
  nav a {
    padding: 12px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-cta {
    min-height: 48px;
    padding: 12px 22px;
  }
  .legal-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.legal-skip { padding-top: 100px; }
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-pad) var(--space-10);
}
.legal-back,
.legal-back:visited {
  display: inline-block;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--olive);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 200ms var(--ease-q), text-decoration-color 200ms var(--ease-q);
}
.legal-back:hover {
  color: var(--deep-sea);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}

.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: var(--space-4);
}
.legal-eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--deep-sea);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  margin-bottom: var(--space-4);
}
.legal-page h1 em { font-style: italic; color: var(--terracotta); font-weight: 300; }

.legal-lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.88;
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

.legal-section { margin-top: var(--space-7); }
.legal-sec-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: var(--space-3);
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 350;
  color: var(--deep-sea);
  font-variation-settings: "opsz" 144;
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-4);
}
.legal-section p,
.legal-section li {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: var(--space-4);
  max-width: 65ch;
}
.legal-section ul { margin: 0 0 var(--space-4); padding-left: 1.2em; }
.legal-section li { margin-bottom: var(--space-2); }
.legal-section a {
  color: var(--deep-sea);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms var(--ease-q);
}
.legal-section a:hover { text-decoration-color: var(--terracotta); }

.legal-luna-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 300;
  margin-top: var(--space-3);
  max-width: 65ch;
}

.legal-address {
  font-style: normal;
  line-height: 1.7;
}

footer {
  background: var(--deep-sea);
  color: var(--lime-white);
  padding: 100px 32px 40px;
  margin-top: var(--space-8);
}
.ft-wrap { max-width: 1280px; margin: 0 auto; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.ft-brand .logo { font-family: var(--font-display); font-size: clamp(56px, 4.5vw, 68px); font-weight: 350; color: var(--lime-white); letter-spacing: -0.02em; line-height: 1; }
.ft-brand .logo em { display: block; font-style: italic; color: var(--sunlight); font-weight: 300; }
.ft-brand .tag { font-family: var(--font-display); font-style: italic; color: var(--sand); font-size: 18px; max-width: 320px; line-height: 1.4; margin-top: 16px; }
.ft-col h5 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sunlight); margin-bottom: 16px; font-weight: 500; }
.ft-col a { display: block; color: var(--sand); font-size: 14px; padding: 4px 0; text-decoration: none; transition: color 200ms var(--ease-q); }
.ft-col a:hover { color: var(--lime-white); }
.ft-meta a {
  color: var(--sand);
  text-decoration: none;
  transition: color 200ms var(--ease-q), text-decoration-color 200ms var(--ease-q);
}
.ft-meta a:hover {
  color: var(--sunlight);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}
.ft-meta {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,247,242,0.15);
  display: flex; justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sand);
  letter-spacing: 0.08em;
}
.ft-meta .ft-legal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  flex-shrink: 0;
}
.ft-meta .ft-legal-sep {
  margin: 0 0.4em;
  color: var(--olive);
}
@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-brand { grid-column: span 2; }
  .ft-meta { flex-direction: column; gap: 16px; }
}

.has-grain::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='ng'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23ng)' opacity='0.4'/%3E%3C/svg%3E");
}
