:root {
  --navy: #00355e;
  --navy-deep: #002642;
  --blue-soft: #e8f1f7;
  --ink: #14212b;
  --muted: #5b6975;
  --line: #d8e0e6;
  --surface: #ffffff;
  --background: #f4f7f9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  min-height: 88px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: 238px;
  height: auto;
}

.back-link {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 4px;
}

.back-link:focus-visible,
.toc a:focus-visible,
.policy-card a:focus-visible,
footer a:focus-visible {
  outline: 3px solid #67a8d4;
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.intro {
  padding: 76px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 70px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(0, 38, 66, 0.98), rgba(0, 53, 94, 0.94)),
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(255, 255, 255, 0.05) 26px 27px);
}

.intro-copy {
  max-width: 710px;
}

.privacy-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.privacy-mark svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.context {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.15rem, 4.4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 670px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.75;
}

.last-updated {
  display: inline-block;
  margin: 26px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ---------- Índice ---------- */

.toc-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.toc-card h2 {
  margin: 0 0 18px;
  font-size: 1rem;
}

.toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 7px 8px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
}

.toc a:hover,
.toc a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Conteúdo ---------- */

.policy-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 88px;
  display: grid;
  gap: 30px;
}

.policy-card {
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 38, 66, 0.08);
  scroll-margin-top: 24px;
}

.policy-card h2 {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

.policy-card h2 > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.policy-card p {
  margin: 0 0 16px;
  color: #34434f;
  font-size: 0.94rem;
  line-height: 1.8;
}

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

.policy-card ul {
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.policy-card li {
  position: relative;
  padding-left: 24px;
  color: #34434f;
  font-size: 0.92rem;
  line-height: 1.7;
}

.policy-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
}

.policy-card ul:last-child {
  margin-bottom: 0;
}

.policy-card a {
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Tabelas ---------- */

.table-wrap {
  margin: 6px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.6;
}

th,
td {
  padding: 13px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: #fff;
  background: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: var(--blue-soft);
}

td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Destaques ---------- */

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--navy);
  border-radius: 0 3px 3px 0;
  background: var(--blue-soft);
}

.callout p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.rights-list {
  counter-reset: rights;
}

.contact-list li::before {
  display: none;
}

.contact-list li {
  padding-left: 0;
}

/* ---------- Rodapé ---------- */

footer {
  padding: 28px 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
  color: rgba(255, 255, 255, 0.68);
  background: var(--navy-deep);
  font-size: 0.74rem;
  text-align: center;
}

footer p {
  margin: 0;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  text-underline-offset: 3px;
}

footer a:hover {
  color: #fff;
}

/* ---------- Responsivo ---------- */

@media (max-width: 840px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .toc-card {
    max-width: 560px;
  }
}

@media (max-width: 580px) {
  .site-header {
    min-height: 72px;
    padding: 14px 18px;
  }

  .brand img {
    width: 178px;
  }

  .back-link {
    font-size: 0.78rem;
  }

  .intro {
    padding: 46px 20px;
  }

  .privacy-mark {
    margin-bottom: 20px;
  }

  .toc-card {
    padding: 24px 20px;
  }

  .policy-section {
    padding: 42px 16px 58px;
    gap: 22px;
  }

  .policy-card {
    padding: 26px 20px;
  }

  .policy-card h2 {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .policy-card h2 > span {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  th,
  td {
    padding: 11px 12px;
    font-size: 0.8rem;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
