/* Shared styles for the SMS program, SMS terms and privacy policy pages */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #0e1a33;
  --muted: #4d5b75;
  --primary: #1f4fd1;
  --primary-soft: #dfe7fb;
  --lime: #7ad31f;
  --border: #d9e1ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1020;
    --surface: #121a2e;
    --surface-2: #17213a;
    --text: #e9eefa;
    --muted: #a1adc6;
    --primary: #6d8dff;
    --primary-soft: #1d2a52;
    --lime: #8fe33a;
    --border: #26314d;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.back { font-weight: 600; text-decoration: none; }

main { padding: 40px 0 56px; }
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.12; margin: 6px 0 8px; font-weight: 800; letter-spacing: -0.01em; }
.updated { color: var(--muted); margin: 0 0 28px; }
h2 { font-size: 1.3rem; margin: 34px 0 8px; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
p, li { color: var(--text); }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin: 18px 0; }
.card.highlight { border-left: 6px solid var(--lime); }
.consent { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.consent .box { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--text); border-radius: 3px; vertical-align: -3px; margin-right: 8px; }

.keywords { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.kw { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.kw b { display: inline-block; font-size: 1.15rem; letter-spacing: .04em; background: var(--primary-soft); color: var(--primary); border-radius: 8px; padding: 2px 10px; margin-bottom: 6px; }
.kw span { display: block; color: var(--muted); font-size: .92rem; }

.sms { overflow-wrap: anywhere; max-width: 420px; background: var(--surface-2); border-radius: 18px 18px 18px 4px; padding: 10px 14px; margin: 10px 0; font-size: .95rem; }

.optin-sign { background: #fff; color: #0e1a33; border: 3px solid #1f4fd1; border-radius: 18px; padding: 22px 24px; margin: 14px 0; max-width: 620px; }
.optin-brand { color: #1f4fd1; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.optin-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin: 2px 0 12px; }
.optin-sign p { color: #0e1a33; }
.optin-check { font-size: 1.1rem; margin: 0 0 10px; }
.optin-check .box { display: inline-block; width: 20px; height: 20px; border: 2px solid #0e1a33; border-radius: 4px; vertical-align: -4px; margin-right: 10px; }
.optin-terms { font-size: .95rem; margin: 0 0 10px; }
.optin-cta { font-size: 1.5rem; font-weight: 700; margin: 0 0 10px; }
.optin-cta b { color: #1f4fd1; }
.text-btn { display: inline-block; font-weight: 700; text-decoration: none; background: var(--primary); color: #fff; border-radius: 999px; padding: 10px 20px; }
.fine { color: var(--muted); font-size: .92rem; }
.optin-links { font-size: .85rem; color: #4d5b75; margin: 0; overflow-wrap: anywhere; }
.print-btn { font: inherit; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--primary); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  .optin-sign, .optin-sign * { visibility: visible; }
  .optin-sign { position: absolute; left: 0; top: 0; max-width: none; width: 100%; font-size: 1.25rem; }
  .optin-title { font-size: 2.4rem; }
  .optin-check { font-size: 1.5rem; }
  .optin-cta { font-size: 2.6rem; }
  .optin-terms { font-size: 1.2rem; }
  .optin-links { font-size: 1rem; }
}

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.links a { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 600; }

footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
