/* ============================================================
   POLÍTICA DE PRIVACIDADE — A FORJA EDUCAÇÃO
   Design System v1.5.1 (Newsreader + Manrope + Paleta Oficial)
   ============================================================ */

/* ---------- @font-face ---------- */
@font-face {
  font-family: Newsreader;
  src: url(/politica_privacidade/assets/fonts/newsreader-regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url(/politica_privacidade/assets/fonts/newsreader-semibold.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url(/politica_privacidade/assets/fonts/newsreader-italic.woff2) format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/politica_privacidade/assets/fonts/manrope-regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/politica_privacidade/assets/fonts/manrope-semibold.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/politica_privacidade/assets/fonts/manrope-bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --graphite: #171918;
  --limestone: #f6f3f0;
  --concrete: #a9a39a;
  --copper: #b45f3c;
  --orange: #f05a23;
  --petroleum: #176b70;
  --white: #fafaf9;
  --line: #d9d9db;
  --muted: #62645f;
  --shell: 75rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --font-editorial: "Newsreader", Georgia, serif;
  --font-functional: "Manrope", Arial, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
}

body {
  background: var(--limestone);
  color: var(--graphite);
  text-rendering: optimizelegibility;
  font-family: var(--font-functional);
  font-size: 16px;
  line-height: 1.65;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--petroleum);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease);
}
a:hover {
  color: var(--orange);
}

h1, h2, h3, h4 {
  font-family: var(--font-editorial);
  font-weight: 600;
  line-height: 1.1;
  color: var(--graphite);
}

/* ---------- Layout & Shell ---------- */
.shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--shell));
  margin-inline: auto;
  position: relative;
}

.skip-link {
  z-index: 1000;
  background: var(--orange);
  color: var(--graphite);
  padding: .65rem 1rem;
  font-weight: 700;
  position: fixed;
  top: .5rem;
  left: 1rem;
  transform: translateY(-160%);
  transition: transform 150ms var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header / Topbar ---------- */
.topbar {
  z-index: 100;
  height: 4.5rem;
  background: #f6f3f0eb;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #17191824;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.topbar-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo img {
  width: 150px;
  height: auto;
  display: block;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--graphite);
}
.topbar-nav a:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--graphite);
  color: var(--limestone) !important;
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.nav-cta span {
  color: var(--orange);
}
.nav-cta:hover {
  background: #2a2d2b;
  transform: translateY(-1px);
}

/* ---------- Hero Banner ---------- */
.legal-hero {
  padding-top: 7.5rem;
  padding-bottom: 3rem;
  background: var(--limestone);
  border-bottom: 1px solid var(--line);
}

.legal-hero__eyebrow {
  color: var(--petroleum);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legal-hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--orange);
  border-radius: 50%;
}

.legal-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.legal-hero__meta strong {
  color: var(--graphite);
}

/* ---------- Main Grid Layout ---------- */
.legal-main {
  padding-block: 4rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- Sticky Table of Contents ---------- */
.legal-toc {
  position: sticky;
  top: 6rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--petroleum);
  padding: 1.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.legal-toc__title {
  font-family: var(--font-functional);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petroleum);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-toc__list a {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-left: 2px solid transparent;
  transition: all 150ms var(--ease);
}

.legal-toc__list a:hover,
.legal-toc__list a.is-active {
  color: var(--graphite);
  font-weight: 600;
  border-left-color: var(--orange);
  background: rgba(240, 90, 35, 0.06);
}

/* ---------- Document Content ---------- */
.legal-content {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.legal-section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1.25rem;
  color: var(--graphite);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.legal-section p {
  color: #383b39;
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  color: #383b39;
}

.legal-section li {
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* Featured Box / Company Info Card */
.company-card {
  background: var(--limestone);
  border: 1px solid var(--line);
  border-left: 4px solid var(--petroleum);
  padding: 1.5rem;
  margin-block: 1.5rem;
}
.company-card p {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}
.company-card p:last-child {
  margin-bottom: 0;
}
.company-card strong {
  color: var(--graphite);
}

/* Callout Box */
.callout-box {
  background: rgba(240, 90, 35, 0.08);
  border: 1px solid rgba(240, 90, 35, 0.3);
  border-left: 4px solid var(--orange);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  font-size: 0.92rem;
  color: var(--graphite);
}

/* ---------- Footer ---------- */
footer {
  color: var(--limestone);
  background: #0e0f0f;
  padding: 3rem 0;
  margin-top: 4rem;
}
footer .shell {
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  display: flex;
}
footer img {
  width: 10rem;
}
footer p {
  color: #a9a39a;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
  font-size: .68rem;
}
footer nav {
  display: flex;
  gap: 1.5rem;
}
footer nav a {
  color: var(--limestone);
  text-decoration: none;
  font-size: 0.85rem;
}
footer nav a:hover {
  color: var(--orange);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    max-height: none;
  }
  footer .shell {
    flex-direction: column;
    align-items: flex-start;
  }
}
