
@font-face {
  font-family: 'Slenco-Black demo';
  src: url('fonts/Slenco-Black demo.otf') format('opentype');
}

:root {
  --bg-1:#9ecae1;
  --bg-2:#c8dbef;
  --text:#0f172a;
  --white:#ffffff;
  --primary:#4A90E2;
  --primary-700:#2563eb;
  --accent:#61718a;
  --radius:16px;
  --shadow:0 10px 30px rgba(2,8,23,.15);
  --ring:0 0 0 4px rgba(74,144,226,.25);
}

/* --------- Base --------- */
* { box-sizing: border-box; }

html, body {
  margin:0; padding:0;
  font-family:'Slenco-Black demo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing:.5px;
  color:var(--white);
  scroll-behavior:smooth;
}

body {
  background: #a7c9ea;
  -webkit-font-smoothing:antialiased;
}

/* ========= Header ========= */
header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 16px;
  color:var(--white);
  background:rgba(200,219,239,.75);
  backdrop-filter:saturate(120%) blur(8px);
  box-shadow:0 2px 14px rgba(15,23,42,.15);
  min-height:56px;
}

.logo-container{ display:flex; align-items:center; margin-left:clamp(16px,4vw,100px); }
.logo{ width:clamp(72px,10vw,100px); transition: transform .25s ease; }
.logo:hover, .logo:focus{ transform: translateY(-2px) scale(1.06); outline:none; }

nav{
  display:flex; align-items:center; justify-content:center; flex-grow:1;
  margin-top:6px; flex-wrap: wrap; gap:8px;
  padding-inline: 8px;
}
nav a{
  padding:10px 16px;
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight:700;
  color:#00264d;
  text-decoration:none;
  background: rgba(255,255,255,.7);
  border-radius:999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
nav a:hover, nav a:focus{
  background:#deebf7;
  transform: translateY(-1px);
  outline:none;
  box-shadow: var(--shadow);
}
nav a.active-link{
  background: #deebf7;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.social-icons{ display:flex; align-items:center; margin:0 clamp(12px,4vw,65px) 0 auto; gap:8px; }
.social-icon{ display:inline-flex; padding:6px; border-radius:12px; transition: transform .2s ease, background .2s ease; }
.social-icon img{ max-width:50px; height:auto; }
.social-icon:hover, .social-icon:focus{ transform: translateY(-2px); background: rgba(255,255,255,.25); outline:none; }

/* Botão hamburger */
.menu-toggle{
  display:none; /* desktop */
  background: rgba(255,255,255,.7);
  border-radius:12px;
  padding:8px 10px;
  line-height:0;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
}
.menu-toggle .menu-bar{
  display:block; width:22px; height:3px; margin:4px 0;
  background:#0f172a; border-radius:2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Estado "aberto" vira ícone de X */
.menu-toggle.is-open .menu-bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-bar:nth-child(2){ opacity:0; }
.menu-toggle.is-open .menu-bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Dropdown do nav no mobile */
@media (max-width: 768px){
  .menu-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  nav#site-nav{
    position:absolute; top:100%; left:0; right:0;
    display:none; /* fechado por padrão */
    flex-direction:column; gap:6px;
    padding:10px;
    background: rgba(200,219,239,.95);
    backdrop-filter: saturate(120%) blur(8px);
    box-shadow: 0 8px 22px rgba(15,23,42,.25);
  }
  nav#site-nav.is-open{ display:flex; }
  nav#site-nav a{
    width:100%; text-align:center;
    padding:12px 16px;
    font-size: clamp(16px, 4.5vw, 18px);
  }
}


:root{
  --glass-bg: rgba(200,219,239,.75);    /* igual ao header */
  --glass-bg-strong: rgba(200,219,239,.9);
  --ink: #00264d;                       /* links/ícones escuros, coerente com nav */
  --frost-blur: 8px;                    /* igual ao header */
  --frost-saturate: 120%;
  --border-glow: 0 -4px 18px rgba(15,23,42,.18);
}

/* ===== Footer ===== */
.footer{
  z-index: 1000;
  min-height: var(--footer-h);
  position: fixed; left: 0; right: 0; bottom: 0;
  /* Vidro/blur igual ao header */
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(var(--frost-saturate)) blur(var(--frost-blur));
  backdrop-filter: saturate(var(--frost-saturate)) blur(var(--frost-blur));
  /* contorno discreto para separar do conteúdo */
  border-top: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--border-glow);

  color: #0f172a; /* texto principal um pouco mais escuro para contraste */
  text-align: center; padding: 8px 12px;
  font-size: clamp(14px, 2.2vw, 18px);

  /* Animação de entrada (controlada pelo JS existente) */
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, background .25s ease, backdrop-filter .25s ease;
}
.footer.is-ready{ will-change: opacity, transform; }
.footer.is-visible{ opacity: 1; transform: translateY(0); }

/* Navegação dentro do footer — sem alterar estrutura */
.footer .footer-nav{
  opacity: .95;
}
.footer .footer-nav a{
  padding: 0; margin: 0 .2rem;
  font-size: clamp(12px, 1.6vw, 14px);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0; box-shadow: none; transform: none;
  transition: color .2s ease, text-shadow .2s ease;
}
.footer .footer-nav a:hover,
.footer .footer-nav a:focus{
  color: #0b3a73;
  text-shadow: 0 0 1px rgba(255,255,255,.45);
  outline: none;
}

