/* Shared stylesheet for the three policy pages (terms, refund, privacy).
   These pages exist because Paddle will not approve a seller without them, and
   because the sales page already promised a fourteen-day refund that nothing
   in writing backed up.

   Deliberately plainer than the marketing pages: same paper, same type, no
   reveals, no video, no scroll animation. A policy page that animates reads
   like it is selling something, and the whole point of these is that they are
   the part of the site that is not selling. */

:root {
  --paper: #F7F3EB;
  --paper-deep: #EFE9DD;
  --ink: #1B1916;
  --muted: #6E6659;
  --faint: #9A9184;
  --line: rgba(27, 25, 22, 0.14);
  --clay: #9E6248;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gut: clamp(24px, 6vw, 48px);
  --measure: 720px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* The bar is full-bleed but its contents share the text measure, so the brand
   mark sits directly above the first line of the document rather than 120px to
   the left of it. */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 243, 235, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--line);
  padding: 0 var(--gut);
}
.nav-inner {
  max-width: var(--measure); margin: 0 auto; height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.seal {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border: 0.8px solid var(--ink);
  font-size: 12px; line-height: 1; font-family: var(--serif);
}
.brand-name { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; }
.nav-back {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .3s;
  white-space: nowrap;
}
.nav-back:hover { color: var(--ink); }

/* The measure includes the gutter, so the text column itself is exactly
   --measure wide. Setting max-width to --measure alone would subtract the
   padding from it and push the first character of every paragraph one gutter
   right of the brand mark above it. */
main {
  max-width: calc(var(--measure) + 2 * var(--gut));
  margin: 0 auto;
  padding: clamp(44px, 7vh, 76px) var(--gut) clamp(48px, 8vh, 88px);
}

.eyebrow {
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}

h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.14; letter-spacing: -0.015em;
  margin: 14px 0 12px;
}
h1 em { font-style: italic; color: var(--clay); }

.updated {
  font-size: 12px; color: var(--faint); letter-spacing: 0.04em;
  padding-bottom: 28px; border-bottom: 0.5px solid var(--line);
}

.lede {
  font-family: var(--serif); font-size: 18px; line-height: 1.75;
  color: var(--muted); margin: 28px 0 4px;
}

section { padding: 28px 0 2px; }
section + section { border-top: 0.5px solid var(--line); }

h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 19.5px; line-height: 1.4;
  margin-bottom: 12px;
  display: flex; gap: 12px; align-items: baseline;
}
h2 .num {
  flex: none; font-family: var(--sans); font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.14em; color: var(--clay);
  /* Optically centres the numeral against the serif cap height beside it. */
  transform: translateY(-2px);
}

p { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
p.quiet { color: var(--muted); }
strong { font-weight: 500; }
em { font-style: italic; }

a { color: var(--ink); text-decoration: none; border-bottom: 0.5px solid var(--line); transition: border-color .3s; }
a:hover { border-bottom-color: var(--ink); }

ul { list-style: none; margin: 2px 0 16px; }
ul:last-child { margin-bottom: 0; }
ul li {
  font-size: 15px; padding: 9px 0 9px 24px; position: relative;
  border-bottom: 0.5px solid var(--line);
}
ul li::before {
  content: ''; position: absolute; left: 0; top: 21px;
  width: 9px; height: 0.8px; background: var(--clay);
}
ul li:last-child { border-bottom: 0; }

.note {
  background: var(--paper-deep);
  border-left: 1.5px solid var(--clay);
  padding: 20px 24px;
  margin: 20px 0;
}
.note p { margin-bottom: 10px; }
.note p:last-child { margin-bottom: 0; }

/* The seller-identity block. Paddle's review looks for a legal name and an
   address on the site; keeping them in a definition list means the values can
   come from the environment without the layout shifting when they change. */
dl.kv { margin: 4px 0 16px; }
dl.kv > div {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px;
  padding: 11px 0; border-bottom: 0.5px solid var(--line);
}
dl.kv > div:last-child { border-bottom: 0; }
dl.kv dt { font-size: 13px; color: var(--muted); }
dl.kv dd { font-size: 15px; }

footer { border-top: 0.5px solid var(--line); padding: 26px var(--gut) 40px; }
.foot-line {
  max-width: var(--measure); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
}
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: inherit; text-decoration: none; border-bottom: 0.5px solid transparent; transition: border-color .3s; }
footer a:hover { border-bottom-color: var(--muted); }

@media (max-width: 620px) {
  .brand-name { display: none; }
  dl.kv > div { grid-template-columns: 1fr; gap: 2px; }
  ul li { padding-left: 20px; }
}
