/* Shared styling for legal + info pages on stampita.com.
   Brand tokens mirror the landing index.html so static HTML pages feel
   continuous with the React landing without bundling React. */

:root {
  --stampita-ink:        #1A2238;
  --stampita-ink-dk:     #0E152A;
  --stampita-coral:      #C9A368;
  --stampita-coral-lt:   #DCBF7E;
  --stampita-coral-dk:   #9C7A40;
  --stampita-cream:      #F4ECDD;
  --stampita-paper:      #FAF6EE;
  --stampita-green:      #1F4734;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-ui:      'Outfit', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--stampita-cream);
  color: var(--stampita-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer — when content is shorter than the viewport, main grows
     and pushes the footer down to the bottom edge instead of floating. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
footer.site { flex-shrink: 0; }

a { color: var(--stampita-ink); }
a:hover { color: var(--stampita-coral-dk); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Header ─────────────────────────────────────────────────── */
header.site {
  background: rgba(247, 243, 233, 0.85);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(26, 34, 56, 0.08);
  position: sticky; top: 0; z-index: 50;
}
header.site .row {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
header.site a.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--stampita-ink);
  letter-spacing: -0.01em;
}
header.site a.brand img { width: 28px; height: 28px; display: block; object-fit: contain; }

header.site .home-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  color: rgba(26, 34, 56, 0.7);
}
header.site .home-link:hover { color: var(--stampita-ink); }

/* ─── Page header / title block ─────────────────────────────── */
.page-title {
  padding: 60px 0 28px;
}
.page-title h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.page-title .meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(26, 34, 56, 0.55);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ─── Article content ────────────────────────────────────────── */
article {
  padding: 16px 0 80px;
}
article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
}
article h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  margin: 26px 0 6px;
  color: var(--stampita-ink);
}
article p { margin: 0 0 14px; }
article ul, article ol { margin: 0 0 14px; padding-left: 22px; }
article li { margin-bottom: 6px; }
article strong { color: var(--stampita-ink-dk); }

article .placeholder {
  background: rgba(201, 163, 104, 0.12);
  border-left: 3px solid var(--stampita-coral);
  padding: 6px 10px;
  font-family: var(--font-ui);
  font-size: 13px;
}

/* ─── Coming-soon / minimal page hero ────────────────────────── */
.soon {
  padding: 80px 0 100px;
  text-align: center;
}
.soon h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.soon p {
  max-width: 520px; margin: 0 auto 28px;
  color: rgba(26, 34, 56, 0.7);
  font-size: 17px;
}
.soon .badge {
  display: inline-block;
  background: var(--stampita-green);
  color: #FAF6EE;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.soon a.cta {
  display: inline-block;
  padding: 11px 22px;
  background: var(--stampita-ink);
  color: var(--stampita-paper);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  text-decoration: none;
}
.soon a.cta:hover { background: var(--stampita-ink-dk); color: var(--stampita-paper); }

/* ─── Footer (full, mirrors the landing page) ────────────────── */
footer.site {
  background: var(--stampita-paper);
  border-top: 1px solid rgba(26, 34, 56, 0.08);
  padding: 60px 28px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(26, 34, 56, 0.65);
}
footer.site a { color: inherit; text-decoration: none; transition: color .2s; }
footer.site a:hover { color: var(--stampita-ink); }

footer.site .top {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}
footer.site .brand-col .lockup {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.01em; color: var(--stampita-ink); text-decoration: none;
}
footer.site .brand-col .lockup img { width: 32px; height: 32px; object-fit: contain; }
footer.site .brand-col .tag {
  margin-top: 16px; max-width: 280px;
  font-size: 13px; line-height: 1.55; color: rgba(26, 34, 56, 0.6);
}
footer.site .brand-col .social {
  display: flex; gap: 8px; margin-top: 18px;
}
footer.site .brand-col .social a {
  width: 34px; height: 34px; border-radius: 17px;
  border: 1px solid rgba(26, 34, 56, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  color: rgba(26, 34, 56, 0.7);
}
footer.site .col h4 {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stampita-ink); margin: 0 0 14px;
}
footer.site .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site .col a { color: rgba(26, 34, 56, 0.65); font-size: 13px; }

footer.site .bottom {
  max-width: 1180px; margin: 48px auto 0;
  padding-top: 22px; border-top: 1px solid rgba(26, 34, 56, 0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: rgba(26, 34, 56, 0.5);
}
footer.site .bottom .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 760px) {
  footer.site .top { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer.site .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  footer.site .top { grid-template-columns: 1fr; }
}

/* ─── Cookie banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 18px; left: 18px; right: 18px;
  max-width: 720px; margin: 0 auto;
  background: var(--stampita-ink);
  color: var(--stampita-paper);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45);
  display: none; /* shown via JS on first visit */
  z-index: 1000;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
}
#cookie-banner.show { display: block; }
#cookie-banner .cb-body { margin-bottom: 12px; }
#cookie-banner .cb-body a { color: var(--stampita-coral-lt); text-decoration: underline; }
#cookie-banner .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner button {
  font-family: var(--font-ui);
  font-weight: 700; font-size: 13px;
  border-radius: 999px;
  border: none; cursor: pointer;
  padding: 9px 18px;
  letter-spacing: -0.01em;
}
#cookie-banner .cb-accept { background: var(--stampita-coral); color: var(--stampita-ink-dk); }
#cookie-banner .cb-reject {
  background: transparent;
  color: var(--stampita-paper);
  border: 1px solid rgba(250, 246, 238, 0.4);
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  header.site .row { padding: 10px 18px; }
  .page-title { padding: 36px 0 18px; }
}
