/* Vibrant site: shared styles (tokens, header, footer, legal pages).
   Home page sections live in home.css. Palette follows the app theme
   (app/src/main/java/com/vibrant/video/theme/AppTheme.kt). */
:root {
  color-scheme: light dark;
  --bg: #f8fafd;
  --band: #edf1f7;
  --surface: #ffffff;
  --text: #0d1117;
  --muted: #48546a;
  --line: #d3dbe8;
  --accent: #006bb8;
  --accent-soft: rgba(0, 119, 204, .1);
  --card: #edf1f7;
  --btn-bg: #0a0e1a;
  --btn-fg: #ffffff;
  --header-bg: rgba(248, 250, 253, .86);
  --display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1a;
    --band: #0e1424;
    --surface: #131929;
    --text: #f0f4ff;
    --muted: #9aaacb;
    --line: #1e2a45;
    --accent: #00e5ff;
    --accent-soft: rgba(0, 229, 255, .1);
    --card: #131929;
    --btn-bg: #00e5ff;
    --btn-fg: #04121c;
    --header-bg: rgba(10, 14, 26, .82);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header (all pages) */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site nav {
  max-width: 1120px; margin: 0 auto; padding: 12px 16px;
  display: flex; gap: 6px 20px; align-items: center; flex-wrap: wrap;
}
header.site .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 19px/1 var(--display); letter-spacing: -.01em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
header.site .brand::before {
  content: ""; width: 30px; height: 30px; flex: none;
  background: url(/favicon.svg) center / contain no-repeat;
}
header.site a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
header.site a:not(.brand):hover, header.site a:not(.brand)[aria-current="page"] { color: var(--accent); }
header.site .brand:hover { color: var(--text); }

/* Legal pages */
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }
h1 { font-size: 30px; line-height: 1.25; margin: 8px 0 4px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { color: var(--text); }
.updated { color: var(--muted); margin: 0 0 24px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

/* Footer (all pages) */
footer.site { border-top: 1px solid var(--line); background: var(--band); color: var(--muted); font-size: 14px; }
footer.site .inner {
  max-width: 1120px; margin: 0 auto; padding: 28px 16px 36px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
}
footer.site .who { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
footer.site .who::before {
  content: ""; width: 24px; height: 24px; flex: none;
  background: url(/favicon.svg) center / contain no-repeat;
}
footer.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
footer.site li { margin: 0; }
footer.site a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }
