/* Shared by /privacy/, /terms/ and /sms/. The site convention is a per-section
   page.css, but these three are one document set and must look identical, so
   they share a stylesheet rather than triplicating it. The typographic scale
   came from the since-retired consulting page and matches the product pages. */

:root {
  --surface: #101010;
  --rule: #24282c;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin: 0 auto;
  max-width: 760px;
  padding: 2.5rem 1.5rem 3rem;
}

.page > header {
  margin-bottom: 0.25rem;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.5rem 0 0;
}

.standfirst {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 1rem 0 0;
}

.updated {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin: 1.25rem 0 0;
}

.page h2 {
  border-top: 1px solid var(--rule-faint);
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
  padding-top: 1.5rem;
}

.summary h2 {
  border-top: none;
  padding-top: 0;
}

.page p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

.page p:last-child {
  margin-bottom: 0;
}

.page strong {
  color: var(--text);
  font-weight: 500;
}

.page code {
  background: var(--surface);
  border: 1px solid var(--rule-faint);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 0.08em 0.35em;
}

.summary ul {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding-left: 1.15rem;
}

.summary li {
  margin-bottom: 0.4rem;
}

/* Term-then-definition list. The label sits on its own line so a long
   definition does not indent raggedly around it. */
.fields {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.fields li {
  border-left: 2px solid var(--rule);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.85rem;
  padding-left: 0.9rem;
}

.fields .k {
  color: var(--text);
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.note {
  border-left: 2px solid var(--red-dark);
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 0.9rem;
}

.back {
  border-top: 1px solid var(--rule-faint);
  margin: 0;
  padding-top: 1.75rem;
}

.back a,
.back a:visited {
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.back a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* ---- SMS opt-in form ---------------------------------------------------- */

.optin {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.optin h2 {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.optin .field {
  display: block;
  margin-bottom: 1.1rem;
}

.optin .field > span {
  color: var(--text);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.optin input[type="tel"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.optin input[type="tel"]:focus-visible {
  border-color: var(--link);
  outline: 2px solid var(--red-dark);
  outline-offset: 1px;
}

/* Global `.field span` uppercases every span inside a field label, which is
   right for the label and wrong for helper text. Needs to out-specify it. */
.optin .field > span.hint {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  letter-spacing: normal;
  margin: 0.35rem 0 0;
  text-transform: none;
}

/* The consent control. Deliberately a plain unchecked checkbox with a large
   hit area and no styling that could imply a default state. */
.consent {
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding: 0.9rem;
}

.consent input[type="checkbox"] {
  accent-color: var(--red);
  flex: 0 0 auto;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  width: 1.15rem;
}

.consent span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.optin button[type="submit"] {
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  width: 100%;
}

.optin button[type="submit"]:hover:not(:disabled) {
  background: #b32828;
}

.optin button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 1.1rem 0 0;
}

.optin .honeypot {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

@media (max-width: 520px) {
  .optin {
    padding: 1.1rem;
  }
}
