/* Páginas de texto e erro: política de privacidade e 404 (scripts/build.py).
   Usa os tokens e componentes de ourozimbocar-layout.css (Components v3). */
body { margin: 0; background: #242424; }

.oz-site.oz-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--oz-bg-3);
  color: var(--oz-text);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.oz-page main { flex: 1; display: flex; flex-direction: column; }

/* Trilha de navegação */
.oz-page .oz-crumbs {
  display: flex;
  align-items: center;
  gap: var(--oz-sp-2);
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: var(--oz-text-3);
  min-width: 0;
}
.oz-page .oz-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
  color: var(--oz-text-2);
  text-decoration: none;
  transition: color var(--oz-dur) var(--oz-ease);
}
.oz-page .oz-crumbs a:hover { color: var(--oz-orange); }
.oz-page .oz-crumbs .oz-crumb-sep { flex-shrink: 0; color: var(--oz-text-3); }
.oz-page .oz-crumbs [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.oz-page :is(main) a:focus-visible,
.oz-page :is(main) summary:focus-visible {
  outline: 3px solid var(--oz-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Privacidade ---------- */
.oz-doc-head { background: var(--oz-bg-3); padding-block: var(--oz-sp-7); }
.oz-doc-head .oz-crumbs { margin-bottom: var(--oz-sp-5); }
.oz-doc-title {
  margin: var(--oz-sp-3) 0 var(--oz-sp-4);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
}
.oz-doc-meta {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--oz-line-strong);
  border-radius: var(--oz-r-pill);
  font-size: 13px;
  line-height: 1.2;
  color: var(--oz-text-2);
}

.oz-doc-body { background: var(--oz-bg-2); padding-block: var(--oz-sp-8) var(--oz-sp-9); flex: 1; }
.oz-doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--oz-sp-8);
  justify-content: start;
}

.oz-toc { display: none; }
.oz-toc-list { list-style: none; margin: var(--oz-sp-3) 0 0; padding: 0; font-size: 14px; line-height: 1.4; color: var(--oz-text-2); }
.oz-toc-list li { margin: 0; }
.oz-toc-list a {
  display: block;
  padding: 6px 0;
  color: var(--oz-text-2);
  text-decoration: none;
  transition: color var(--oz-dur) var(--oz-ease);
}
.oz-toc-list a:hover { color: var(--oz-orange); }

.oz-toc-details {
  margin: 0 0 var(--oz-sp-6);
  padding: var(--oz-sp-4);
  background: var(--oz-surface);
  border: 1px solid var(--oz-line);
  border-radius: 16px;
}
.oz-toc-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  cursor: pointer;
  list-style: none;
}
.oz-toc-details summary::-webkit-details-marker { display: none; }
.oz-toc-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--oz-text-2);
  border-bottom: 2px solid var(--oz-text-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--oz-dur) var(--oz-ease);
}
.oz-toc-details[open] summary::after { transform: rotate(225deg); }

@media (min-width: 1024px) {
  .oz-doc-grid { grid-template-columns: 240px minmax(0, 68ch); }
  .oz-toc { display: block; position: sticky; top: 112px; align-self: start; }
  .oz-toc-details { display: none; }
}

.oz-doc-content { min-width: 0; }
.oz-doc-content h2 {
  margin: var(--oz-sp-7) 0 var(--oz-sp-3);
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
  line-height: 1.25;
  color: var(--oz-text);
  scroll-margin-top: var(--oz-anchor-offset, 112px);
}
.oz-doc-content > h2:first-of-type, .oz-doc-content > .oz-toc-details + p + h2:first-of-type { margin-top: var(--oz-sp-7); }
.oz-doc-content p, .oz-doc-content li {
  margin: 0 0 var(--oz-sp-4);
  font-size: 17px;
  line-height: 1.75;
  color: var(--oz-text-2);
  overflow-wrap: break-word;
}
.oz-doc-content strong { color: var(--oz-text); font-weight: 600; }
.oz-doc-content code { font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--oz-surface); border: 1px solid var(--oz-line); color: var(--oz-text); }
.oz-doc-content ul { list-style: none; margin: 0 0 var(--oz-sp-4); padding: 0; }
.oz-doc-content ul li { position: relative; padding-left: var(--oz-sp-5); }
.oz-doc-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oz-orange);
}
.oz-doc-content a {
  color: var(--oz-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--oz-dur) var(--oz-ease);
}
.oz-doc-content a:hover { color: var(--oz-orange); }
.oz-doc-back { margin-top: var(--oz-sp-6); }

.oz-mail-card {
  display: flex;
  align-items: center;
  gap: var(--oz-sp-4);
  margin: 0 0 var(--oz-sp-4);
  padding: 20px;
  background: var(--oz-surface);
  border: 1px solid var(--oz-line);
  border-radius: 16px;
}
.oz-mail-card .oz-mail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--oz-r-sm);
  background: rgba(255, 102, 0, .12);
  color: var(--oz-orange);
}
.oz-mail-card .oz-mail-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oz-doc-content .oz-mail-card a { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }

/* ---------- 404 ---------- */
@keyframes oz404In { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.oz-404 {
  flex: 1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--oz-sp-9) var(--oz-sp-8);
  background: var(--oz-bg-3);
}
.oz-404 .oz-404-car { display: block; width: 120px; height: auto; animation: oz404In 400ms var(--oz-ease) both; }
.oz-404 .oz-label { margin-top: var(--oz-sp-5); }
.oz-404-title { margin: var(--oz-sp-3) 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.oz-404-text { margin: var(--oz-sp-3) 0 0; max-width: 48ch; color: var(--oz-text-2); }
.oz-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--oz-sp-4); margin-top: var(--oz-sp-6); }
.oz-404 .oz-404-services-label { margin-top: var(--oz-sp-7); }
.oz-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--oz-sp-3); margin: var(--oz-sp-4) 0 0; padding: 0; list-style: none; max-width: 760px; }
.oz-404-links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--oz-sp-4);
  border: 1px solid var(--oz-line-strong);
  border-radius: var(--oz-r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--oz-text);
  text-decoration: none;
  transition: border-color var(--oz-dur) var(--oz-ease), color var(--oz-dur) var(--oz-ease);
}
.oz-404-links a:hover { border-color: var(--oz-orange); color: var(--oz-orange); }
@media (max-width: 480px) {
  .oz-404-actions .oz-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .oz-page *, .oz-page *::before, .oz-page *::after { animation: none !important; transition: none !important; }
}
