/* ============================================================
   Páginas legais Reconecta (Termos de Uso, Política de Privacidade)
   Identidade reconectaoficial.com.br adaptada pra leitura longa
   ============================================================ */

/* Fontes self-hosted (mesmas da /reclame-aqui) */
@font-face {
  font-family: 'Sfizia Bold';
  src: url('../assets/fonts/sfizia-bold.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sfizia Regular';
  src: url('../assets/fonts/sfizia-regular.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('../assets/fonts/bebas-neue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Tokens */
:root {
  --bg-black:           #000000;
  --bg-black-elevated:  #121111;
  --red-institucional:  #6B0F0F;
  --cream-gold:         #FFE1A6;
  --white:              #FFFFFF;
  --white-soft:         rgba(255, 255, 255, 0.78);
  --white-faint:        rgba(255, 255, 255, 0.50);
  --font-display:       'Sfizia Bold', Georgia, 'Times New Roman', serif;
  --font-body:          'Sfizia Regular', 'Inter', system-ui, -apple-system, sans-serif;
  --font-tag:           'Bebas Neue', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg-black);
  color: var(--white-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Esconder scrollbar (mesmo padrao do reclame-aqui) */
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
html, body { scrollbar-width: none !important; }

a {
  color: var(--cream-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 225, 166, 0.30);
  transition: border-color 0.2s;
  word-break: break-word;
}

a:hover { border-bottom-color: var(--cream-gold); }

/* ============================================================
   NAVBAR (mesma da /reclame-aqui)
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 225, 166, 0.10);
  padding: 18px 0;
}

.navbar__container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
}

.navbar__logo img {
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar__logo-icon { height: 26px; }
.navbar__logo-text { height: 11px; }

@media (max-width: 600px) {
  .navbar__logo-icon { height: 22px; }
  .navbar__logo-text { height: 9px; }
}

/* ============================================================
   HERO (titulo da pagina)
   ============================================================ */
.legal-hero {
  padding: 80px 24px 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(107, 15, 15, 0.55) 0%, transparent 65%),
    linear-gradient(180deg, #1a0303 0%, var(--bg-black) 100%);
}

.legal-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--cream-gold);
  text-transform: uppercase;
  margin: 0;
}

.legal-hero__updated {
  font-family: var(--font-tag);
  font-size: 0.78rem;
  color: var(--white-faint);
  letter-spacing: 0.08em;
  margin-top: 14px;
  text-transform: uppercase;
}

/* ============================================================
   CORPO DO DOCUMENTO
   ============================================================ */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cream-gold);
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 225, 166, 0.10);
}

.legal-content h2:first-of-type {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--white);
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}

.legal-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--white-soft);
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.legal-content li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white-soft);
  margin: 0 0 8px;
}

.legal-content li::marker {
  color: var(--cream-gold);
}

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

/* ============================================================
   FOOTER (minimal, mesmo da /reclame-aqui)
   ============================================================ */
.page-footer {
  background: var(--bg-black);
  padding: 32px 24px 28px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 920px;
  margin: 40px auto 0;
}

.page-footer__copyright {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.page-footer__copyright a {
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: transparent;
}

.page-footer__copyright a:hover {
  color: var(--cream-gold);
  border-bottom-color: rgba(255, 225, 166, 0.4);
}

/* ============================================================
   ACESSIBILIDADE / motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--cream-gold);
  outline-offset: 3px;
}

/* ============================================================
   Mobile fine-tuning
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .legal-hero { padding: 60px 20px 30px; }
  .legal-content { padding: 32px 20px 60px; }
  .legal-content h2 { margin-top: 36px; padding-top: 20px; }
}
