/* ===========================================================
   Design System — Formação Profissão IA
   Páginas legais (Privacidade, Termos, Reembolso)
   =========================================================== */

:root {
  --bg-deep: #0a0000;
  --bg-dark: #131212;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --orange-500: #fb440a;
  --orange-400: #fb693a;
  --orange-600: #c83606;
  --green-500: #13b669;
  --green-400: #31d583;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-30: rgba(255, 255, 255, 0.3);
  --yellow: #ffc107;
  --gold: #e6a817;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Sora', sans-serif;
  --radius: 12px;
  --radius-btn: 8px;
  --max-w: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Tipografia ===== */
.t-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--white);
}

.t-h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--white);
}

.t-h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 28px);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--white);
}

.t-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-50);
}

.t-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--white-70);
}

.t-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--white-70);
}

.t-body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-50);
}

.t-orange { color: var(--orange-500); }
.t-green  { color: var(--green-400); }
.t-white  { color: var(--white); }

/* ===== Topbar ===== */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg-deep);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 12px rgba(251, 68, 10, 0.6);
}

.brand-tag {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--white-50);
  text-transform: uppercase;
}

.back-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white-50);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover { color: var(--orange-400); }

/* ===== Hero Header (página legal) ===== */
.legal-hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 75% 40%, rgba(180, 40, 0, 0.45), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 70%, rgba(251, 68, 10, 0.18), transparent 55%),
    linear-gradient(160deg, #0a0000, #110500, #1a0600);
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.legal-hero .t-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.legal-hero .t-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--orange-500);
}

.legal-hero h1 {
  margin-bottom: 20px;
}

.legal-hero .lead {
  font-size: 18px;
  color: var(--white-70);
  max-width: 640px;
}

.legal-hero .meta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--white-70);
  letter-spacing: 0.04em;
}

.meta-chip strong {
  color: var(--white);
  font-weight: 700;
}

/* Orbs decorativos */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 4s ease-in-out infinite;
}
.orb-1 {
  width: 480px;
  height: 480px;
  background: rgba(251, 68, 10, 0.18);
  top: -120px;
  right: -100px;
}
.orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(19, 182, 105, 0.08);
  bottom: -80px;
  left: -60px;
  animation-delay: 1.5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.04); }
}

/* ===== Conteúdo legal ===== */
.legal-section {
  padding: 80px 0 96px;
  background: var(--bg-deep);
}

.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sidebar de navegação */
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(12px);
}

.legal-toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-50);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--white-70);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.legal-toc a:hover {
  color: var(--white);
  background: rgba(251, 68, 10, 0.08);
  border-left-color: var(--orange-500);
}

/* Corpo do conteúdo */
.legal-content {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 56px;
  backdrop-filter: blur(8px);
}

.legal-content article + article {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  line-height: 1.3;
}

.legal-content h2 .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--orange-500);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--white-70);
  margin-bottom: 14px;
}

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

.legal-content a {
  color: var(--orange-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 68, 10, 0.3);
  transition: all 0.2s;
}
.legal-content a:hover {
  color: var(--orange-500);
  border-bottom-color: var(--orange-500);
}

.legal-content strong {
  color: var(--white);
  font-weight: 700;
}

.legal-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
  padding: 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--white-70);
  line-height: 1.65;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
}

.legal-content ul li strong {
  color: var(--white);
  font-weight: 700;
}

/* Quote / destaque */
.quote-block {
  padding: 20px 24px;
  border-left: 3px solid var(--orange-500);
  background: rgba(251, 68, 10, 0.06);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.quote-block p {
  font-size: 15px;
  color: var(--white-70);
  font-style: italic;
  margin: 0;
}

/* Info card (Contato / Responsável) */
.info-card {
  margin-top: 32px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--radius);
}

.info-card-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-500);
  margin-bottom: 10px;
}

.info-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--white-70);
  margin-bottom: 6px;
}

/* CTA voltar / contato no final */
.legal-cta {
  margin-top: 56px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.legal-cta h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.legal-cta p {
  font-size: 15px;
  color: var(--white-70);
  margin-bottom: 22px;
}

.legal-cta .contact-email {
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.legal-cta .contact-email a {
  color: var(--orange-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 68, 10, 0.4);
  padding-bottom: 2px;
  transition: all 0.2s;
}
.legal-cta .contact-email a:hover {
  color: var(--orange-500);
  border-bottom-color: var(--orange-500);
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(rgb(255, 71, 4) 0%, rgb(175, 25, 25) 100%);
  border: 1px solid rgb(136, 15, 1);
  border-radius: var(--radius-btn);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px;
  text-decoration: none;
  cursor: pointer;
  transition: padding 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}
.btn-cta:hover { padding: 16px 40px; opacity: 0.92; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 12px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--orange-400);
  color: var(--orange-400);
}

/* ===== Footer ===== */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px;
  color: var(--white-50);
  line-height: 1.7;
  max-width: 520px;
}

.footer-brand--solo {
  text-align: center;
  margin-bottom: 32px;
}
.footer-brand--solo .brand { justify-content: center; }
.footer-brand--solo p { margin-left: auto; margin-right: auto; }

.footer-company {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--orange-500);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-50);
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 13px;
  color: var(--white-70);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange-400); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--white-50);
  line-height: 1.7;
}

.footer-bottom .disclaimer {
  margin-top: 14px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white-30);
  font-size: 11px;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ===== Responsividade ===== */
@media (max-width: 960px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-toc {
    position: relative;
    top: auto;
  }
  .legal-content {
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .legal-hero { padding: 64px 0 48px; }
  .legal-section { padding: 56px 0 72px; }
  .legal-content { padding: 28px 22px; }
  .legal-content h2 { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; display: block; }
  .legal-cta { padding: 28px 22px; }
}
