/* ===================================
   POLÍTICA DE PRIVACIDADE - STYLES
   =================================== */

/* The policy reuses the incumbent navigation while keeping its brand mark
   independent from the document's single, content-level h1. */
.privacy-page .navbar-brand-heading {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.privacy-page .navbar-brand-heading > .navbar-img {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-left: 0;
  overflow: hidden;
  color: var(--accent-color) !important;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.privacy-logo {
  display: block;
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  object-fit: contain;
}

.privacy-hero {
  position: relative;
  display: flex;
  min-height: 300px;
  margin-top: 72px;
  padding: 3.5rem 1rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, #077840 100%);
}

.privacy-hero::before {
  position: absolute;
  inset: 0;
  content: '';
  background: url('../img/banner01.jpg') center/cover no-repeat;
  opacity: 0.16;
}

.privacy-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 81, 44, 0.92) 0%, rgba(7, 120, 64, 0.86) 100%);
}

.privacy-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-width: 0;
  padding: 0 1rem;
  color: var(--text-color-contrast);
  text-align: center;
}

.privacy-hero-content h1 {
  max-width: 100%;
  margin: 0 0 1rem;
  color: var(--text-color-contrast);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.privacy-hero-content h1 span {
  color: #7ee8a8;
}

.privacy-hero-content > p:last-child {
  max-width: 72ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.6;
}

.privacy-content {
  background: #f8f9fa;
}

.privacy-card {
  border-radius: var(--border-radius-md);
  background: var(--background-color-body);
  box-shadow: 0 4px 20px rgba(44, 45, 63, 0.08);
}

.privacy-summary {
  position: sticky;
  top: calc(var(--navbar-offset) + 1.5rem);
  padding: 1.75rem;
  border-top: 2px solid var(--primary-color);
}

.privacy-summary h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.35;
}

.privacy-summary > p {
  max-width: 36ch;
  margin-bottom: 0;
  color: var(--text-color-primary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy-summary nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.privacy-summary nav a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-left: 1px solid transparent;
  color: var(--text-color-primary);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.privacy-summary nav a:hover,
.privacy-summary nav a:focus-visible {
  border-left-color: var(--primary-color);
  background-color: #f0f8f3;
  color: #03452a;
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}

.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 2px solid var(--primary-color);
  background: #f0f8f3;
}

.privacy-notice i {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  color: var(--primary-color);
  font-size: 1.35rem;
}

.privacy-notice p {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--text-color-primary);
  line-height: 1.7;
}

/* Sections read as one document instead of a stack of identical cards. */
.privacy-section {
  margin-bottom: 0;
  padding: 2rem 0;
  scroll-margin-top: calc(var(--navbar-offset) + 1rem);
}

.privacy-section + .privacy-section {
  border-top: 1px solid #d9e4de;
}

.privacy-section h2 {
  margin-bottom: 1rem;
  color: var(--text-color-heading);
  font-size: 1.45rem;
  line-height: 1.35;
}

.privacy-section h3 {
  margin: 1.5rem 0 0.7rem;
  color: var(--text-color-heading);
  font-size: 1.1rem;
  line-height: 1.4;
}

.privacy-section p,
.privacy-section li {
  max-width: 72ch;
  color: var(--text-color-primary);
  font-size: 0.98rem;
  line-height: 1.75;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section ul {
  max-width: 72ch;
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}

.privacy-section li + li {
  margin-top: 0.45rem;
}

.privacy-section a,
.privacy-contact-list a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}

.privacy-section a:hover,
.privacy-section a:focus-visible,
.privacy-contact-list a:hover,
.privacy-contact-list a:focus-visible {
  color: #03452a;
}

.privacy-contact-list {
  max-width: 72ch;
  margin: 1rem 0;
  padding: 1rem 1.25rem !important;
  border-radius: var(--border-radius-sm);
  background: #f8f9fa;
  list-style: none;
}

.privacy-contact-list li + li {
  margin-top: 0.5rem;
}

.privacy-page a:focus-visible,
.privacy-page button:focus-visible {
  outline: 3px solid #0b5d3c;
  outline-offset: 3px;
}

.privacy-map {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
}

.privacy-footer-heading {
  font-size: 20px;
}

.privacy-footer-divider {
  margin-top: 20px;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-copyright {
  font-size: 14px;
  opacity: 0.8;
}

/* The shared variable is intentionally light blue for other surfaces. The
   policy keeps content links dark in every interactive state for readability. */
.privacy-page .privacy-section a:hover,
.privacy-page .privacy-section a:focus-visible,
.privacy-page .privacy-contact-list a:hover,
.privacy-page .privacy-contact-list a:focus-visible,
.privacy-page .privacy-summary nav a:hover,
.privacy-page .privacy-summary nav a:focus-visible {
  color: #03452a;
}

.privacy-page .withUs:hover,
.privacy-page .withUs:focus-visible {
  color: var(--primary-color) !important;
}

.privacy-page .btn-nav-custom:hover,
.privacy-page .btn-nav-custom:focus-visible {
  color: #ffffff !important;
}

@media only screen and (max-width: 1919px) {
  .privacy-page .navbar-brand-heading > .navbar-img .navbar-lab-name,
  .privacy-page .navbar-brand-heading > .navbar-img .navbar-lab-name-short {
    display: none;
  }
}

@media only screen and (max-width: 1400px) {
  .privacy-page .navbar-brand-heading > .navbar-img {
    font-size: 16px;
  }

  .privacy-logo {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media only screen and (max-width: 992px) {
  .privacy-page .navbar-brand-heading > .navbar-img {
    padding-right: 0 !important;
    font-size: 18px;
  }

  .privacy-summary {
    position: static;
  }
}

@media only screen and (max-width: 768px) {
  .privacy-hero {
    min-height: 250px;
  }

  .privacy-hero-content {
    padding: 0;
  }

  .privacy-hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2.1rem);
  }

  .privacy-hero-content > p:last-child {
    font-size: 1rem;
  }

  .privacy-section h2 {
    font-size: 1.25rem;
  }
}

@media only screen and (max-width: 767px) {
  .privacy-page .navbar-brand-heading > .navbar-img {
    gap: 8px;
    font-size: 16px;
  }

  .privacy-page .navbar-brand-heading > .navbar-img .navbar-lab-name {
    display: none;
  }

  .privacy-page .navbar-brand-heading > .navbar-img .navbar-lab-name-short {
    display: inline;
  }

  .privacy-logo {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media only screen and (max-width: 576px) {
  .privacy-hero {
    padding: 2.5rem 0.75rem;
  }

  .privacy-summary {
    padding: 1.35rem;
  }

  .privacy-notice {
    gap: 0.7rem;
    padding: 1rem;
  }

  .privacy-section {
    padding: 1.5rem 0;
  }

  .privacy-section p,
  .privacy-section li {
    font-size: 0.93rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .privacy-summary nav a {
    transition: none;
  }
}
