/* Blue Crest Creative, LLC — shared styles
   Used by privacy.html, support.html, and terms.html.

   Colors, type, and the footer treatment follow the main site
   (bluecrestcreative.com/css/bcc2025.css) so these pages read as part of it. */

:root {
  color-scheme: light;

  /* Brand palette, matching the main site */
  --bcc-teal: #23b0bb;
  /* .BCCblue   */
  --bcc-navy: #0a3b61;
  /* .BCCdkBlue */
  --bcc-ink: #121212;

  /* Teal is only 2.6:1 on white, so it is used for decoration only.
     This darkened teal is the readable version, for text. */
  --teal-text: #157d86;

  --muted: #5a6472;
  --bg: #ffffff;
  --line: #dce4ea;
  --tint: #eef6f8;

  --brand-gradient: linear-gradient(90deg, var(--bcc-navy) 0%, var(--bcc-teal) 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
  font-size: 12pt;
  color: var(--bcc-ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  /* Keeps the dark footer at the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Shared header (rendered by site.js) ---------- */

.site-header {
  text-align: center;
  flex: 0 0 auto;
}

.site-logo {
  display: inline-block;
  padding-top: 5px;
}

.site-logo img {
  height: 75px;
  width: auto;
  vertical-align: middle;
  padding-bottom: 15px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 4px 16px 14px;
}

.site-nav a {
  color: var(--bcc-navy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--bcc-teal);
}

.site-nav a.current {
  color: var(--teal-text);
  border-bottom-color: var(--bcc-teal);
}

/* Echoes the navy-to-teal hero gradient on the main site */
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--brand-gradient);
}

/* ---------- Shared footer (rendered by site.js) ---------- */

.site-footer {
  flex: 0 0 auto;
  text-align: center;
  font-size: 80%;
  padding: 20px 24px;
  color: #ffffff;
  background-color: var(--bcc-ink);
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

/* ---------- Typography ---------- */

h1 {
  color: var(--bcc-navy);
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 4px;
}

h2 {
  color: var(--bcc-navy);
  font-size: 22px;
  margin-top: 0;
}

/* Sections that apply to every app, shown below the app panels */
h2.shared {
  font-size: 18px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}

h3 {
  color: var(--teal-text);
  font-size: 17px;
  margin-top: 28px;
}

p,
li {
  color: var(--bcc-ink);
  font-size: 16px;
}

ul {
  padding-left: 20px;
}

a {
  color: var(--bcc-navy);
}

a:hover {
  color: var(--teal-text);
}

/* ---------- Page intros ---------- */

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.intro {
  color: var(--bcc-ink);
  font-size: 16px;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}

.contact-box {
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--bcc-teal);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px;
  /* The email address is long and unbreakable on narrow phones */
  overflow-wrap: break-word;
}

.contact-box a {
  color: var(--bcc-navy);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* ---------- App picker ---------- */

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

/* The contact box already supplies the spacing above the tabs */
.contact-box+.app-tabs {
  margin-top: 0;
}

.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--bcc-navy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.pill:hover {
  color: var(--bcc-navy);
  border-color: var(--bcc-teal);
}

.pill.active,
.pill.active:hover {
  background: var(--bcc-navy);
  border-color: var(--bcc-navy);
  color: #ffffff;
}

.divider {
  border: none;
  border-top: 2px solid var(--line);
  margin: 28px 0 0;
}

.app-panel {
  padding-top: 32px;
}

.empty-state {
  padding-top: 32px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Support page ---------- */

/* Its panels open straight into questions, so the first question heading
   sits flush under the app name */
.page-support h1 {
  margin-bottom: 12px;
}

.page-support h3:first-of-type {
  margin-top: 0;
}

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

@media (max-width: 600px) {
  main {
    padding: 32px 18px 56px;
  }

  h1 {
    font-size: 26px;
  }

  .contact-box {
    padding: 18px 20px;
  }

  .contact-box a {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}