/* Seshat — shared chrome for content/legal pages (Help, Terms, Privacy, etc.).
   Matches the landing (landing.css): same tokens, header, drawer, and footer,
   plus a clean article style for long-form legal copy. Pages may add their own
   scoped <style> for tables/notes on top of this. */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #0F2540;
  --ink-2: #16335A;
  --gold: #D4AF37;
  --gold-hover: #c39f2f;
  --gold-hover-2: #e0bd46;
  --gold-text: #B8912F;
  --gold-on-navy: #E7C766;
  --teal: #2AC1B8;
  --teal-text: #12867D;
  --slate: #64748B;
  --muted: #5A6B82;
  --line: #E2E8F0;
  --line-2: #EEF1F5;
  --paper: #FAFAF9;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover-2); transform: translateY(-2px); }
.btn-gold-sm { padding: 10px 18px; }
.btn-gold-sm:hover { background: var(--gold-hover); }
.btn-block { width: 100%; }

/* ---------- header / nav ---------- */
.site-header { position: relative; z-index: 40; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { height: 40px; width: auto; }
.brand .lock { display: inline-flex; flex-direction: column; line-height: 1; }
.brand .word { font-size: 22px; font-weight: 600; color: var(--ink); }
.brand .tag { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right .signin { font-size: 15px; color: var(--ink-2); }
.nav-right .signin:hover { color: var(--ink); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.hamburger svg { width: 26px; height: 26px; }

/* ---------- mobile drawer ---------- */
.mobile-drawer { display: none; }
.mobile-drawer.open { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(15,37,64,.5); }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; width: min(84vw, 340px); height: 100%;
  background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: -20px 0 60px rgba(15,37,64,.25);
}
.mobile-drawer .panel .x { align-self: flex-end; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }
.mobile-drawer .panel a { padding: 13px 8px; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.mobile-drawer .panel a.btn { border-bottom: 0; margin-top: 14px; justify-content: center; }

/* ---------- article / legal content ---------- */
.doc-main { padding: 44px 0 24px; }
.doc-main .legal, .doc-main article { max-width: 760px; margin: 0 auto; }
.doc-main h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; }
.doc-main h2 { font-size: 21px; margin: 34px 0 8px; }
.doc-main h3 { font-size: 17px; margin: 22px 0 6px; }
.doc-main p, .doc-main li { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.doc-main p { margin: 0 0 12px; }
.doc-main a { color: var(--teal-text); }
.doc-main a:hover { text-decoration: underline; }
.doc-main .upd { font-size: 13px; color: var(--slate); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 30px 0 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot .fbrand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.foot .fbrand .mark { height: 24px; }
.foot .flinks { display: flex; flex-wrap: wrap; gap: 6px 4px; font-size: 13px; color: var(--slate); }
.foot .flinks a:hover { color: var(--ink); }
.foot .flinks .d { color: #CBD5E1; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .site-header {
    position: sticky; top: 0;
    background: rgba(250,250,249,.9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226,232,240,.6);
  }
  .nav { padding: 13px 0; }
  .nav-links, .nav-right .signin, .nav-right .btn { display: none; }
  .hamburger { display: inline-flex; }
  .wrap { padding: 0 22px; }
  .doc-main h1 { font-size: 30px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
