/* ==========================================================
   Lansys - Política de Privacidade
   Paleta: amarelo-limão, preto, branco e cinza claro
   ========================================================== */

:root {
  --lime: #d7d532;
  --lime-soft: #eceb8f;
  --ink: #111111;
  --muted: #4d4d4d;
  --mist: #f0f0f0;
  --line: #dedede;
  --white: #ffffff;

  --header-h: 72px;
  --radius-lg: 24px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html {
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.hero :focus-visible,
.card--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.brand-fallback {
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
}

.nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.25rem;
}

.nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--white);
  padding-block: 72px 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 34rem;
  margin: 0;
  font-size: 1.125rem;
  color: #d4d4d4;
}

.stamp {
  display: inline-block;
  margin: 2rem 0 0;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

.hero-art {
  color: var(--lime);
  flex: none;
}

/* ---------- Layout principal ---------- */

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 72px;
  padding-block: 64px 104px;
}

/* ---------- Índice ---------- */

.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toc summary {
  list-style: none;
  padding: 0 0.75rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  background: var(--mist);
  color: var(--ink);
}

.toc .toc-num {
  flex: none;
  min-width: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.toc a.is-active {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Conteúdo ---------- */

.policy {
  max-width: 46rem;
  font-size: 1.0625rem;
}

.policy p {
  margin: 0 0 1.15rem;
}

.intro {
  margin-bottom: 3rem;
}

.intro .lead {
  font-size: 1.25rem;
  line-height: 1.65;
}

.policy section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.policy h2 {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.policy .num {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.5rem;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.policy ul {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.policy li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.75rem;
}

.policy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.65rem;
  height: 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.policy a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.policy a:hover {
  background: var(--lime);
  text-decoration-color: transparent;
}

.note {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--lime);
  border-radius: 0 12px 12px 0;
  background: var(--mist);
  font-weight: 600;
}

/* ---------- Cartões de contato ---------- */

.card {
  margin-top: 1.75rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--mist);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card--dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.policy .card-title {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.9rem 1.5rem;
  margin: 0;
}

.facts dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.card--dark .facts dt {
  color: #a8a8a8;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.facts address {
  font-style: normal;
}

.policy .card--dark a {
  color: var(--lime);
  text-decoration-color: currentColor;
}

.policy .card--dark a:hover {
  background: var(--lime);
  color: var(--ink);
}

.policy .card a.btn {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.policy .card a.btn:hover {
  background: var(--lime-soft);
  color: var(--ink);
}

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: #bdbdbd;
  padding-block: 32px;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: var(--lime);
  font-weight: 500;
}

/* ---------- Voltar ao topo ---------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .to-top,
  .policy .card a.btn {
    transition: none;
  }
}

/* ---------- Tablet e celular ---------- */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 32px 72px;
  }

  .toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0.25rem 1rem;
    border-radius: 16px;
    background: var(--mist);
  }

  .toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    cursor: pointer;
  }

  .toc summary::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.25rem;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s;
  }

  .toc[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
  }

  .toc ol {
    padding-bottom: 0.75rem;
  }

  .toc a:hover {
    background: var(--white);
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem 24px 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav a {
    display: block;
    padding-block: 0.85rem;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-block: 48px 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

  .policy {
    font-size: 1rem;
  }

  .intro .lead {
    font-size: 1.125rem;
  }

  .policy section {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .facts dd {
    margin-bottom: 0.9rem;
  }
}

/* ---------- Impressão ---------- */

@media print {
  .site-header,
  .toc,
  .to-top,
  .hero-art,
  .skip-link,
  .btn,
  .site-footer a {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  .hero {
    padding: 0 0 1rem;
    background: none;
    color: #000;
  }

  .hero-lede {
    color: #333;
  }

  .stamp {
    padding: 0;
    background: none;
    border-radius: 0;
  }

  .layout {
    display: block;
    padding: 0;
  }

  .policy {
    max-width: none;
    font-size: 11pt;
  }

  .policy section {
    break-inside: avoid-page;
  }

  .policy h2 {
    break-after: avoid;
  }

  .policy .num {
    background: none;
    border: 1.5px solid #000;
  }

  .policy li::before {
    background: #000;
  }

  .card,
  .card--dark {
    background: none;
    color: #000;
    border: 1px solid #999;
    box-shadow: none;
  }

  .card--dark .facts dt {
    color: #444;
  }

  .policy .card--dark a,
  .policy a {
    color: #000;
    text-decoration: none;
  }

  .site-footer {
    padding: 1rem 0 0;
    background: none;
    color: #333;
  }
}