@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  /* Colors - Based on G1 Design System */
  --primary: #E30613;
  --primary-dark: #B8040F;
  --black: #000000;
  --gray-900: #111111;
  --gray-800: #222222;
  --gray-700: #333333;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #BBBBBB;
  --gray-200: #DDDDDD;
  --gray-100: #EEEEEE;
  --gray-50: #F5F5F5;
  --white: #FFFFFF;
  
  --bg-color: #F5F5F5;
  --bg-card: #FFFFFF;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: #E0E0E0;
  
  --warning-bg: #fff3cd;
  --warning-text: #856404;

  /* Typography */
  --font-primary: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header Structure */
.header-top {
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-main {
  height: 56px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  background-color: var(--primary);
  color: var(--white);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 1.25rem;
}

.header-nav {
  height: 44px;
  background-color: var(--white);
  border-bottom: 2px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
}

.header-nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 200ms ease;
}

.header-nav a:hover {
  color: var(--primary);
}

/* Responsible Panel */
.responsible-panel {
  background-color: var(--warning-bg);
  color: var(--warning-text);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.8125rem;
  border-bottom: 1px solid #ffeeba;
  font-weight: 500;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Main Article Content */
.main-content {
  margin: 24px auto;
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  max-width: 680px;
}

.category-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.main-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.main-content h2, .main-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin-top: 32px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.meta-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.main-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.main-content li {
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 18px;
}

.btn-secondary:hover {
  background-color: rgba(227,6,19,0.08);
}

/* Call to action section */
.cta-section {
  background-color: var(--gray-50);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 4px;
  text-align: center;
  margin: 32px 0;
}

.cta-section h3 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  text-align: center;
  color: var(--primary);
}

.terms-snapshot {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: left;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.terms-snapshot a {
  color: var(--primary);
  text-decoration: none;
}

.terms-snapshot a:hover {
  text-decoration: underline;
}

/* Footer */
.compliance-footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: 48px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.footer-links a:hover {
  text-decoration: underline;
}

.disclaimer-text {
  margin-top: 32px;
  font-size: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  color: var(--text-muted);
  text-align: justify;
}

/* Age Gate Modal */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.age-gate-modal {
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.age-gate-modal h2 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.age-gate-modal p {
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}
.contact-form label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-700);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border: 2px solid var(--primary);
    padding: 11px; /* adjust for border width */
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.warning-box {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    padding: 16px;
    border-left: 4px solid #ffeeba;
    margin: 24px 0;
    font-size: 0.875rem;
}

/* FAQ Section */
.faq-section details {
    background-color: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 12px 16px;
}
.faq-section summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    list-style: none; /* Hide default arrow */
    position: relative;
    padding-right: 24px;
}
.faq-section summary::-webkit-details-marker {
    display: none;
}
.faq-section summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary);
}
.faq-section details[open] summary::after {
    content: '-';
}
.faq-section details p {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* LGPD Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--gray-900);
    color: var(--white);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    flex-wrap: wrap;
    gap: 16px;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1 1 300px;
}
.cookie-banner a {
    color: #FF1A27;
    text-decoration: underline;
}