/* Ícones sociais — coerentes com o header */
.footer .footer-social{ display:flex; align-items:center; justify-content:center; gap: 10px; }
.footer .footer-social img{
  width: 28px; height: 28px; display:block; object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(2,8,23,.15));
  transition: transform .2s ease, filter .2s ease;
}
.footer .footer-social a:hover img,
.footer .footer-social a:focus img{
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 3px 8px rgba(2,8,23,.25));
}
@media (min-width: 768px){
  .footer .footer-social img{ width: 44px; height: 44px; }
}

/* Estado "forte" opcional (ex.: quando o conteúdo por baixo for muito contrastado) */
.footer.is-strong{
  background: var(--glass-bg-strong);
}

/* (Opcional) compensação de layout para conteúdo não ficar escondido pelo footer fixo
   — use apenas se notar sobreposição.  
   body{ padding-bottom: var(--footer-h); } 
*/

/* === Conteúdo: Termos de Uso (apenas .termos-uso) ======================= */
.termos-uso{
  /* compensa header e footer fixos */
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(120px, 16vh, 180px);

  /* layout */
  max-width: 1000px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

.termos-uso h1{
  margin: 0 0 18px 0;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.1;
  letter-spacing: .4px;
  /* título com gradiente leve */
  background: linear-gradient(180deg,#0f172a 0%, #1e3a8a 70%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(2,8,23,.18);
}

.termos-uso > p strong:first-child{
  font-weight: 800;
}

.termos-uso > p:first-of-type{
  /* “Última atualização” em cápsula */
  display: inline-block;
  margin: 0 0 22px 0;
  padding: 8px 14px;
  background: rgba(255,255,255,.7);
  color: #0f172a;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(2,8,23,.15);
}

/* Cartão de vidro para o bloco de termos */
.termos-uso{
  position: relative;
}
.termos-uso::before{
  content:"";
  position: absolute; inset: 0;
  margin: 0 clamp(0px, 1vw, 6px);         /* bordas suaves em telas pequenas */
  border-radius: var(--radius);
  background: rgba(255,255,255,.20);
  -webkit-backdrop-filter: saturate(125%) blur(10px);
  backdrop-filter: saturate(125%) blur(10px);
  box-shadow: 0 20px 40px rgba(2,8,23,.20);
  z-index:-1;
}

/* Tipografia e parágrafos */
.termos-uso p{
  color: #0f172a;
  font-weight: 600;
  line-height: 1.7;
  font-size: clamp(15px, 2.2vw, 18px);
  margin: 0 0 16px 0;
  opacity:.95;
}

/* Numeração e estilo dos h2 */
.termos-uso{ counter-reset: sec; }
.termos-uso h2{
  counter-increment: sec;
  position: relative;
  margin: 28px 0 12px;
  padding-left: 56px;
  font-size: clamp(20px, 3.4vw, 28px);
  color:#0b3a73;
  text-shadow: 0 2px 10px rgba(15,23,42,.12);
}
.termos-uso h2::before{
  content: counter(sec) ".";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #deebf7;
  color:#0f172a;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(2,8,23,.18), inset 0 1px 0 rgba(255,255,255,.6);
}

/* Listas com bullets personalizados */
.termos-uso ul{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 18px;
  display: grid;
  gap: 10px;
}
.termos-uso li{
  position: relative;
  padding-left: 28px;
  color:#0f172a;
  font-weight: 600;
  line-height: 1.6;
  font-size: clamp(15px, 2.2vw, 18px);
}
.termos-uso li::before{
  content: "";
  position: absolute; left: 0; top: .3em;
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 2px solid #0ea5e9;
  box-shadow: inset 0 0 0 4px rgba(14,165,233,.15);
  background:
    radial-gradient(circle at 50% 55%, #0ea5e9 48%, transparent 50%);
  -webkit-mask:
    radial-gradient(circle at 45% 55%, transparent 52%, #000 53%) ,
    linear-gradient(#000 0 0);
  mask:
    radial-gradient(circle at 45% 55%, transparent 52%, #000 53%) ,
    linear-gradient(#000 0 0);
}

/* Separadores suaves entre secções (após listas ou parágrafos longos) */
.termos-uso h2 + p,
.termos-uso h2 + ul,
.termos-uso p + h2{
  margin-top: 8px;
}
.termos-uso p + p{ margin-top: 6px; }

.termos-uso h2 + p:last-of-type,
.termos-uso ul:last-of-type{
  margin-bottom: 0;
}
.termos-uso h2:not(:first-of-type){
  border-top: 1px solid rgba(255,255,255,.35);
  padding-top: 24px;
}

/* Links no conteúdo (se houver) */
.termos-uso a{
  color:#0b3a73;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.termos-uso a:hover, .termos-uso a:focus{
  text-decoration: underline;
}

/* Acessibilidade e navegação por âncoras */
.termos-uso h2, .termos-uso h1{ scroll-margin-top: 110px; }

/* Ajustes responsivos */
@media (max-width: 768px){
  .termos-uso::before{ margin: 0; border-radius: 12px; }
  .termos-uso h2{ padding-left: 48px; }
  .termos-uso h2::before{ width: 36px; height: 36px; border-radius: 10px; }
}
