/* Estilos específicos para página de Política de Privacidade */
body.policy-page {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
}

body.policy-page * {
  max-width: 100%;
}

/* Header específico para páginas de política e termos */
body.policy-page .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 10000 !important;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(0, 45, 71, 0.1);
  box-shadow: 0 2px 10px rgba(0, 45, 71, 0.05);
  transition: all 0.3s ease;
}

body.policy-page .site-header.scrolled {
  backdrop-filter: blur(20px);
  background: rgba(2, 11, 26, 0.85);
}

body.policy-page .site-header .brand-name {
  color: var(--primary);
  transition: color 0.3s ease;
}

body.policy-page .site-header.scrolled .brand-name {
  color: #fff;
}

body.policy-page .site-header .menu a {
  color: var(--text);
  transition: color 0.3s ease;
}

body.policy-page .site-header.scrolled .menu a {
  color: rgba(255, 255, 255, 0.9);
}

body.policy-page .site-header .menu a:after {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

body.policy-page .site-header.scrolled .menu a:after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.5)
  );
}

body.policy-page .site-header .nav-toggle {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: all 0.3s ease;
  display: none;
}

@media (max-width: 720px) {
  body.policy-page .site-header .nav-toggle {
    display: inline-flex;
  }
}

body.policy-page .site-header.scrolled .nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.policy-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(0, 45, 71, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 45, 71, 0.04) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  z-index: -2;
  pointer-events: none;
}

body.policy-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='clean-grid' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 120 0 L 0 0 0 120' fill='none' stroke='%23002d47' stroke-width='0.5' opacity='0.03'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='120' height='120' fill='url(%23clean-grid)'/%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  animation: subtleDrift 40s ease-in-out infinite;
}

@keyframes subtleDrift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate(10px, 10px);
    opacity: 0.6;
  }
}

body.policy-page main {
  padding-top: 80px;
  width: 100%;
  max-width: 100%;
}

/* Page content dentro do container global */
body.policy-page .container .page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
  position: relative;
  scroll-margin-top: 80px;
  width: 100%;
  box-sizing: border-box;
}

.page-content h1 {
  animation: fadeUp 0.8s ease both;
}

.page-content::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -150px;
  width: 400px;
  height: 400px;
  max-width: 100vw;
  background: radial-gradient(
    circle,
    rgba(0, 45, 71, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 25s ease-in-out infinite;
  pointer-events: none;
  overflow: hidden;
}

.page-content::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -150px;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(0, 45, 71, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(40px, -40px) scale(1.15);
    opacity: 0.8;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content h1 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 24px;
}

.page-content .last-update {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.page-content h2 {
  font-size: 24px;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}

.page-content h2.fade-in {
  opacity: 1;
  transform: translateY(0);
}

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

.page-content h3 {
  font-size: 20px;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}

.page-content h3.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.page-content p {
  margin-bottom: 16px;
  color: #43506a;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}

.page-content p.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.page-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}

.page-content ul.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.page-content li {
  margin-bottom: 8px;
  color: #43506a;
}

.page-content .last-update {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
