/* =========================================================
   legal.css — Identidade visual monitorIA
   Compartilhado pelas páginas: Termos, Privacidade, FAQ
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  /* Inter está disponível nativamente no iOS 13+, Android 12+ e macOS 10.15+.
     O fallback cobre sistemas mais antigos sem depender de CDN externo,
     evitando bloqueio por Content-Security-Policy. */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'Helvetica Neue', Arial, sans-serif;
  background-color: #0b1120;
  color: #c8d4e8;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  background: rgba(11, 17, 32, 0.95);
  border-bottom: 1px solid rgba(79, 142, 247, 0.15);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}

.header-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8eef8;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  color: #4f8ef7;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #7a93b8;
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: #4f8ef7;
}

/* ---------- Hero da página ---------- */
.page-hero {
  background: linear-gradient(160deg, #0f1d3a 0%, #0b1120 60%);
  border-bottom: 1px solid rgba(79, 142, 247, 0.1);
  padding: 48px 24px 40px;
  text-align: center;
}

.page-hero .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f8ef7;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #e8eef8;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page-hero .subtitle {
  font-size: 0.9rem;
  color: #5a7299;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Conteúdo principal ---------- */
.content-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---------- Seções ---------- */
.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #d0ddf0;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(79, 142, 247, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(79, 142, 247, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.section p {
  font-size: 0.92rem;
  color: #8ba5c8;
  margin-bottom: 14px;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ---------- Listas ---------- */
.section ul,
.section ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section ul li,
.section ol li {
  font-size: 0.92rem;
  color: #8ba5c8;
  padding-left: 20px;
  position: relative;
}

.section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #4f8ef7;
  font-size: 0.8rem;
}

.section ol {
  counter-reset: item;
}

.section ol li {
  counter-increment: item;
}

.section ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  color: #4f8ef7;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Destaque / Callout ---------- */
.callout {
  background: rgba(79, 142, 247, 0.07);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-left: 3px solid #4f8ef7;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.callout p {
  font-size: 0.9rem;
  color: #a8c0e0;
  margin: 0;
}

.callout strong {
  color: #d0ddf0;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid rgba(79, 142, 247, 0.12);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(79, 142, 247, 0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: #c8d4e8;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #4f8ef7;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: #7a93b8;
  line-height: 1.7;
}

/* ---------- Data de atualização ---------- */
.last-updated {
  display: inline-block;
  font-size: 0.78rem;
  color: #3d5a7a;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 4px 10px;
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(79, 142, 247, 0.1);
  padding: 32px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 0.78rem;
  color: #3d5a7a;
}

.site-footer a {
  color: #4f8ef7;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Responsividade ---------- */
@media (max-width: 600px) {
  .page-hero h1 {
    font-size: 1.5rem;
  }

  .header-nav {
    gap: 14px;
  }

  .content-wrapper {
    padding: 32px 16px 64px;
  }
}
