/* Shared styles for SniperDeals inner pages (About, Privacy, Terms, Disclosure, Thanks) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAF8F4;
  --ink: #1E2620;
  --green: #2F4A3A;
  --green-deep: #1F2A24;
  --sage: #E9EAE2;
  --muted: #77776F;
  --body: #4B4D47;
  --line: #DDDBD4;
  --card: #FFFFFF;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --pad: clamp(1rem, 4.5vw, 4rem);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: var(--bg); }

.wrap { padding: 0 var(--pad); max-width: 1360px; margin: 0 auto; }

.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--green);
}

/* Wordmark */
.wordmark {
  font-size: 1.85rem; line-height: 1; letter-spacing: -0.06em;
  color: var(--ink); white-space: nowrap; display: inline-flex; align-items: baseline;
}
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 400; }
.wordmark i {
  display: inline-block; width: 0.3em; height: 0.3em; border-radius: 50%;
  background: var(--green); margin-left: 0.12em;
}

/* Utility bar */
.util { background: var(--green-deep); color: #F1F0EA; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; height: 46px; }
.util span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.util span + span { letter-spacing: 0.1em; text-transform: none; font-size: 0.8rem; }

/* Nav */
header.nav { background: var(--bg); position: sticky; top: 0; z-index: 40; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px; border-bottom: 1px solid var(--line); gap: 1.5rem;
}
.nav-links { display: flex; gap: 2.25rem; list-style: none; align-self: stretch; }
.nav-links a {
  display: flex; align-items: center; height: 100%;
  font-size: 1.05rem; color: var(--muted); position: relative; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--green); font-weight: 700; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--green);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 6px; padding: 0.85rem 1.3rem; font-size: 1rem; color: var(--ink);
  transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--green); }
.btn-outline .plus { font-size: 1.35rem; line-height: 1; font-weight: 300; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--green); color: var(--bg);
  border-radius: 6px; padding: 0.95rem 1.5rem; font-size: 1rem; transition: background .2s;
}
.btn:hover { background: var(--green-deep); }

/* Page heading */
.page-head { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { display: block; margin-bottom: 1.5rem; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.04; letter-spacing: -0.035em;
  max-width: 18ch;
}
h1 em, h2 em { font-style: italic; color: var(--green); }
.page-head .lede { margin-top: 1.5rem; font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.updated { margin-top: 1.25rem; font-size: 0.88rem; color: var(--muted); }

/* Long-form content (legal pages) */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.toc { position: sticky; top: 120px; align-self: start; }
.toc .eyebrow { display: block; margin-bottom: 1rem; font-size: 0.68rem; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.92rem; counter-reset: toc; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--green); }

.prose { max-width: 44rem; color: var(--body); font-size: 1.02rem; line-height: 1.8; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: 1.85rem; line-height: 1.2; letter-spacing: -0.02em;
  margin: 3rem 0 1rem; scroll-margin-top: 120px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.75rem 0 0.5rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 0 0; padding-left: 1.25rem; }
.prose li { margin-top: 0.45rem; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

.note {
  background: var(--sage); border-radius: 6px; padding: 1.25rem 1.5rem;
  font-size: 0.95rem; color: var(--body); margin: 1.5rem 0;
}

/* Footer */
footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.foot { display: flex; align-items: center; gap: 3.5rem; padding: 2.75rem 0 1.25rem; flex-wrap: wrap; }
.foot .wordmark { font-size: 1.6rem; }
.foot .tag { color: var(--muted); font-size: 1.05rem; flex: 1; }
.foot .right { display: flex; gap: 2.5rem; font-size: 1rem; }
.foot .right a:hover { color: var(--green); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding: 0.25rem 0 1.25rem; font-size: 0.92rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--green); }
.fine { padding-bottom: 2.5rem; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { height: 76px; }
  .foot { gap: 1rem 2rem; }
  .foot .tag { flex-basis: 100%; order: 3; }
}
@media (max-width: 560px) {
  .util span:first-child { display: none; }
  .util .wrap { justify-content: center; }
  .wordmark { font-size: 1.55rem; }
  .btn-outline { padding: 0.65rem 0.95rem; font-size: 0.92rem; }
  .foot .right { gap: 1.5rem; flex-wrap: wrap; }
}

/* ── Mobile menu ── */
.menu-btn { display: none; }
.mnav { display: none; }
@media (max-width: 820px) {
  .nav-inner > .btn-outline, .nav-right { display: none; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; }
  .menu-btn span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .mnav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(0,0,0,.25); padding: 0.25rem var(--pad) 1.5rem; }
  .mnav[hidden] { display: none; }
  .mnav .mlink { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ink); }
  .mnav .mlink[aria-current="page"] { color: var(--green); font-style: italic; }
  .mnav-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
  .mnav-actions a { flex: 1 1 0; justify-content: center; min-height: 48px; white-space: nowrap; padding-left: 1rem; padding-right: 1rem; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 820px) {
  .toc ol { gap: 0; }
  .toc a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); }
  .foot .right a, .foot .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-inner .wordmark { min-height: 44px; }
}
