/* Shared styling for DhanRise legal pages (terms.html, privacy.html). Theme-aware. */
:root {
  --bg: #04070d; --panel: #0b1118; --line: #1a2430;
  --green: #00d68f; --txt: #e9f1ee; --muted: #94a3b1; --muted2: #5d6b77;
}
[data-theme="light"] {
  --bg: #eef2f7; --panel: #ffffff; --line: #e2e8f0;
  --green: #0a9d6e; --txt: #16202b; --muted: #46566a; --muted2: #8294a3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--txt); font-family: 'Syne', system-ui, sans-serif; line-height: 1.7; padding: 40px 18px 80px; }
.doc { max-width: 820px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.brandwrap { display: flex; align-items: center; gap: 12px; }
.top img { height: 40px; }
.brand { font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 2px; font-size: 18px; color: var(--green); }
.brand small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 3px; color: var(--muted2); text-transform: uppercase; font-weight: 400; margin-top: 3px; }
.backlinks { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.backlinks a { color: var(--muted); text-decoration: none; margin-left: 14px; }
.backlinks a:hover { color: var(--green); }
h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.updated { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted2); margin-bottom: 26px; }
h2 { font-family: 'Orbitron', sans-serif; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin: 30px 0 10px; }
h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
p, li { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
b, strong { color: var(--txt); }
ul, ol { margin: 4px 0 12px 22px; }
li { margin-bottom: 6px; }
a.inline { color: var(--green); text-decoration: none; } a.inline:hover { text-decoration: underline; }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: var(--muted); margin: 18px 0; }
.foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted2); }
.foot a { color: var(--muted); text-decoration: none; margin-right: 14px; } .foot a:hover { color: var(--green); }
