/* ==========================================================================
   Império Ourivesaria — Design System & Stylesheet
   Paleta: Dark Luxe (Azul Marinho Quase Preto #0B0E17 + Dourado Metálico #D4AF37)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  /* Paleta de Cores */
  --bg-main: #0B0E17;
  --bg-secondary: #12161F;
  --bg-card: rgba(18, 22, 31, 0.85);
  --bg-card-hover: rgba(24, 29, 41, 0.95);
  
  --gold-primary: #D4AF37;
  --gold-light: #E8C97A;
  --gold-dark: #9C7A28;
  --gold-gradient: linear-gradient(135deg, #E8C97A 0%, #D4AF37 50%, #9C7A28 100%);
  --gold-glow: rgba(212, 175, 55, 0.15);
  
  --text-main: #F5F1E8;
  --text-muted: #A9AFBC;
  --text-dim: #6C727F;
  
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Tipografia */
  --font-display: 'Cinzel', serif;
  --font-sub: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Efeitos */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.12);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 40%);
}

/* Container */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  transition: var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

/* Logo Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-subtitle {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Container de Ações no Header (Botão WhatsApp + Hambúrguer) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Botão Menu Hambúrguer (Mobile) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--gold-glow);
  border-color: var(--gold-light);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0B0E17;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: var(--gold-glow);
  color: var(--text-main);
  border-color: var(--gold-light);
}

/* Page Hero Header */
.legal-hero {
  padding: 4rem 0 3rem 0;
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.6) 0%, rgba(11, 14, 23, 1) 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.legal-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.badge-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-primary);
  border-radius: 50px;
  color: var(--gold-light);
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

.doc-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Layout Principal de Documentos Legais */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem 0;
  align-items: start;
}

/* Sidebar Index Navigation */
.toc-sidebar {
  position: sticky;
  top: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.toc-link:hover, .toc-link.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border-left-color: var(--gold-primary);
  padding-left: 14px;
}

/* Conteúdo da Política / Termos */
.legal-article {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  scroll-margin-top: 100px;
}

.legal-section:hover {
  border-color: var(--border-gold);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2rem;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.legal-section h3 {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1.2rem 0 0.6rem 0;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

.legal-section ul, .legal-section ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Boxes em Destaque (ex: CNPJ, Atendimento, LGPD DPO) */
.info-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.info-value a {
  color: var(--gold-light);
  text-decoration: none;
  transition: var(--transition);
}

.info-value a:hover {
  text-decoration: underline;
}

/* Callout Box Aviso Legal */
.notice-box {
  background: rgba(18, 22, 31, 0.9);
  border-left: 4px solid var(--gold-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: #070910;
  border-top: 1px solid var(--border-gold);
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-cnpj {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
  width: fit-content;
  font-family: var(--font-sub);
  letter-spacing: 0.05em;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-info-item svg {
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-info-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-info-item a:hover {
  color: var(--gold-light);
}

.footer-address-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-address-text strong {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  
  .toc-sidebar {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* Header Responsivo para Mobile & Tablet (<= 992px) */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding: 0.8rem 1.25rem 1.25rem 1.25rem;
  }

  .site-nav .nav-link {
    padding: 12px 14px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: block;
    width: 100%;
  }

  .site-nav .nav-link:last-child {
    border-bottom: none;
  }

  .site-nav .nav-link::after {
    display: none;
  }

  .site-nav .nav-link:hover, 
  .site-nav .nav-link.active {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-light);
    padding-left: 20px;
    border-left: 3px solid var(--gold-primary);
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    height: 65px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }

  /* Ajuste de Botões Responsivos */
  .btn {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.05em;
  }

  .btn svg {
    width: 15px;
    height: 15px;
  }

  .header-content .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
  }

  .hero-home {
    padding: 3.5rem 0 2.5rem 0;
  }

  .hero-actions {
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .legal-section {
    padding: 1.4rem;
  }

  .cta-banner {
    padding: 2.2rem 1.25rem;
    margin-bottom: 3rem;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  .cta-banner .btn {
    width: 100%;
    max-width: 290px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 94%;
    padding: 0 0.75rem;
  }

  .brand-subtitle {
    display: none;
  }

  .header-content .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
  }

  .header-content .btn svg {
    display: inline-block;
  }

  .btn {
    font-size: 0.75rem;
    padding: 0.48rem 0.85rem;
  }
}

/* Printable Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }
  .site-header, .toc-sidebar, .site-footer, .btn {
    display: none !important;
  }
  .legal-layout {
    grid-template-columns: 1fr !important;
  }
  .legal-section {
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    background: none !important;
  }
  .legal-section h2 {
    color: #000000 !important;
  }
}
