/* ============================================================
   Transparência BR — style.css
   Mobile-first, 360px base
   Fonts: Archivo (headings) + Libre Franklin (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Libre+Franklin:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:          #92400E;  /* Amber 800 */
  --primary-light:    #FEF3C7;  /* Amber 100 */
  --primary-dark:     #78350F;  /* Amber 900 */
  --secondary:        #164E63;  /* Cyan 900 */
  --secondary-light:  #E0F2FE;  /* Sky 100 */
  --accent:           #92400E;
  --accent-hover:     #78350F;
  --text-primary:     #18181B;  /* Zinc 900 */
  --text-secondary:   #71717A;  /* Zinc 500 */
  --bg:               #FFFFFF;
  --bg-alt:           #FAFAFA;
  --bg-highlight:     #FFFBEB;  /* Amber 50 */
  --bg-section:       #F0F9FF;  /* Sky 50 */
  --border:           #D4D4D8;
  --alert-bg:         #FEF2F2;
  --alert-border:     #DC2626;
  --radius:           6px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Franklin', 'Georgia', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  min-width: 360px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', 'Segoe UI', sans-serif;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  line-height: 1.7;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-highlight {
  background: var(--bg-highlight);
}

.section-petrol {
  background: var(--bg-section);
}

/* ============================================================
   ALERT BANNER
   ============================================================ */
.alert-banner {
  background: var(--alert-bg);
  border-bottom: 3px solid var(--alert-border);
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #991B1B;
}

.alert-banner a {
  color: #991B1B;
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Hamburger — visible on mobile */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Nav — hidden by default on mobile */
nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 8px 0 16px;
}

nav.open {
  display: block;
}

.nav-links {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  gap: 4px;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--radius);
  display: block;
  font-family: 'Libre Franklin', sans-serif;
  transition: background 0.15s;
}

.nav-links a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 64px 0;
  background: var(--bg);
}

.hero h1 {
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: 'Archivo', sans-serif;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 48px;
  border: 2px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn-danger {
  background: #DC2626;
  color: #fff;
  border-color: #DC2626;
}

.btn-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
  color: #fff;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: 'Archivo', sans-serif;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  font-family: 'Archivo', sans-serif;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.6;
}

.card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card a.card-link {
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
}

.card a.card-link:hover {
  text-decoration: underline;
}

/* ============================================================
   ANTI-PHISHING SECTION
   ============================================================ */
.phishing-box {
  background: var(--bg-highlight);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
}

.phishing-box h2 {
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-family: 'Archivo', sans-serif;
}

.phishing-box p {
  color: var(--text-primary);
  line-height: 1.7;
}

/* ============================================================
   OFFICIAL LINKS SECTION
   ============================================================ */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.link-card {
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow 0.2s;
}

.link-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.link-card a {
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
}

.link-card a:hover {
  text-decoration: underline;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-family: 'Libre Franklin', sans-serif;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text-primary);
  transition: outline 0.15s, border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 0;
  border-color: var(--secondary);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: unset;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--secondary);
}

.form-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* ============================================================
   ARTICLE / CONTENT PAGES
   ============================================================ */
.article-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-secondary);
}

.article-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Archivo', sans-serif;
  letter-spacing: 0.3px;
}

.article-content {
  max-width: 780px;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 32px 0 12px;
  font-family: 'Archivo', sans-serif;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
  font-family: 'Archivo', sans-serif;
}

.article-content p {
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.75;
  list-style: revert;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.article-content th {
  background: var(--secondary);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
}

.article-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.article-content tr:nth-child(even) {
  background: var(--bg-alt);
}

/* Callouts */
.callout {
  background: var(--bg-highlight);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.callout p {
  margin-bottom: 0;
}

.callout-danger {
  background: var(--alert-bg);
  border-left-color: var(--alert-border);
}

/* Steps list */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: steps-counter;
}

.steps-list li {
  padding: 12px 16px 12px 48px;
  position: relative;
  border-left: 2px solid var(--primary-light);
  margin-bottom: 8px;
  counter-increment: steps-counter;
}

.steps-list li::before {
  content: counter(steps-counter);
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Archivo', sans-serif;
}

/* ============================================================
   BADGES STRIP
   ============================================================ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   TABLE RESPONSIVE
   ============================================================ */
.table-responsive {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #18181B;
  color: #A1A1AA;
  padding: 48px 0 24px;
}

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

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E4E4E7;
  margin-bottom: 16px;
  font-family: 'Archivo', sans-serif;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #A1A1AA;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-col p {
  font-size: 14px;
  color: #A1A1AA;
  line-height: 1.65;
}

.footer-disclaimer {
  border-top: 1px solid #3F3F46;
  padding-top: 24px;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.7;
  color: #71717A;
}

.footer-bottom {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #52525B;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {

  /* Buttons */
  .btn-group {
    flex-direction: row;
    align-items: flex-start;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Official links */
  .links-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Table responsive no longer needed on tablet+ */
  .table-responsive {
    overflow-x: visible;
  }
}

/* ============================================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {

  /* Navigation: hide hamburger, show nav inline */
  .hamburger {
    display: none;
  }

  nav {
    display: block;
    position: static;
    background: transparent;
    border-bottom: none;
    padding: 0;
  }

  nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0;
  }

  .nav-links a {
    padding: 8px 16px;
    white-space: nowrap;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
