/* Shared look for the Dayly website's inner pages (privacy, licenses).
   Matches the home page (index.html keeps its own inline styles). */
:root {
  --bg: #F7F7FB;
  --bg-2: #EEEEF8;
  --surface: #FFFFFF;
  --text: #15162B;
  --muted: #5D6079;
  --line: #E3E4EF;
  --primary: #6366F1;
  --primary-ink: #4338CA;
  --primary-soft: #E9E8FF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0C18;
    --bg-2: #11132A;
    --surface: #161834;
    --text: #F1F1FA;
    --muted: #A2A5C3;
    --line: #262948;
    --primary: #818CF8;
    --primary-ink: #A5B4FC;
    --primary-soft: #23264D;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 70%, transparent); outline-offset: 3px; border-radius: 8px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner { max-width: 860px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand span { color: var(--primary); }
.topbar nav { margin-left: auto; display: flex; gap: 18px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); }

main { max-width: 860px; margin: 0 auto; padding: 32px 16px 72px; }
@media (min-width: 720px) { main { padding: 48px 32px 96px; } }

h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 800; }
h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 800; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
ul { padding-left: 22px; }
li { margin: 6px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; word-break: break-word; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 24px 0; }
.card ul { margin: 0; }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-2); font-weight: 800; }
td:first-child { font-weight: 700; width: 34%; }
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 6px 14px; }
  td:first-child { width: 100%; }
}

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; padding: 10px 14px; }
summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.name { font-weight: 700; }
.ver, .lic { color: var(--muted); font-size: 13px; }
.lic { margin-left: auto; }
pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: var(--bg-2); padding: 12px; border-radius: 10px; overflow: auto; }

.site-foot { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 20px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-foot a:hover { color: var(--text); }
