/* TradesReply — shared design tokens + layout for legal pages */
:root {
  --navy: #1a2744; --navy-mid: #243358; --navy-light: #2d4070;
  --gold: #c9a84c; --gold-light: #dfc06a; --gold-pale: #faf4e6;
  --bg: #F4F4F4; --card: #ffffff; --text: #171A20; --text2: #393C41;
  --muted: #5C5E62; --border: #D4D4D4;
  --shadow-md: 4px 4px 0 var(--text);
  --r-md: 4px; --r-lg: 8px; --r-xl: 8px;
  --t: 200ms ease; --ts: 360ms ease;
}
[data-theme="dark"] {
  --bg: #0E1117; --card: #171A20; --text: #FFFFFF; --text2: #B0B4BC;
  --muted: #6B7280; --border: #363B47;
  --shadow-md: 4px 4px 0 rgba(62,106,225,.45);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  -webkit-font-smoothing: antialiased; transition: background var(--ts), color var(--ts);
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.header { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.header-inner { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.logo-icon-link { display: flex; line-height: 0; color: #fff; }
.logo-icon { width: 36px; height: 36px; object-fit: cover; object-position: 50% 8%; border-radius: 6px; }
.legal-header-title h1 { font-size: clamp(17px, 2.8vw, 20px); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.2; }
.legal-header-title h1 span { color: var(--gold); }
.legal-header-title p { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.hdr-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-mini { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.88); text-decoration: none; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.2); transition: background var(--t); }
.nav-mini:hover { background: rgba(255,255,255,.1); color: #fff; }
.ibtn { width: 38px; height: 44px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--t); }
.ibtn:hover { background: rgba(255,255,255,.14); color: #fff; }
.ibtn svg { width: 18px; height: 18px; }

.main-legal { max-width: 1320px; margin: 0 auto; padding: 28px 20px 64px; }
@media (min-width: 768px) { .main-legal { padding: 36px 28px 88px; } }
@media (max-width: 560px) {
  .header-inner { align-items: center; }
  .hdr-right { width: 100%; display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; }
  .nav-mini { text-align: center; padding-left: 8px; padding-right: 8px; }
}

.footer { text-align: center; padding: 28px 20px; border-top: 1px solid var(--border); margin-top: 0; }
.footer-tagline { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.footer-tagline a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-tagline a:hover { text-decoration: underline; }
.footer-copy { font-size: 12px; color: var(--muted); line-height: 1.6; }
.footer-copy a { color: inherit; text-decoration: none; }
.footer-copy a:hover { color: var(--text); text-decoration: underline; }

/* TradesReply — legal document typography */
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-card {
  background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  border: 2px solid var(--text); padding: 28px 24px 32px; transition: background var(--ts), border-color var(--ts);
}
@media (min-width: 768px) { .legal-card { padding: 40px 44px 48px; } }

.legal-doc h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem); font-weight: 800; letter-spacing: 0;
  color: var(--text); margin-bottom: 8px; line-height: 1.2;
}
.legal-doc .legal-updated {
  font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.legal-doc .lede {
  font-size: 16px; color: var(--text2); line-height: 1.65; margin-bottom: 28px;
  padding: 16px 18px; border-left: 4px solid var(--gold); background: var(--gold-pale);
  border-radius: var(--r-md); font-weight: 600;
}
[data-theme="dark"] .legal-doc .lede { background: rgba(201,168,76,.1); }
.legal-doc h2 {
  font-size: 1.05rem; font-weight: 800; color: var(--text); margin-top: 30px; margin-bottom: 10px; line-height: 1.35;
}
.legal-doc p, .legal-doc li {
  font-size: 15px; line-height: 1.72; color: var(--text2); margin-bottom: 12px;
}
.legal-doc ul, .legal-doc ol { margin: 0 0 16px 1.2rem; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { color: var(--navy); font-weight: 600; text-underline-offset: 2px; }
.legal-doc a:hover { text-decoration: underline; }
[data-theme="dark"] .legal-doc a { color: var(--gold-light); }

.legal-doc strong { color: var(--text); font-weight: 600; }

.footer-legal-nav {
  margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.6;
}
.footer-legal-nav a { color: inherit; text-decoration: none; font-weight: 500; }
.footer-legal-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-legal-nav a[aria-current="page"] {
  color: var(--gold); font-weight: 700;
}
[data-theme="dark"] .footer-legal-nav a[aria-current="page"] { color: var(--gold-light); }
