/* Shared stylesheet for the static, zero-JS pages: /support, /privacy,
   /terms and /bank-callback. Tokens mirror src/styles/global.css — if
   you change the brand palette, change both. */

:root {
  --deep: #0f4438;
  --deep-3: #082a22;
  --ink: #11302a;
  --ink-soft: #3d5a52;
  --teal: #4fc9b8;
  --mint-soft: #d3f5ec;
  --cream: #fff1dc;
  --paper: #e6f4ec;
  --font-display: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}

/* header / footer */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px clamp(20px, 5vw, 48px);
  background: var(--deep);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #f2fbf8;
}

.site-header .brand img { width: 30px; height: 30px; border-radius: 8px; }

.site-header nav {
  display: flex;
  gap: 20px;
}

.site-header nav a {
  color: #b8d9d0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: #fff; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.site-footer {
  border-top: 1px solid rgba(17, 48, 42, 0.1);
  margin-top: 40px;
  padding: 28px 20px 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer a { color: var(--ink-soft); }

/* support page */

.page-hero { padding: 48px 0 12px; }

.page-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); }

.page-hero .lede {
  margin-top: 12px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.section-title { margin: 36px 0 16px; font-size: 1.3rem; }

.faq-item {
  border: 1px solid rgba(17, 48, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  list-style-position: inside;
}

.faq-item summary:hover { background: var(--mint-soft); }

.faq-body { padding: 0 18px 16px; color: var(--ink-soft); }

.contact { margin-top: 48px; }

.contact h2 { margin-bottom: 12px; }

.contact-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* legal docs */

.doc { padding-top: 36px; }

.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin-bottom: 20px; }

.doc h2 { font-size: 1.35rem; margin: 34px 0 12px; }

.doc h3 { font-size: 1.1rem; margin: 24px 0 10px; }

.doc p, .doc ul, .doc ol { margin-bottom: 14px; }

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

.doc table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
  font-size: 0.92rem;
}

.doc th, .doc td {
  border: 1px solid rgba(17, 48, 42, 0.15);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.doc th { background: var(--mint-soft); font-family: var(--font-display); }

.doc blockquote {
  border-left: 4px solid var(--teal);
  padding: 6px 16px;
  margin: 16px 0;
  background: #fff;
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
}

.doc code {
  background: rgba(17, 48, 42, 0.07);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.9em;
}

/* bank-callback bridge */

.bridge {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.bridge img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  box-shadow: 0 18px 40px -18px rgba(15, 68, 56, 0.45);
}

.bridge h1 { font-size: 1.7rem; margin-bottom: 0.5rem; }

.bridge p { color: var(--ink-soft); margin-bottom: 0.75rem; }

.bridge .spinner {
  width: 28px;
  height: 28px;
  margin-top: 1.5rem;
  border: 3px solid var(--mint-soft);
  border-top-color: var(--deep);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .bridge .spinner { animation: none; }
}

.bridge .fallback { display: none; margin-top: 1.5rem; }

.bridge .fallback.visible { display: block; }

.bridge .button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--teal);
  color: var(--deep-3);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
}

/* FAQ page (AEO layout — visible answers, no accordions) */

.faq-group { margin-top: 44px; }

.faq-group h2 {
  font-size: 1.45rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mint-soft);
}

.faq-entry { margin-top: 26px; }

.faq-entry h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.faq-entry p { color: var(--ink-soft); }

/* language switcher (static pages footer) */

.lang-switch { margin-bottom: 12px; }

.lang-switch a {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 3px;
  border-radius: 999px;
  border: 1px solid rgba(17, 48, 42, 0.15);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.lang-switch a[aria-current="page"] {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}
