/* ============================================
   nulltolife.com — app privacy policies
   Loaded after style.css; reuses its tokens.
   ============================================ */

.policy {
  --muted: #8b8ba7; /* --text-dim lifted to 4.5:1 for small text */
  padding: 140px 0 96px;
}

/* --- Header --- */
.policy-head { padding-bottom: 56px; }

.policy-crumbs {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.policy-crumbs a { color: var(--muted); }
.policy-crumbs a:hover { color: var(--accent); }
.policy-crumbs [aria-current] { color: var(--accent); }

.policy-app { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.policy-app img {
  width: 72px; height: 72px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.policy-app-name {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
}
.policy-app-meta { font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.policy-app-meta span { font-family: var(--font-mono); font-size: 0.82rem; }

.policy-head h1 {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--heading);
  margin-bottom: 20px;
}

.policy-lede {
  max-width: 640px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
}

.policy-updated {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.policy-updated svg { color: var(--accent); flex-shrink: 0; }

/* --- At a glance --- */
.policy-glance {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 72px;
}
.policy-glance .stat-desc { color: var(--muted); }

/* --- Layout: contents beside the text --- */
.policy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.policy-aside {
  position: sticky; top: 96px;
  align-self: start;
  display: flex; flex-direction: column; gap: 32px;
}

.policy-toc-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.policy-toc ol { list-style: none; counter-reset: toc; }
.policy-toc li { counter-increment: toc; }
.policy-toc a {
  display: flex; gap: 12px;
  padding: 7px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.policy-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); }
.policy-toc a:hover { color: var(--heading); }

.policy-ask {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.policy-ask a { font-family: var(--font-mono); }

/* Phones get the contents as a fold-out instead */
.policy-toc-mobile { display: none; }
.policy-toc-mobile summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  list-style: none;
}
.policy-toc-mobile summary::-webkit-details-marker { display: none; }
.policy-toc-count { color: var(--muted); }
.policy-toc-mobile summary svg { color: var(--accent); transition: transform .2s; }
.policy-toc-mobile[open] summary svg { transform: rotate(180deg); }
.policy-toc-mobile ol { padding: 0 16px 10px; }

/* --- The policy text --- */
.policy-body {
  display: flex; flex-direction: column; gap: 64px;
  min-width: 0;
  font-size: 1.06rem;
  line-height: 1.75;
}
.policy-body section { display: flex; flex-direction: column; gap: 16px; }
.policy-body h2 {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--heading);
}
.policy-body strong { color: var(--heading); }
.policy-body code { border: 1px solid var(--border); padding: 1px 6px; font-size: 0.86em; overflow-wrap: anywhere; }

.policy-summary { font-size: 1.2rem; line-height: 1.7; color: var(--heading); }

.policy-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.policy-list li { position: relative; padding-left: 28px; }
.policy-list li::before {
  content: '›';
  position: absolute; left: 0;
  font-family: var(--font-mono);
  color: var(--accent);
}

.policy-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.policy-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.97rem;
  line-height: 1.7;
}
.policy-card code { background: var(--bg); }
.policy-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--heading);
}
.policy-card-when {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: .5px;
  line-height: 1.5;
  color: var(--accent2);
}
.policy-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}

.policy-note {
  display: flex; gap: 14px;
  padding: 20px 24px;
  background: rgba(0,229,160,.05);
  border: 1px solid rgba(0,229,160,.3);
  border-radius: 12px;
  color: var(--heading);
}
.policy-note::before { content: '//'; font-family: var(--font-mono); color: var(--accent); }

.policy-file { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.policy-file li { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.policy-file svg { flex-shrink: 0; }
.policy-file.yes svg { color: var(--accent); }
.policy-file.no svg { color: var(--red); }

.policy-perms { border-top: 1px solid var(--border); }
.policy-perms > div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.policy-perms dt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--heading);
}
.policy-perms dd { font-size: 0.97rem; line-height: 1.7; }

.policy-tag {
  padding: 3px 9px;
  background: rgba(0,229,160,.08);
  border: 1px solid rgba(0,229,160,.2);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent);
}
.policy-tag.info {
  background: rgba(0,184,255,.08);
  border-color: rgba(0,184,255,.2);
  color: var(--accent2);
}

.policy-contact {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
}
.policy-contact .btn { gap: 10px; }

/* --- Narrow screens --- */
@media (max-width: 860px) {
  .policy { padding: 108px 0 72px; }
  .policy-head { padding-bottom: 32px; }
  .policy-glance { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .policy-layout { grid-template-columns: 1fr; padding-top: 0; border-top: 0; }
  .policy-aside { display: none; }
  .policy-toc-mobile {
    display: block;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .policy-body { gap: 44px; font-size: 1rem; }
  .policy-body h2 { font-size: 1.3rem; }
  .policy-summary { font-size: 1.06rem; }
  .policy-cards { grid-template-columns: 1fr; }
  .policy-perms > div { grid-template-columns: 1fr; row-gap: 8px; }
  .policy-perms dt { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (max-width: 640px) {
  .policy-app { gap: 14px; margin-bottom: 24px; }
  .policy-app img { width: 56px; height: 56px; border-radius: 13px; }
  .policy-lede { font-size: 1.05rem; margin-bottom: 22px; }
  .policy-card { padding: 20px; }
  .policy-contact { padding: 20px; }
  .policy-contact .btn { width: 100%; justify-content: center; }
}
