/* ========================================
   Shared styles for standalone static pages
   (privacy, support, etc.)
   Uses the same fonts and color tokens as styles.css
   ======================================== */

:root {
  --olive-green: #7e6c2a;
  --gold-yellow: #f2673a;
  --warm-white: #f9f7f1;
  --deep-olive: #23241f;
  --gray-olive: #4a4538;
  --gray-olive-light: #5a5445;
  --gray-olive-dark: #3d382f;
  --gray-olive-neutral: #4f4a3d;
  --text-dark: #3a3a3a;
  --text-light: #f9f7f1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--warm-white);
  color: var(--gray-olive);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.static-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(126, 108, 42, 0.2);
}

.static-header .brand {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--olive-green);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.static-header .home-link {
  font-size: 0.9rem;
  color: var(--gray-olive-light);
  text-decoration: none;
  border: 1px solid rgba(126, 108, 42, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.static-header .home-link:hover {
  border-color: var(--gold-yellow);
  color: var(--gold-yellow);
}

.static-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.static-main h1 {
  font-family: 'Cardo', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--olive-green);
  font-size: 2rem;
  margin: 0 0 8px;
}

.static-main .updated {
  font-size: 0.85rem;
  color: var(--gray-olive-light);
  margin-bottom: 32px;
}

.static-main h2 {
  font-family: 'Cardo', Georgia, 'Times New Roman', serif;
  color: var(--gray-olive-dark);
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.static-main p,
.static-main li {
  color: var(--text-dark);
  font-size: 1rem;
}

.static-main ul {
  padding-left: 20px;
}

.static-main a {
  color: var(--olive-green);
}

.static-main a:hover {
  color: var(--gold-yellow);
}

.static-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-olive-light);
  padding: 20px 24px 32px;
}

/* Responsive embed wrapper for the support form */
.form-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.form-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 810px;
  border: none;
  border-radius: 8px;
  background: var(--white);
}

@media (max-width: 480px) {
  .form-embed-wrapper iframe {
    height: 1070px;
  }
}

/* Dark mode via system preference (these pages have no in-app toggle) */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--deep-olive);
    color: var(--warm-white);
  }

  .static-header {
    border-bottom-color: rgba(242, 103, 58, 0.25);
  }

  .static-header .brand {
    color: var(--gold-yellow);
  }

  .static-header .home-link {
    color: var(--warm-white);
    border-color: rgba(249, 247, 241, 0.3);
  }

  .static-header .home-link:hover {
    border-color: var(--gold-yellow);
    color: var(--gold-yellow);
  }

  .static-main h1,
  .static-main h2 {
    color: var(--gold-yellow);
  }

  .static-main p,
  .static-main li {
    color: var(--warm-white);
  }

  .static-main .updated,
  .static-footer {
    color: rgba(249, 247, 241, 0.6);
  }

  .form-embed-wrapper iframe {
    background: var(--warm-white);
  }
}
