/*
 * Shared styling for the Freeman public pages.
 *
 * Same palette as the app on purpose. A man who taps "Privacy" inside Freeman
 * and lands on a generic white legal template has been handed off to someone
 * else. These pages should feel like the same product still talking.
 */

:root {
  --bg: #12100e;
  --bg-elevated: #1b1815;
  --surface: #221e1a;
  --border: #3a332c;

  --text: #f5f1ea;
  --text-muted: #a79e92;
  --text-faint: #6f675d;

  --amber: #e0a64b;
  --amber-deep: #b9822f;
  --sage: #7fa070;
  --scripture: #ebdfc8;

  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
}

/* --- Masthead ---------------------------------------------------------- */

header.masthead {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.wordmark {
  display: inline-block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark span {
  color: var(--amber);
}

.tagline {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 400;
  margin: 28px 0 8px;
}

.updated {
  margin: 0;
  font-size: 14px;
  color: var(--text-faint);
}

/* --- Prose ------------------------------------------------------------- */

h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin: 48px 0 12px;
  padding-top: 8px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 30px 0 8px;
  color: var(--text);
}

p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

p.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--amber);
  text-decoration-color: var(--amber-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--scripture);
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-muted);
}

li {
  margin-bottom: 9px;
}

li::marker {
  color: var(--text-faint);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* --- Cards ------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 0 0 18px;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* The two lists that carry the whole privacy promise. */
.card.stays {
  border-color: rgba(127, 160, 112, 0.45);
}

.card.leaves {
  border-color: rgba(224, 166, 75, 0.4);
}

.card-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.card.stays .card-label {
  color: var(--sage);
}

.card.leaves .card-label {
  color: var(--amber);
}

/* --- Callout ----------------------------------------------------------- */

.callout {
  border-left: 3px solid var(--amber);
  background: var(--bg-elevated);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 0 0 24px;
}

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

.callout.crisis {
  border-left-color: var(--sage);
}

.punch {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--sage);
  margin: 32px 0;
}

/* --- Contact ----------------------------------------------------------- */

.contact-email {
  font-size: 20px;
  word-break: break-all;
}

/* --- Nav / footer ------------------------------------------------------ */

nav.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}

nav.pages a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

nav.pages a:hover {
  border-color: var(--amber-deep);
  color: var(--amber);
}

footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-faint);
}

footer a {
  color: var(--text-muted);
}

footer .built {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-faint);
  margin-top: 14px;
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
    padding-bottom: 64px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 21px;
    margin-top: 40px;
  }
  header.masthead {
    padding-top: 40px;
  }
}
