/* ============================================================
   Winston Dane — Document pages (privacy, terms, contact)
   Long-form legal prose + the SMS opt-in form. Same tokens as the
   rest of the site: white surface, gold as a spice, square corners.
   ============================================================ */

.doc-head {
  background: var(--wd-navy);
  color: #fff;
  padding: clamp(5.5rem, 4rem + 5vw, 8rem) var(--wd-gutter) clamp(2.5rem, 2rem + 2vw, 4rem);
}
.doc-head__inner { max-width: var(--wd-maxw); margin: 0 auto; }
.doc-head .wd-eyebrow { color: var(--wd-gold); font-weight: 600; letter-spacing: 0.18em; }
.doc-head h1 {
  color: #fff; font-family: var(--wd-serif); font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.2rem);
  line-height: 1.08; margin: 0.7rem 0 0; max-width: 20ch;
}
.doc-head__meta { color: rgba(255,255,255,0.72); font-size: 0.82rem; margin: 1.1rem 0 0; letter-spacing: 0.02em; }

.doc {
  max-width: 78ch; margin: 0 auto;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--wd-gutter) clamp(4rem, 3rem + 4vw, 7rem);
  font-size: var(--wd-body-size); line-height: 1.8; color: var(--wd-body);
}
.doc h2 {
  font-family: var(--wd-serif); font-weight: 400; color: var(--wd-ink);
  font-size: var(--wd-h3); line-height: 1.25;
  margin: 2.6rem 0 0.4rem; padding-top: 1.6rem; border-top: 1px solid var(--wd-rule);
}
.doc h2:first-of-type { margin-top: 0.6rem; }
.doc h3 {
  font-family: var(--wd-sans); font-weight: 600; color: var(--wd-ink);
  font-size: 1rem; letter-spacing: 0.01em; margin: 1.8rem 0 0.3rem;
}
.doc p { margin: 0.8rem 0; }
.doc ul { margin: 0.8rem 0; padding-left: 1.2rem; }
.doc li { margin: 0.4rem 0; }
.doc b, .doc strong { color: var(--wd-ink); font-weight: 600; }
.doc a { color: var(--wd-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wd-gold); }
.doc a:hover { color: var(--wd-gold-deep, #a9762f); }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: #f6f3ee; padding: 1px 5px; }

/* The one call-out box — used for the SMS clauses a carrier reviewer looks for. */
.doc-note {
  background: #fdf9f3; border-left: 3px solid var(--wd-gold);
  padding: 1.1rem 1.3rem; margin: 1.4rem 0; font-size: 0.98rem;
}
.doc-note p:first-child { margin-top: 0; }
.doc-note p:last-child { margin-bottom: 0; }

.doc-toc { background: #f6f3ee; padding: 1.2rem 1.4rem; margin: 0 0 2.2rem; }
.doc-toc h4 { font-family: var(--wd-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wd-gold-deep, #a9762f); font-weight: 700; margin: 0 0 0.7rem; }
.doc-toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; line-height: 1.7; }

/* ---------- Contact / opt-in form ---------- */
.optin { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: start;
  max-width: var(--wd-maxw); margin: 0 auto;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--wd-gutter) clamp(4rem, 3rem + 4vw, 7rem); }
@media (max-width: 860px) { .optin { grid-template-columns: 1fr; } }

.optin__intro { font-size: var(--wd-body-size); line-height: 1.8; color: var(--wd-body); }
.optin__intro h2 { font-family: var(--wd-serif); font-weight: 400; color: var(--wd-ink); font-size: var(--wd-h3); margin: 0 0 0.6rem; }
.optin__contact { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--wd-rule); font-size: 0.94rem; line-height: 1.9; }
.optin__contact b { color: var(--wd-ink); }

.optin__card { background: #fff; border: 1px solid var(--wd-rule); box-shadow: 0 18px 50px rgba(8,17,38,0.10); padding: clamp(1.4rem, 2.5vw, 2rem); }
.optin__card h2 { font-family: var(--wd-serif); font-weight: 400; color: var(--wd-ink); font-size: 1.5rem; margin: 0 0 1.1rem; }
.optin__card label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wd-slate-500); font-weight: 600; margin: 0 0 0.35rem; }
.optin__card input, .optin__card textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--wd-rule); border-radius: 0;
  font-family: var(--wd-sans); font-size: 0.95rem; color: var(--wd-ink); background: #fff;
}
.optin__card input:focus, .optin__card textarea:focus { outline: none; border-color: var(--wd-gold); }
.optin__card textarea { min-height: 96px; resize: vertical; }
.optin__field { margin-bottom: 1rem; }
.optin__card .wd-btn--gold { width: 100%; text-align: center; margin-top: 0.4rem; border: none; cursor: pointer; font-family: var(--wd-sans); }

/* The consent block. Deliberately NOT pre-checked and NOT required — the
   checkbox is the entire legal basis for texting anyone, so it has to be a
   real, deliberate action by the consumer. Do not add `checked` or `required`. */
.optin__consent { margin: 1.2rem 0 0.4rem;
  background: #fdf9f3; border-left: 3px solid var(--wd-gold); padding: 1rem 1.1rem; }
.optin__consent label { display: flex; gap: 0.75rem; align-items: flex-start;
  text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.82rem;
  line-height: 1.65; color: var(--wd-body); margin: 0; cursor: pointer; }
.optin__consent input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--wd-gold-deep, #a9762f); }
.optin__consent-text { display: block; }
.optin__consent-links { font-size: 0.8rem; color: var(--wd-body); margin: 0.6rem 0 0; }
.optin__consent-links a { color: var(--wd-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wd-gold); }

/* Plain-text restatement of the SMS terms, outside the form. Redundant for a human,
   but it gives a crawler a second, tag-free copy of every required disclosure. */
.optin__terms { grid-column: 1 / -1; margin-top: clamp(2rem, 3vw, 3rem); padding-top: 1.6rem;
  border-top: 1px solid var(--wd-rule); font-size: 0.86rem; line-height: 1.8; color: var(--wd-body); max-width: 82ch; }
.optin__terms h3 { font-family: var(--wd-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wd-gold-deep, #a9762f); font-weight: 700; margin: 0 0 0.7rem; }
.optin__micro { font-size: 0.76rem; color: var(--wd-muted); line-height: 1.6; margin: 0.9rem 0 0; }
.optin__thanks { display: none; text-align: center; padding: 2rem 0.5rem; }
.optin__thanks h3 { font-family: var(--wd-serif); font-weight: 400; font-size: 1.5rem; color: var(--wd-ink); margin: 0 0 0.5rem; }
