/* ============================================================
   Ethos Ink Core — shared styles for standalone legal pages
   (Privacy Policy, Terms of Service). Plain CSS, no framework.
   Mirrors the "Studio Notes" (Direction 3) design system:
   cream + ink + burnt orange + lime, Bricolage / IBM Plex / JetBrains Mono.
   ============================================================ */

:root {
  --cream: #fdfaf2;
  --ink: #3a2a18;
  --ink-soft: rgba(58, 42, 24, 0.74);
  --ink-mute: rgba(58, 42, 24, 0.5);
  --rule: rgba(58, 42, 24, 0.16);
  --orange: #ad3e12;
  --orange-deep: #8a2f0c;
  --lime: #dbe85a;

  --display: 'Bricolage Grotesque', sans-serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Shared mono label ---- */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   Top bar
   ============================================================ */
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 48px;
  border-bottom: 1px dashed var(--rule);
  max-width: 1340px;
  margin: 0 auto;
}

/* Wordmark — variant G (mono CORE w/ lime swipe) */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.wm-core {
  position: relative;
  display: inline-block;
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.wm-swipe {
  position: absolute;
  left: -4px; right: -4px; top: 20%; bottom: 14%;
  background: var(--lime);
  transform: rotate(-1.5deg);
  border-radius: 2px;
  z-index: 0;
}
.wm-core-txt { position: relative; z-index: 1; }

.legal-nav .back {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .15s;
}
.legal-nav .back:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.legal-nav .back .arrow { font-size: 14px; line-height: 0; }

/* ============================================================
   Document body
   ============================================================ */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 40px;
}

.doc-eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
}

h1.doc-title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: 60px;
  margin: 0 0 22px;
}
/* lime highlighter under one word in the title */
.doc-title .mark {
  background: linear-gradient(180deg, transparent 56%, var(--lime) 56% 94%, transparent 94%);
  padding: 0 0.06em;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding-bottom: 30px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
}
.doc-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 13px;
}
.doc-meta .pill .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--lime);
  flex-shrink: 0;
}

.doc-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 30px 0 8px;
}
.doc-intro strong { color: var(--ink); font-weight: 600; }

/* Section headings */
.doc-body h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 27px;
  line-height: 1.15;
  margin: 52px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.doc-body h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.doc-body h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: 18px;
  line-height: 1.25;
  margin: 30px 0 4px;
  color: var(--ink);
}

.doc-body p,
.doc-body li {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-soft);
}
.doc-body p { margin: 14px 0; }
.doc-body strong { color: var(--ink); font-weight: 600; }

.doc-body ul {
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
.doc-body ul li {
  position: relative;
  padding-left: 24px;
  margin: 9px 0;
}
.doc-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--orange);
}
.doc-body a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(173, 62, 18, 0.32);
  transition: border-color .2s, color .2s;
}
.doc-body a:hover { color: var(--orange-deep); border-color: var(--orange-deep); }

/* dashed divider between major blocks */
.doc-body hr {
  border: none;
  border-top: 1px dashed var(--rule);
  margin: 46px 0;
}

/* contact / address block at the very end */
.doc-body .signoff {
  background: rgba(58, 42, 24, 0.035);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 22px;
}
.doc-body .signoff p { margin: 4px 0; font-size: 15px; }
.doc-body .signoff .name { color: var(--ink); font-weight: 600; }

/* ============================================================
   Footer — slimmed version of the site footer (orange band)
   ============================================================ */
.legal-footer {
  margin-top: 64px;
  background: var(--orange);
  color: var(--cream);
}
.legal-footer .inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 34px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.legal-footer .wordmark { color: var(--cream); }
.legal-footer .wm-core { color: var(--cream); }
.legal-footer .wm-core .wm-swipe { display: none; }
.legal-footer .wm-core-txt {
  padding-bottom: 4px;
  border-bottom: 2.5px solid var(--lime);
}
.legal-footer .meta {
  font-size: 13px;
  color: rgba(253, 250, 242, 0.82);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.legal-footer .links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.legal-footer .links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity .2s;
}
.legal-footer .links a:hover { opacity: 1; text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .legal-nav { padding: 16px 20px; }
  main { padding: 48px 22px 32px; }
  h1.doc-title { font-size: 40px; }
  .doc-body h2 { font-size: 23px; gap: 10px; }
  .legal-footer .inner { padding: 28px 22px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  h1.doc-title { font-size: 33px; }
  .legal-nav .back .txt { display: none; }
}
