/* === ZASHA BRAER LLC — Legal Pages Stylesheet === */

:root {
  --pri: #2d132c;
  --pri-light: #4a2d49;
  --acc: #c12f29;
  --acc-hover: #a1241e;
  --bg: #fcfaf7;
  --bg-alt: #f3efea;
  --card: #ffffff;
  --text: #1a1415;
  --text-med: #5a5153;
  --text-light: #8a8082;
  --border: #ddd8d0;
  --border-light: #ece7df;
  --shad: 0 2px 16px rgba(0,0,0,0.06);
  --rad: 6px;
  --rad-lg: 10px;
  --max-w: 860px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-hover); }

/* Navigation — same style as main nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--pri);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.nav-brand span { color: var(--acc); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: #ddccdc;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: #ffffff; }

body.has-nav { padding-top: var(--nav-h); }

/* Page header */
.legal-header {
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-light) 100%);
  color: #ffffff;
  padding: 52px 0 40px;
  text-align: center;
}
.legal-header .container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.legal-header h1 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 0.3em;
  font-weight: 700;
}
.legal-header p { color: #d4c4d3; font-size: 1.05rem; }
.legal-header .last-updated {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #b8a0b7;
}

/* Main content layout */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 40px;
}

/* Table of Contents sidebar */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--rad-lg);
  padding: 22px 20px;
  box-shadow: var(--shad);
}
.toc h2 {
  font-size: 1.05rem;
  color: var(--pri);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}
.toc ol {
  list-style: none;
  padding: 0;
}
.toc ol li { margin-bottom: 4px; }
.toc ol li a {
  display: block;
  padding: 6px 8px;
  font-size: 0.88rem;
  color: var(--text-med);
  border-radius: var(--rad);
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.toc ol li a:hover {
  background: var(--bg-alt);
  color: var(--acc);
  border-left-color: var(--acc);
}

/* Content area */
.legal-content { min-width: 0; }
.legal-content section {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--rad-lg);
  padding: 32px 34px;
  margin-bottom: 22px;
  box-shadow: var(--shad);
}
.legal-content section h2 {
  font-size: 1.3rem;
  color: var(--pri);
  margin-bottom: 0.8em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.legal-content section p {
  margin-bottom: 0.9em;
  color: var(--text-med);
  font-size: 0.98rem;
  line-height: 1.72;
}
.legal-content section ul {
  margin: 0.6em 0 1em;
  padding-left: 22px;
  list-style: disc;
}
.legal-content section ul li {
  margin-bottom: 6px;
  color: var(--text-med);
  font-size: 0.96rem;
}

/* Back to top link */
.back-top {
  display: flex;
  justify-content: center;
  padding: 12px 0 32px;
}
.back-top a {
  font-size: 0.92rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--pri);
  color: #d4c4d3;
  padding: 28px 0 20px;
  text-align: center;
}
.site-footer .footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.site-footer .footer-links a { color: #d4c4d3; font-size: 0.9rem; }
.site-footer .footer-links a:hover { color: #ffffff; }
.site-footer .footer-copy { font-size: 0.82rem; color: #a891a7; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #ffffff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Responsive */
@media (max-width: 800px) {
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 24px;
  }
  .toc {
    position: static;
    margin-bottom: 20px;
  }
  .legal-content section { padding: 24px 20px; }
  .legal-header h1 { font-size: 1.7rem; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--pri);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
  .nav-links.open { max-height: 240px; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}
