/*
 * Trust Center styles. The look follows the Habit Builder start page
 * (start.actionable.co): a navy header bar with the white logo, white cards with
 * a grey border and offset shadow, Inter, and uppercase blue buttons.
 *
 * Everything is served from this site: the CSP (live/website-trust) allows only
 * its own files, so no external fonts, no inline style attributes and no
 * <style> blocks in the pages.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Inter-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/Inter-ExtraBold.woff2") format("woff2");
}

:root {
  --navy: #10069f;
  --ink: #252631;
  --text: #212529;
  --muted: #6f777b;
  --link: #155a85;
  --button: #1d7bb9;
  --button-hover: #155a85;
  --card-border: #acacac;
  --card-shadow: #c6c6c6;
  --rule: #ebecec;
  --page: #ffffff;
  --tint: #f5f6f8;
  --focus: #ffbf47;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--navy);
  padding: 8px 16px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  background: var(--navy);
  box-shadow: 0 0 5px rgba(18, 23, 39, 0.5);
}

.site-header__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.site-header__logo {
  display: block;
  line-height: 0;
}

.site-header__logo img {
  height: 50px;
  width: auto;
}

.site-header__title {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header__title:hover {
  text-decoration: underline;
}

/* Page layout ----------------------------------------------------------- */

main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.breadcrumb {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

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

.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 15px;
  box-shadow: 4px 4px 2px 0 var(--card-shadow);
  margin-bottom: 28px;
  overflow: hidden;
}

.card__header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
}

.card__header h1,
.card__header h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.card__header h1 {
  font-size: 24px;
}

.card__header h2 {
  font-size: 18px;
}

.card__meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card__body {
  padding: 20px 24px 24px;
}

.card__body > :first-child {
  margin-top: 0;
}

.card__body > :last-child {
  margin-bottom: 0;
}

/* Landing page sections -------------------------------------------------- */

.lead {
  font-size: 17px;
  line-height: 1.6;
}

.sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.sections .card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.sections .card__body {
  flex: 1;
}

.button {
  display: inline-block;
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 28px;
  background: var(--button);
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.button:hover {
  background: var(--button-hover);
  color: #fff;
  text-decoration: none;
}

.button + .button {
  margin-left: 8px;
}

/* Policy text ----------------------------------------------------------- */

.prose h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  margin: 32px 0 8px;
  color: var(--ink);
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.prose h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 4px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 4px;
}

.prose sup {
  font-size: 0.75em;
  line-height: 0;
}

/* Privacy Policy disclosures (native <details>, no script). */

.prose details {
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 8px 0;
  background: #fff;
}

.prose summary {
  cursor: pointer;
  padding: 10px 16px;
  list-style-position: outside;
  margin-left: 16px;
}

.prose summary h3 {
  display: inline;
  font-size: 15px;
  margin: 0;
}

.prose details[open] summary {
  border-bottom: 1px solid var(--rule);
}

.prose details > :not(summary) {
  margin-left: 16px;
  margin-right: 16px;
}

.prose details > :last-child {
  margin-bottom: 16px;
}

/* Tables ---------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}

thead th {
  background: var(--tint);
  font-weight: 700;
  border-bottom: 2px solid var(--card-border);
}

td a {
  overflow-wrap: anywhere;
}

.footnotes {
  font-size: 14px;
  color: var(--text);
}

.footnotes p {
  margin: 4px 0;
}

/* Badge ----------------------------------------------------------------- */

.badge {
  float: right;
  margin: 0 0 16px 24px;
  line-height: 0;
}

.badge img {
  width: 120px;
  height: auto;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--tint);
  font-size: 14px;
  color: var(--muted);
}

.site-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer p {
  margin: 0;
}

/* Small screens --------------------------------------------------------- */

@media (max-width: 640px) {
  .sections {
    grid-template-columns: 1fr;
  }

  main {
    padding: 20px 16px 32px;
  }

  .card__header,
  .card__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card__header h1 {
    font-size: 21px;
  }

  .site-header__logo img {
    height: 40px;
  }

  .badge {
    float: none;
    margin: 0 0 16px;
  }
}
