/* ============================================================
   Woodcraft — shared legal-page styles (privacy.html, terms.html)
   Mirrors the landing page's workshop palette and type system.
   ============================================================ */
:root {
  --bg: #14110d;
  --bg-2: #1a1612;
  --bg-3: #221d17;
  --ink: #f4ece0;
  --ink-2: #b8ad9c;
  --ink-3: #6f6557;
  --rule: rgba(244, 236, 224, 0.08);
  --rule-strong: rgba(244, 236, 224, 0.16);
  --amber: #f5c518;
  --amber-soft: #fbe07a;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background — same blueprint grid + glow as the landing page */
.page-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245, 197, 24, 0.06), transparent 60%),
    linear-gradient(180deg, #14110d 0%, #100d09 100%);
}
.page-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(244, 236, 224, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 236, 224, 0.022) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 80%);
}

header.top, main, footer.bottom { position: relative; z-index: 1; }

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

/* ---------- Top nav ---------- */
header.top {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  overflow: hidden;
  background: #1f1a14;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px -12px rgba(0,0,0,0.6);
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.brand-name em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
  margin-left: 2px;
}
.back-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--amber); }

/* ---------- Document ---------- */
main { padding: 88px 0 120px; }
@media (max-width: 720px) { main { padding: 56px 0 80px; } }

.doc-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.doc-eyebrow .bar { display: inline-block; width: 36px; height: 1px; background: var(--amber); }

h1.doc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.doc-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-bottom: 36px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.doc-meta strong { color: var(--ink-2); font-weight: 500; }

.doc-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 40px 0 8px;
  text-wrap: pretty;
}

/* Section blocks */
section.clause {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
section.clause:last-of-type { border-bottom: 0; }
section.clause h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
section.clause h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  transform: translateY(-2px);
}
section.clause h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 28px 0 12px;
}
section.clause p { color: var(--ink-2); margin: 0 0 16px; max-width: 64ch; }
section.clause p:last-child { margin-bottom: 0; }
section.clause ul { margin: 0 0 16px; padding: 0; list-style: none; max-width: 64ch; }
section.clause li {
  color: var(--ink-2);
  padding: 7px 0 7px 26px;
  position: relative;
}
section.clause li::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 1px;
  transform: rotate(45deg);
  opacity: 0.7;
}
section.clause a { color: var(--amber); text-decoration: none; border-bottom: 1px solid var(--rule-strong); transition: border-color 0.2s; }
section.clause a:hover { border-color: var(--amber); }
section.clause strong { color: var(--ink); font-weight: 600; }

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px 28px;
  margin-top: 8px;
}
.contact-card .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.contact-card .name { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 4px; }

/* ---------- Footer (matches landing) ---------- */
footer.bottom {
  padding: 32px 0 56px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.foot {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 32px; }
.foot a { color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--amber); }
.foot a[aria-current="page"] { color: var(--ink-2); }

/* ---------- Acceptance / Sender form (NDA page) ---------- */
.accept-block {
  margin-top: 16px;
  background: var(--bg-2);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 36px 36px 40px;
}
@media (max-width: 720px) { .accept-block { padding: 28px 24px 32px; } }
.accept-block .accept-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.accept-block h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.accept-block p {
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 60ch;
}
/* Sender injects a CROSS-ORIGIN iframe — its inner colors are set in
   Sender's Design tab. Here we only frame and position it. */
.sender-embed { width: 100%; min-height: 96px; }
.sender-embed .sender-form-field { width: 100%; }
.sender-embed iframe {
  max-width: 100% !important;
  box-shadow: none !important;
  color-scheme: normal;
}
