/* ========================================================================== */
/*                      LEGAL PAGES V3 — QUERU DNA PREMIUM                    */
/* ========================================================================== */
/* Matches index.html design system exactly: same container, shadows, borders */

/* ========== FONTS (Same as main.css) ========== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-tQKr51.woff2) format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-tQKr51.woff2) format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-tQKr51.woff2) format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-tQKr51.woff2) format('woff2');
}

/* ========== CSS VARIABLES (Queru DNA) ========== */
:root {
  /* Colors - EXACT from main.css */
  --primary: #D91E0D;
  --primary-dark: #BF0413;
  --bg-warm: #FAF1E6;
  --accent: #F29979;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #666666;
  --text-subtitle: #999999;
  --success: #059669;
  --error: #EF4444;

  /* Footer Palette (suave, premium) */
  --footer-bg: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
  --footer-card: rgba(255, 255, 255, 0.94);
  --footer-border: rgba(228, 87, 78, 0.14);
  --footer-shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
  --footer-text: #1F2933;
  --footer-subtext: #4B5563;
  --footer-pill: rgba(5, 150, 105, 0.16);
  --footer-pill-border: rgba(5, 150, 105, 0.32);
  --footer-accent: #E4574E;

  /* Shadows - EXACT from main.css */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-mega: 0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.10),
    0 20px 40px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-display: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout - Same as index.html header */
  --container-max: 1280px;
  --container-padding: 32px;
}

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

/* ========== SCROLLBAR (Queru DNA: Red on Black) ========== */
::-webkit-scrollbar {
  width: 18px;
  height: 18px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #FF0000, #CC0000);
  border-radius: 9px;
  border: 4px solid #000000;
  min-height: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #FF3333, #FF0000);
}

@media (hover: none) and (pointer: coarse) {
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  html,
  body {
    scrollbar-width: none;
  }
}

/* ========== BASE ========== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-warm);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== HEADER (Same as index.html) ========== */
.header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 241, 230, 0.96) 100%);
  backdrop-filter: blur(14px);
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid transparent;
  border-image: repeating-linear-gradient(90deg,
      rgba(217, 30, 13, 0.1) 0px,
      rgba(217, 30, 13, 0.1) 10px,
      transparent 10px,
      transparent 18px) 1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-content {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
  height: 48px;
  width: auto;
}

.logo:hover {
  transform: translateY(-2px);
}

/* Back Button - Notinha Style */
.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(254, 243, 199, 0.6);
  border: 2px dashed rgba(217, 30, 13, 0.25);
  border-radius: 12px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover {
  background: #FEF3C7;
  border-color: var(--primary);
  transform: translateX(-4px);
  box-shadow: 0 2px 8px rgba(217, 30, 13, 0.15);
}

.back-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Update Badge */
.update-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--footer-pill);
  border: 1px solid var(--footer-pill-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.update-badge svg {
  width: 14px;
  height: 14px;
}

/* ========== MAIN CONTENT ========== */
.main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px var(--container-padding) 80px;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header .subtitle {
  font-size: 15px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== CONTENT CARD (Footer Card Style) ========== */
.content-card {
  background: var(--footer-card);
  border: 1px solid var(--footer-border);
  border-radius: 24px;
  box-shadow: var(--footer-shadow);
  padding: 40px;
  margin-bottom: 24px;
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card h2 svg {
  width: 22px;
  height: 22px;
  color: var(--footer-accent);
}

.content-card p {
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.75;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul,
.content-card ol {
  color: var(--text-medium);
  margin: 16px 0 16px 24px;
  line-height: 1.75;
}

.content-card li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.content-card strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Definition List */
.content-card dl {
  margin: 16px 0;
}

.content-card dt {
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.content-card dd {
  color: var(--text-medium);
  margin-left: 20px;
  margin-top: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--footer-border);
}

.content-card dd:last-child {
  border-bottom: none;
}

/* ========== CALLOUT BOXES ========== */
/* Acceptance Box (FOMO Yellow Style) */
.callout-accept {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  background: linear-gradient(90deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 16px;
  margin: 32px 0;
  animation: fomoGlow 3s infinite alternate;
}

@keyframes fomoGlow {
  from {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.2);
  }

  to {
    box-shadow: 0 0 16px 4px rgba(251, 191, 36, 0.35);
  }
}

.callout-accept h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-accept p {
  color: #78350F;
  line-height: 1.6;
  margin: 0;
}

/* Contact Box (Pills Style) */
.callout-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--footer-card);
  border: 1px solid var(--footer-border);
  border-radius: 16px;
  margin: 32px 0;
}

.callout-contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 12px rgba(217, 30, 13, 0.2);
}

.callout-contact-icon svg {
  width: 24px;
  height: 24px;
}

.callout-contact-content {
  flex: 1;
  min-width: 200px;
}

.callout-contact-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.callout-contact-content p {
  font-size: 14px;
  color: var(--text-medium);
  margin: 0;
}

.callout-contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--footer-pill);
  border: 1px solid var(--footer-pill-border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--footer-text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-pill:hover {
  background: rgba(5, 150, 105, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.contact-pill svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* ========== SIGNATURE BOX (Termos) ========== */
.signature-box {
  background: var(--bg-white);
  border: 2px dashed rgba(217, 30, 13, 0.2);
  border-radius: 16px;
  padding: 28px;
  margin: 32px 0;
}

.signature-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.signature-line svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.signature-line strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.signature-text {
  background: linear-gradient(90deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 12px;
  padding: 16px 20px;
  color: #78350F;
  font-size: 14px;
  line-height: 1.6;
}

/* ========== FOOTER (Same as index.html) ========== */
.footer {
  background: var(--footer-bg);
  padding: 40px 0;
  border-top: 1px solid var(--footer-border);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  opacity: 0.8;
}

.footer-text {
  font-size: 14px;
  color: var(--footer-subtext);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  .header {
    height: 70px;
  }

  .logo img {
    height: 36px;
  }

  .back-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .back-btn span {
    display: none;
  }

  .update-badge {
    display: none;
  }

  .main {
    padding: 32px var(--container-padding) 60px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .content-card {
    padding: 24px;
    border-radius: 16px;
  }

  .callout-accept,
  .callout-contact {
    padding: 20px;
  }

  .callout-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .callout-contact-links {
    width: 100%;
  }

  .contact-pill {
    flex: 1;
    justify-content: center;
  }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}