/* Selah — shared legal-page styles. Water/tranquility brand. */
:root {
  --bg-deep: #0a1628;
  --bg-ocean: #0f2137;
  --bg-water: #162d4a;
  --bg-surface: #1a3654;
  --teal: #2dd4bf;
  --teal-soft: #5eead4;
  --gold: #d4a847;
  --gold-light: #e8c96d;
  --gold-dark: #b8922e;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --maxw: 740px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  background-image: linear-gradient(180deg, #0a1628 0%, #0f2137 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 17px;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid rgba(148,163,184,0.12);
  background: rgba(10,22,40,0.6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; color: var(--text); }
.brand .dot { color: var(--gold); }
.site-header nav a { font-size: 14px; color: var(--text-secondary); margin-left: 20px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 48px; padding-bottom: 72px; }

h1 { font-size: 30px; line-height: 1.25; color: var(--gold); margin: 0 0 8px; font-weight: 700; }
h2 { font-size: 21px; color: var(--gold-light); margin: 40px 0 12px; font-weight: 600; }
h3 { font-size: 18px; color: var(--teal-soft); margin: 28px 0 10px; font-weight: 600; }
p { margin: 14px 0; }
strong { color: #f4f7fb; font-weight: 600; }
ul, ol { margin: 14px 0; padding-left: 22px; }
li { margin: 7px 0; }

.meta {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148,163,184,0.12);
}
.meta strong { color: var(--text-secondary); }
.eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 14px;
}

/* Callouts */
.callout {
  border: 1px solid rgba(212,168,71,0.35);
  background: rgba(212,168,71,0.06);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
}
.callout.crisis { border-color: rgba(45,212,191,0.4); background: rgba(45,212,191,0.06); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border: 1px solid rgba(148,163,184,0.18); vertical-align: top; }
th { background: rgba(26,54,84,0.6); color: var(--teal-soft); font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148,163,184,0.12);
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; }
.site-footer a { color: var(--text-secondary); }
.backlink { display: inline-block; margin-top: 28px; font-size: 15px; }

/* Index list */
.doc-list { list-style: none; padding: 0; margin: 28px 0; }
.doc-list li { margin: 0 0 14px; }
.doc-list a {
  display: block; padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.16); background: rgba(22,45,74,0.4);
  color: var(--text);
}
.doc-list a:hover { border-color: rgba(212,168,71,0.45); text-decoration: none; background: rgba(22,45,74,0.7); }
.doc-list .t { display: block; font-weight: 600; font-size: 17px; color: var(--gold-light); }
.doc-list .d { display: block; font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

/* Gold "Open the app" CTA (matches marketing site) */
.btn-open {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0a1628;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-left: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-open:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212,168,71,0.28); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  .site-header nav a { margin-left: 14px; }
}
