/* Shared styles for Udabyte legal + FAQ pages — matches index.html theme */
:root {
  --bg: #0b0c10;
  --bg-soft: #12141c;
  --card: #161925;
  --border: #262a3a;
  --text: #e8eaf2;
  --muted: #9aa0b4;
  --accent: #6d5efc;
  --accent-2: #37d0c4;
  --maxw: 820px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(11,12,16,0.72); border-bottom: 1px solid var(--border);
}
nav .inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #9a6bff);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: 0 4px 16px rgba(109,94,252,0.45);
}
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 15px; color: var(--muted); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Doc header */
.doc-head { padding: 70px 0 30px; border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.doc-head .eyebrow { color: var(--accent-2); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.doc-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; margin: 14px 0 12px; line-height: 1.1; }
.doc-head .meta { color: var(--muted); font-size: 14px; }

/* Article typography */
article { padding-bottom: 60px; font-size: 16px; }
article h2 { font-size: 22px; letter-spacing: -0.02em; margin: 42px 0 14px; padding-top: 6px; }
article h3 { font-size: 17px; margin: 26px 0 10px; color: #cdd2e4; }
article p { color: #c5cade; margin-bottom: 14px; }
article ul, article ol { margin: 0 0 16px 22px; color: #c5cade; }
article li { margin-bottom: 7px; }
article strong { color: var(--text); }
article a { font-weight: 500; }
.callout {
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 16px 18px; margin: 20px 0; font-size: 14.5px; color: var(--muted);
}
table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text); font-weight: 650; background: var(--bg-soft); }
td { color: #c5cade; }

/* TOC for legal pages */
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 34px; }
.toc-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.toc ol { margin: 0 0 0 18px; columns: 2; column-gap: 28px; font-size: 14.5px; }
.toc a { color: #c5cade; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-size: 18px; color: var(--text); margin: 0 0 10px; }
.faq-item p { margin-bottom: 8px; }
.faq-cat { margin: 40px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 30px; }
footer .inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .brand { font-size: 16px; }
.foot-links { display: flex; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); text-decoration: none; }
.foot-meta { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  footer .inner { flex-direction: column; text-align: center; }
}
