/*
 * The three plain pages Twilio's reviewers read: /sms-opt-in, /privacy, /terms.
 * Same ground, type and logo as the landing page (src/landing/landing.css).
 * These pages are static HTML on purpose, so they work with scripts off; the
 * wording in them is the reviewed record and is not this file's business.
 */

:root {
  --bg: #d6d7da;
  --ink: #17181b;
  --muted: #50525a;
  --card: #c9cace;
  --rule: rgba(23, 24, 27, 0.05);
  --line: rgba(23, 24, 27, 0.16);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #1b1c1f;
  --ink: #dcdde0;
  --muted: #9a9ca3;
  --card: #26272b;
  --rule: rgba(220, 221, 224, 0.04);
  --line: rgba(220, 221, 224, 0.16);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
}

body {
  --c: calc(100% / 12);
  max-width: 44rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 132px 20px 0;
  color: var(--ink);
  font: 400 17px/1.65 'Bricolage Grotesque', system-ui, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
}

/* Faint column rules behind the page, as on the landing page. */
body::before {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: min(100% - 40px, 1160px);
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px var(--c)),
    repeating-linear-gradient(
      90deg,
      transparent 0 calc(var(--c) * 0.82),
      var(--rule) calc(var(--c) * 0.82) calc(var(--c) * 0.82 + 1px),
      transparent calc(var(--c) * 0.82 + 1px) var(--c)
    );
}

h1 {
  margin: 0 0 10px;
  font: 800 clamp(38px, 6.4vw, 62px) / 1.02 'Bricolage Grotesque', system-ui, sans-serif;
  font-stretch: 90%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 {
  margin: 52px 0 10px;
  font: 700 clamp(21px, 2.6vw, 26px) / 1.25 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.4px;
  text-wrap: balance;
}
p,
ul,
ol {
  margin: 0 0 16px;
}
li {
  margin-bottom: 8px;
}
.meta {
  margin: 0 0 40px;
  color: var(--muted);
  font: 600 12px/1.5 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
strong {
  font-weight: 600;
}
:focus-visible {
  outline: 2px solid #5530dc;
  outline-offset: 3px;
}

/* Quoted wording: what the assistant says and what the texts read. */
blockquote {
  margin: 12px 0 20px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--card);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Header and footer ---------- */

.lg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 30px;
  background: linear-gradient(var(--bg) 55%, transparent);
}
.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font: 700 21px/1 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.lg-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font: 600 12px/1 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: 0.2px;
}
.lg-nav a,
.lg-nav button {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
}
.lg-nav a:hover,
.lg-nav button:hover {
  text-decoration: underline;
}

.lg-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 72px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.lg-footer span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.lg-footer a {
  color: var(--ink);
}
