/*
 * Styling for the static legal pages: privacy.html, terms.html, sms-consent.html.
 *
 * These pages are plain HTML on purpose. Carrier and compliance reviewers read
 * the HTML as it is served, before any JavaScript runs, and the rest of this
 * site is a React app that renders nothing until its bundle loads. So the legal
 * pages carry their own copy of the brand instead of the app's Tailwind build.
 *
 * Colours and type follow src/brand/tokens.css. Keep them in step.
 */

:root {
  --graphite: #26282d;
  --graphite-dark: #1e2024;
  --graphite-mid: #494c52;
  --paper: #f7f7f8;
  --violet: #b07fe8;
  --violet-deep: #7b4eb2;
  --mist: #dcdddf;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
@media (min-width: 1024px) { .wrap { padding: 0 64px; } }

.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 16px;
  color: var(--graphite-mid);
  margin: 0;
}

/* Header: the mark, and the link back. */
.site-head {
  background: var(--graphite);
  color: var(--paper);
  padding: 20px 0;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mark {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.mark b {
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.62em;
  height: 1em;
  border: 0.065em solid var(--violet);
}
.site-head a.back {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(247, 247, 248, 0.7);
  text-decoration: none;
}
.site-head a.back:hover { color: var(--violet); }

/* The document itself. */
main { padding: 64px 0 96px; }
@media (min-width: 1024px) { main { padding: 96px 0 128px; } }

.doc { max-width: 640px; }

h1 {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.05;
  margin: 24px 0 0;
}
@media (min-width: 1024px) { h1 { font-size: 56px; } }

.lede {
  font-size: 19px;
  line-height: 32px;
  color: var(--graphite-mid);
  margin: 24px 0 0;
}

h2 {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.15;
  margin: 56px 0 0;
}
h2 + * { margin-top: 16px; }

p { margin: 20px 0 0; }
ul { margin: 20px 0 0; padding-left: 22px; }
li { margin-top: 8px; }
li::marker { color: var(--graphite-mid); }
strong { font-weight: 600; }

a { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(73, 76, 82, 0.5); }
a:hover { color: var(--violet-deep); }

blockquote {
  margin: 24px 0 0;
  padding-left: 20px;
  border-left: 1px solid var(--mist);
  color: var(--graphite-mid);
}
blockquote p:first-child { margin-top: 0; }

.updated { margin-top: 32px; }

/* Consent statements, shown as they appear on the form. */
.consent {
  border: 1px solid var(--mist);
  background: #fff;
  padding: 20px 24px;
  margin-top: 16px;
}
.consent .label { margin-bottom: 10px; }
.consent p { margin: 0; font-size: 15px; line-height: 24px; }

/* The opt-in form. */
.optin {
  border: 1px solid var(--mist);
  background: #fff;
  padding: 28px 24px;
  margin-top: 32px;
}
@media (min-width: 640px) { .optin { padding: 32px; } }
.optin .field { margin-top: 20px; }
.optin .field:first-of-type { margin-top: 0; }
.optin label.name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--graphite-mid);
  display: block;
}
.optin .opt {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: normal;
  text-transform: none;
  opacity: 0.7;
}
.optin input[type="text"],
.optin input[type="email"],
.optin input[type="tel"] {
  margin-top: 8px;
  height: 48px;
  width: 100%;
  border: 1px solid rgba(38, 40, 45, 0.3);
  border-radius: 4px;
  background: transparent;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  color: var(--graphite);
}
.optin input:focus-visible {
  outline: 2px solid var(--violet-deep);
  outline-offset: 1px;
}
.optin .consents { margin-top: 24px; }
.optin .check {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--graphite-mid);
  margin-top: 14px;
}
.optin .check:first-child { margin-top: 0; }
.optin .check input[type="checkbox"] {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--violet-deep);
}
.optin .links { margin-top: 14px; font-size: 13px; color: var(--graphite-mid); }
.optin .links .sep { padding: 0 8px; opacity: 0.5; }
.optin button {
  margin-top: 28px;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--graphite);
  color: var(--paper);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.optin button:hover { background: var(--graphite-dark); }

/* Footer. */
footer.site-foot {
  background: var(--graphite);
  color: var(--paper);
  padding: 56px 0;
  margin-top: 96px;
}
footer.site-foot p { color: rgba(247, 247, 248, 0.6); }
footer.site-foot a { color: rgba(247, 247, 248, 0.85); text-decoration: none; }
footer.site-foot a:hover { color: var(--violet); }
footer.site-foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
footer.site-foot .rule {
  border-top: 1px solid rgba(247, 247, 248, 0.15);
  padding-top: 24px;
}

/* Business name, address, phone, email: in the document and in the footer. */
address.contact {
  font-style: normal;
  border: 1px solid var(--mist);
  background: #fff;
  padding: 20px 24px;
  margin-top: 20px;
}
address.contact p { margin: 16px 0 0; }
address.contact p:first-child { margin-top: 0; }

address.foot-contact { font-style: normal; }
address.foot-contact p { margin: 6px 0 0; }
address.foot-contact p:first-child { margin-top: 0; }
footer.site-foot .copyright { margin-top: 20px; }
