/* Shared styles for the legal pages (terms, refund policy, privacy policy). Same tokens as index.html. */
:root {
  --snow: #f7f6f2;
  --paper: #fff;
  --ink: #17211f;
  --ink-2: #4e5956;
  --ink-3: #616966;
  --line: #e3e2dc;
  --line-2: #cbcbc3;
  --red: #d45b42;
  --yellow: #e2a630; --yellow-t: #fbf0d6;
  --green: #27744f;  --green-t: #e3f1e8;
  --blue: #3a62c2;   --blue-t: #e8edf9;
  --pop-sm: 3px 3px 0 var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --radius: 18px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--snow);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,246,242,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.logo-mark::after {
  content: "";
  border-left: 10px solid var(--yellow);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.back {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  white-space: nowrap;
}
.back:hover { background: var(--ink); color: var(--snow); }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter) 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
h1 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1;
  letter-spacing: -.05em;
}
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Plain-language summary card */
.summary {
  margin-top: 36px;
  background: var(--yellow-t);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 24px 24px 26px;
}
.summary h2 { margin: 0; font-size: 20px; }
.summary h2::before { display: none; }
.summary ul { margin-top: 12px; }

/* Table of contents */
.toc {
  margin-top: 28px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.toc .label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol { margin-top: 10px; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { font-size: 15px; break-inside: avoid; padding: 2px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Body copy */
article { counter-reset: sec; }
article > section { margin-top: 44px; scroll-margin-top: 90px; }
article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -.035em;
  counter-increment: sec;
}
article > section > h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--red);
}
article h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.02em;
}
article p, article li { color: var(--ink-2); }
article p { margin-top: 12px; }
article ul, article ol.list { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; }
article strong { color: var(--ink); font-weight: 600; }
article a { text-decoration-color: var(--line-2); text-underline-offset: 3px; }
article a:hover { text-decoration-color: var(--ink); }

/* Data cards (privacy policy) */
.cards { margin-top: 18px; display: grid; gap: 16px; }
.dcard {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop-sm);
  padding: 20px 22px;
}
.dcard h3 { margin-top: 0; }
.dcard dl { margin-top: 10px; display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; }
.dcard dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.dcard dd { color: var(--ink-2); font-size: 15px; }

.callout {
  margin-top: 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-left: 8px solid var(--green);
  border-radius: 14px;
  padding: 16px 20px;
}
.callout p:first-child { margin-top: 0; }

/* Footer (same as the sales page) */
footer { border-top: 1px solid var(--line); padding: 44px 0 40px; background: var(--snow); }
.foot { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.foot-links a { font-size: 15px; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.foot-legal p { font-size: 13px; color: var(--ink-3); max-width: 900px; }
.foot-legal strong { color: var(--ink-2); font-weight: 600; }
.foot-legal .copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .dcard dl { grid-template-columns: 1fr; gap: 2px; }
  .dcard dd { margin-bottom: 8px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .back { padding: 9px 14px; font-size: 11px; }
}
