/* Shared styling for the standard legal pages (privacy, terms, e-sign).
   Self-contained and brand-consistent (black/gold, Playfair headings + Inter
   body) so the same files drop into any broker client site unchanged. */
:root {
  --primary: #070809;
  --primary-700: #030405;
  --accent: #d6a93f;
  --ink: #111317;
  --muted: #62666e;
  --paper: #f4f4f2;
  --surface: #ffffff;
  --line: #d7d9dd;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink);
  background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
.wrap { width: min(880px, 92vw); margin: 0 auto; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(200,155,60,.45); border-radius: 8px;
}

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
header.site .bar {
  width: min(1120px, 92vw); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--primary); text-decoration: none; }
.logo-mark {
  width: 54px; height: 54px; border-radius: 0; display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(214,169,63,.72); background: #020304; color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 6px 18px rgba(7,8,9,.2);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.brand b { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.1; }
.back-link { color: var(--primary); font-weight: 600; font-size: .95rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* Document body */
main.legal { padding: 56px 0 72px; }
.legal h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.7rem); color: var(--primary); margin: 0 0 6px; letter-spacing: -0.012em; }
.legal .effective { color: var(--muted); font-size: .95rem; margin: 0 0 32px; }
.legal h2 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--primary); margin: 34px 0 10px; }
.legal p, .legal li { color: #34404d; font-size: 1.02rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary); }
.legal .inline-btn { background: transparent; border: 0; padding: 0; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; }

/* Footer (mirrors the main site) */
footer.site { background: var(--ink); color: #c3cad3; padding: 48px 0 30px; font-size: .92rem; margin-top: 24px; }
footer.site .wrap { width: min(1120px, 92vw); }
footer.site .foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
footer.site .brand b { color: #fff; }
footer.site .legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
footer.site .legal-links a, footer.site .legal-links button {
  color: #e6ebf0; text-decoration: none; font-size: .9rem; background: transparent; border: 0; padding: 0; cursor: pointer; font: inherit;
}
footer.site .legal-links a:hover, footer.site .legal-links button:hover { text-decoration: underline; color: #fff; }
footer.site .contact a { color: #e6ebf0; text-decoration: none; display: block; margin-bottom: 4px; }
.disclosure { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; color: #8a94a0; font-size: .82rem; line-height: 1.7; }
.disclosure p { margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
