/* Privacy — same style as chatlog: same container, same nav, doc typography appended */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* remove underlines everywhere — prose links are styled separately */
a{
  text-decoration: none;
}

body{
  height: 100dvh;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.background{
  width: 97%;
  height: 96%;
  border-radius: 8px;
  background: white;
  position: relative;
  display: block;
  overflow: hidden;
}

/* HLS video — container background */
.bg-video-wrap{
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: none;
}

#chatlog-bg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: black;
}

/* top-left title card — like the index logo card, links back to index on click */
.card{
  font-family: Arial Black;
  font-size: 25px;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  background: black;
  padding: 4px 60px 0px 10px;
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 2;
}

/* top-right nav — compact link row, no underlines */
.nav-card{
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.92);
  color: white;
  padding: 6px;
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 2px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.nav-card a{
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 4px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-card a:hover{
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.nav-card a:focus-visible{
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 1px;
}

.nav-card a[aria-current="page"]{
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.nav-card a[data-download-latest]{
  background: white;
  color: black;
}

.nav-card a[data-download-latest]:hover{
  background: rgba(255, 255, 255, 0.82);
  color: black;
}

/* desktop — links directly in flex, hamburger/panel hidden */
.nav-links{
  display: contents;
}

.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
}

.hamburger span{
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-panel{
  display: none;
}

/* base link style — never underline, even outside media queries */
.menu-panel a{
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.menu-panel a:hover{
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.menu-panel a[data-download-latest]{
  background: white;
  color: black;
}

.menu-panel a[data-download-latest]:hover{
  background: rgba(255, 255, 255, 0.82);
  color: black;
}

/* feed — centered, scrollable below the top bar, over the video background */
.feed{
  position: absolute;
  left: 50%;
  translate: -50% 0;
  top: 100px;
  bottom: 24px;
  width: min(900px, calc(100% - 48px));
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.feed::-webkit-scrollbar{
  width: 6px;
}

.feed::-webkit-scrollbar-thumb{
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.log-card{
  background: transparent;
  border-radius: 4px;
  padding: 20px 22px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.log-card.loading{
  font-family: Arial Black;
  font-size: 16px;
}

.log-meta{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tag-pill{
  font-size: 12px;
  font-weight: 700;
  background: white;
  color: black;
  border-radius: 20px;
  padding: 3px 12px;
}

.log-date{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.6;
}

.log-title{
  font-family: Arial Black;
  font-size: 22px;
  margin-bottom: 10px;
}

.log-body{
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  overflow-wrap: break-word;
  margin-bottom: 16px;
}

.log-body h1,
.log-body h2,
.log-body h3{
  font-family: Arial Black;
  line-height: 1.2;
  margin: 14px 0 8px;
}

.log-body h1{ font-size: 18px; }
.log-body h2{ font-size: 16px; }
.log-body h3{ font-size: 14px; }

.log-body p{
  margin-bottom: 10px;
}

.log-body ul,
.log-body ol{
  margin: 0 0 10px 20px;
}

.log-body li{
  margin-bottom: 4px;
}

.log-body a{
  color: white;
  text-decoration: underline;
}

.log-body code{
  font-family: monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 1px 6px;
}

.log-body pre{
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.log-body pre code{
  background: none;
  padding: 0;
}

.log-dl{
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: black;
  background: white;
  text-decoration: none;
  border-radius: 4px;
  padding: 10px 20px;
}

/* spacing between side-by-side installer buttons (Windows + Linux) */
.log-dl + .log-dl{
  margin-left: 8px;
}

/* "Update my app" — floating deep-link button (idiotbox://update).
   Triggers the installed app's updater; styled like .log-dl. */
.update-app-fab{
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: black;
  background: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.update-app-fab:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.update-app-fab:disabled{
  opacity: 0.75;
  cursor: default;
  transform: none;
}

/* screen-reader only — SEO heading, zero visual change */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- responsive ---------- */
/* hamburger mode — desktop nav collides with the top-left card below 1120px */
@media (max-width: 1120px){
  .nav-links{
    display: none;
  }

  .hamburger{
    display: flex;
  }

  .nav-card{
    font-size: 12px;
    padding: 5px;
    top: 16px;
    right: 16px;
  }

  .menu-panel{
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 64px;
    right: 16px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 6px;
    min-width: 210px;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .background.menu-open .menu-panel{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-panel a{
    font-size: 13px;
    padding: 10px 12px;
  }

  /* hamburger to X */
  .background.menu-open .hamburger span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }

  .background.menu-open .hamburger span:nth-child(2){
    opacity: 0;
  }

  .background.menu-open .hamburger span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 768px){
  .card{
    font-size: 20px;
    padding: 4px 36px 0px 10px;
    left: 16px;
    top: 16px;
  }

  .nav-card{
    font-size: 11px;
    padding: 4px;
    top: 16px;
    right: 16px;
  }

  .menu-panel{
    top: 64px;
    right: 16px;
  }

  /* hamburger to X */
  .background.menu-open .hamburger span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }

  .background.menu-open .hamburger span:nth-child(2){
    opacity: 0;
  }

  .background.menu-open .hamburger span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  .feed{
    top: 92px;
    bottom: 16px;
    width: min(640px, calc(100% - 32px));
  }
}

@media (max-width: 480px){
  .card{
    font-size: 15px;
    padding: 4px 18px 0px 8px;
    left: 12px;
    top: 12px;
  }

  .nav-card{
    font-size: 11px;
    padding: 4px;
    top: 12px;
    right: 12px;
    left: auto;
  }

  .menu-panel{
    top: 56px;
    right: 12px;
  }

  .feed{
    top: 84px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding-right: 4px;
  }

  .log-card{
    padding: 16px;
  }

  .log-title{
    font-size: 18px;
  }

  .log-body{
    font-size: 13px;
  }

  .update-app-fab{
    right: 12px;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ── Privacy doc card ─────────────────────────────────────────────── */
.doc-card{
  background: rgba(8, 8, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 28px 30px;
  color: #ececec;
  font-family: Inter, system-ui, sans-serif;
  backdrop-filter: blur(6px);
  margin-bottom: 16px;
}
.doc-title{
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.doc-meta{
  opacity: 0.65;
  font-size: 13px;
  margin-bottom: 18px;
}
.doc-card h3{
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: #fff;
}
.doc-card p{
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 10px;
  opacity: 0.92;
}
.doc-card ul{
  margin: 0 0 12px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  opacity: 0.92;
}
.doc-card li{
  margin-bottom: 6px;
}
.doc-card strong{
  color: #fff;
}
.doc-card code{
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}
.doc-card a{
  color: #7cc4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc-card a:hover{
  color: #a8d9ff;
}
@media (max-width: 640px){
  .doc-card{
    padding: 20px 18px;
  }
  .doc-title{
    font-size: 23px;
  }
}

/* Static image background (no video, no music on this page) */
#privacy-bg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: black;
}
