/* Trenzo shared legal page styles. Aligned with the premium landing system. */
:root {
  --bg: #FAF9F5;
  --bg-elev: #FFFFFF;
  --bg-tinted: #F5F4EF;
  --ink: #1A171D;
  --ink-2: oklch(0.34 0.008 60);
  --ink-3: oklch(0.56 0.008 60);
  --line: oklch(0.88 0.008 78);
  --line-2: oklch(0.82 0.01 78);
  --accent: #0F6B45;
  --accent-deep: #14532D;
  --shadow-soft: 0 1px 0 oklch(1 0 0 / 0.7) inset, 0 1px 2px oklch(0 0 0 / 0.04), 0 18px 42px -26px oklch(0.2 0.02 60 / 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(60vw 48vh at 86% -12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%),
    linear-gradient(180deg, #FAF9F5 0%, #F7F6F0 46%, #FAF9F5 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: "Geist Mono", ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 3px; }

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgb(250 249 245 / 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.58) inset;
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: baseline;
  font-weight: 650; font-size: 23px; letter-spacing: -0.052em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
}
.brand .o { color: var(--accent-deep); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.58);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.62) inset;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.back-link:hover {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line-2));
  transform: translateY(-1px);
}
.back-link .arr {
  font-family: "Geist Mono", monospace;
  transition: transform 160ms ease;
}
.back-link:hover .arr { transform: translateX(-2px); }
@media (max-width: 480px) {
  .nav-inner { padding: 0 20px; }
  .back-link .label { display: none; }
}

main.legal {
  width: min(100% - 48px, 820px);
  margin: 0 auto;
  padding: 72px 0 112px;
}
@media (max-width: 720px) {
  main.legal {
    width: min(100% - 40px, 820px);
    padding: 48px 0 80px;
  }
}

.crumbs {
  font-family: "Geist Mono", monospace;
  font-size: 11px; color: var(--ink-3);
  margin-bottom: 28px;
  display: flex; gap: 8px; align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.crumbs a { color: var(--ink-3); transition: color 160ms ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.45; }
.crumbs .here { color: var(--ink-2); }

.legal h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02; letter-spacing: -0.04em;
  font-weight: 650;
  margin: 0 0 16px;
  max-width: 12ch;
}
.updated {
  display: inline-flex;
  align-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 12px; color: var(--ink-3);
  margin: 0 0 48px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.58);
}
.legal h2 {
  font-size: 15px; letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Geist Mono", monospace;
  font-weight: 600;
  color: var(--ink-3);
  margin: 44px 0 14px;
}
.legal p:not(.updated),
.legal ul {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.legal p:not(.updated) {
  margin: 0 0 12px;
  color: var(--ink-2);
  line-height: 1.68;
  font-size: 16px;
  padding: 18px 20px;
}
.legal ul {
  margin: 0 0 12px;
  padding: 18px 20px 18px 42px;
  color: var(--ink-2);
  line-height: 1.68;
}
.legal ul li { margin-bottom: 6px; }
.legal ul li:last-child { margin-bottom: 0; }
.legal a.inline {
  color: var(--accent-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  transition: border-color 160ms ease, color 160ms ease;
}
.legal a.inline:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact {
  margin-top: 56px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-elev), color-mix(in srgb, var(--bg-elev) 82%, var(--bg-tinted)));
  box-shadow: var(--shadow-soft);
}
.contact h2 {
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: none;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 20px;
}
.legal .contact p {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.contact p.addr { white-space: normal; }

footer.legal-footer {
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.34);
}
.legal-footer-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 32px;
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  font-family: "Geist Mono", monospace; font-size: 11px;
  color: var(--ink-3);
}
.legal-footer-inner .links { display: flex; gap: 20px; flex-wrap: wrap; }
.legal-footer-inner .links a:hover { color: var(--ink); }
