/* Aktiva — Shared styles for legal / secondary pages
   Used by: /pricing, /terms, /privacy, /refunds */

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

:root {
  --bg: #f6f5f1;
  --bg-alt: #edece8;
  --text: #1a1917;
  --text-muted: #6b6a63;
  --text-light: #a8a69e;
  --accent: #4338ca;
  --rule: rgba(26,25,23,0.1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(24px, 4vw, 64px);
  background: rgba(246,245,241,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  height: 42px;
  transform: scale(1.5);
  transform-origin: left center;
}

.back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.back-link:hover { color: var(--text); }

/* Main container */
main.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px clamp(24px, 5vw, 48px) 120px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
h1 em { font-style: italic; color: var(--text-muted); }

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 48px;
  max-width: 58ch;
}

.updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

/* Sections */
section { margin-bottom: 56px; }

h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
section:first-of-type h2 { padding-top: 0; border-top: none; }

h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin: 28px 0 12px;
  color: var(--text);
}

p, ul, ol {
  margin-bottom: 18px;
  color: var(--text-muted);
}

ul, ol { padding-left: 24px; }
li { margin-bottom: 8px; line-height: 1.6; }
li::marker { color: var(--text-light); }

strong { color: var(--text); font-weight: 500; }

a.inline {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a.inline:hover { color: var(--text); }

/* Callout box */
.callout {
  padding: 24px 28px;
  margin: 32px 0;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.callout p:last-child { margin-bottom: 0; }

/* FAQ (used in pricing) */
.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  font-family: 'Instrument Serif', serif;
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 400;
}
.faq-a { color: var(--text-muted); margin-bottom: 0; }

/* CTA box */
.cta-box {
  margin-top: 72px;
  padding: 40px 36px;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  text-align: center;
}
.cta-box h2 {
  color: var(--bg);
  border-top: none;
  padding-top: 0;
  margin-bottom: 12px;
}
.cta-box p { color: rgba(246,245,241,0.7); margin-bottom: 24px; }
.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--bg);
  color: var(--text);
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cta-btn:hover { transform: translateY(-2px); background: #fff; }

/* Table of contents */
.toc {
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 56px;
}
.toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-light);
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  column-count: 2;
  column-gap: 24px;
}
.toc li {
  counter-increment: toc;
  margin-bottom: 6px;
  break-inside: avoid;
  color: var(--text);
}
.toc li::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-right: 6px;
}
.toc li a {
  font-size: 0.92rem;
  color: var(--text);
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease;
}
.toc li a:hover { border-color: var(--accent); }

@media (max-width: 600px) {
  .toc ol { column-count: 1; }
}

/* Footer */
footer {
  padding: 40px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { transition: color 0.3s ease; }
footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  footer { flex-direction: column; align-items: flex-start; }
  .nav-logo { height: 32px; transform: scale(1.4); }
}
