/* Eleanote legal pages — shared styling. Matches the brand tokens from
   the main site and the auth pages (cream paper, brand teal, Inter). */
:root {
  --ink: #0d2b30;
  --teal: #14515c;
  --teal-deep: #0e3d46;
  --paper: #fbf7ec;
  --line: #e5dcc1;
  --muted: #6a6e6a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header — mirrors the site header */
.legal-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { text-decoration: none; }
.brand-word {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #173D47;
}
.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.back:hover { color: var(--teal-deep); }

/* Site menu (dropdown) — injected by /menu.js into the header so every page
   can jump straight to any other page. The logo (left) is the home link. */
.menu-wrap { position: relative; display: inline-flex; }
.menu-btn {
  -webkit-appearance: none; appearance: none;
  border: 1px solid rgba(13, 43, 48, 0.14);
  background: #fffdf7;
  border-radius: 999px;
  height: 38px; padding: 0 0.9rem 0 0.8rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer; color: var(--ink);
  font-family: inherit; font-size: 0.92rem; font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.menu-btn:hover { border-color: rgba(13, 43, 48, 0.28); box-shadow: 0 2px 8px rgba(13, 43, 48, 0.08); }
.menu-icon { position: relative; width: 16px; height: 12px; }
.menu-icon span { position: absolute; left: 0; right: 0; height: 1.6px; background: var(--ink); border-radius: 999px; transition: transform 0.22s ease, opacity 0.16s ease, top 0.22s ease; }
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 5px; }
.menu-icon span:nth-child(3) { top: 10px; }
.menu-wrap.open .menu-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-wrap.open .menu-icon span:nth-child(2) { opacity: 0; }
.menu-wrap.open .menu-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(300px, calc(100vw - 2rem));
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(13, 43, 48, 0.18);
  padding: 0.5rem;
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}
.menu-wrap.open .menu-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.menu-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.85rem; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.96rem;
}
.menu-panel a:hover { background: rgba(20, 81, 92, 0.06); color: var(--teal-deep); }
.menu-panel a .arrow { color: var(--muted); font-weight: 400; }
.menu-panel hr { border: 0; height: 1px; background: var(--line); margin: 0.35rem 0.4rem; }
.menu-panel a[hidden] { display: none !important; }

/* Document column */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.legal-doc h1 {
  font-size: 2rem;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.doc-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2.4rem;
}
.legal-doc h2 {
  font-size: 1.15rem;
  color: var(--teal-deep);
  margin: 2.2rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.legal-doc p { margin-bottom: 1rem; }
.legal-doc ul { margin: 0 0 1rem 1.4rem; }
.legal-doc li { margin-bottom: 0.5rem; }
.legal-doc a { color: var(--teal); }

/* Draft / status banner */
.draft-banner {
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 2rem;
  background: #fdf3d8;
  border: 1px solid #e6d9a8;
  color: #6b5618;
}
.draft-banner.strong {
  background: #fbe6e2;
  border-color: #e7b9b0;
  color: #8a2e22;
  font-weight: 500;
}

/* Placeholder body */
.placeholder-note {
  color: var(--muted);
  font-size: 1.02rem;
}
.placeholder-note ul { margin: 1rem 0 1rem 1.3rem; }
.placeholder-note li { margin-bottom: 0.4rem; }

/* Footer */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.legal-footer a { color: var(--teal); text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-doc { padding: 1.6rem 1.1rem 3rem; }
  .legal-doc h1 { font-size: 1.6rem; }
}
