/* =====================================================
   Plataforma 811 Bet — Vintage Newspaper Theme
   Palette: #1A1A2E (deep indigo), #C8A96E (amber), #F5F0E8 (warm cream)
   ===================================================== */

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

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

body {
  background-color: #1A1A2E;
  background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  color: #F5F0E8;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: #C8A96E;
  color: #1A1A2E;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: #F5F0E8;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
a { color: #C8A96E; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #F5F0E8; }

small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8A96E;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}

/* ALL-CAPS suppression for company names / user content */
.body-content :is(p, li, td, dd, dt, span, section) {
  font-variant-caps: normal;
}
/* Soft-case: text that appears to be all-caps in content blocks gets normalized visually */
.body-content {
  /* We rely on JS normalization; CSS cannot selectively lowercase */
  font-variant-numeric: oldstyle-nums;
}

/* --- Header --- */
.site-header {
  background: #12122099;
  background-color: #0f0f1e;
  border-bottom: 2px solid #C8A96E;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60px;
}

.header-brand { flex: 1 1 auto; min-width: 0; }

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #C8A96E;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-link { display: block; }

/* --- Nav Toggle --- */
.nav-toggle {
  flex: 0 0 auto;
  background: none;
  border: 1.5px solid #C8A96E;
  border-radius: 3px;
  cursor: pointer;
  padding: 0.6rem 0.55rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  order: 2;
}
.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #C8A96E;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Header CTAs --- */
.header-ctas {
  flex: 0 0 auto;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  order: 3;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  border-radius: 2px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.cta-signup {
  background: #C8A96E;
  color: #1A1A2E;
  border: 1.5px solid #C8A96E;
}
.cta-signup:hover { background: #dbbf87; color: #1A1A2E; }
.cta-login {
  background: transparent;
  color: #C8A96E;
  border: 1.5px solid #C8A96E;
}
.cta-login:hover { background: #C8A96E22; color: #F5F0E8; }

/* --- Main Nav --- */
.main-nav {
  background: #0f0f1e;
  border-top: 1px solid #C8A96E44;
  display: none;
  max-width: 1200px;
  margin: 0 auto;
}
.main-nav.is-open { display: block; }

.nav-list {
  list-style: none;
  padding: 0.5rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-list li { border-bottom: 1px solid #C8A96E22; }
.nav-list li:last-child { border-bottom: none; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  color: #F5F0E8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: #C8A96E; }

/* Desktop nav */
@media (min-width: 769px) {
  .main-nav {
    display: block !important;
    border-top: none;
    border-bottom: 1px solid #C8A96E44;
  }
  .nav-toggle { display: none; }
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 1rem;
  }
  .nav-list li { border-bottom: none; border-right: 1px solid #C8A96E22; }
  .nav-list li:last-child { border-right: none; }
  .nav-list a {
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    min-height: 44px;
  }
}

/* --- Masthead Rule (home only) --- */
.masthead-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  max-width: 1200px;
  margin: 0.75rem auto 0;
  border-top: 3px double #C8A96E;
  border-bottom: 1px solid #C8A96E44;
}
.masthead-brand-full {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 900;
  color: #C8A96E;
  text-align: center;
  flex: 1;
}
.masthead-date, .masthead-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #C8A96E99;
  text-transform: uppercase;
}

/* --- Breadcrumb --- */
.breadcrumb-bar {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: #C8A96E99;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.breadcrumb-bar a {
  color: #C8A96E;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.1rem;
}
.bc-sep { color: #C8A96E55; }

/* --- Layout Containers --- */
.home-main,
.feature-main,
.faq-main,
.about-main,
.contact-main,
.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* --- Hero / Lead sections --- */
.home-hero,
.feature-lead,
.faq-lead,
.about-lead,
.contact-lead,
.inner-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #C8A96E33;
}

.page-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}

.home-h1,
.feature-h1,
.faq-h1,
.about-h1,
.contact-h1,
.inner-h1 {
  margin-bottom: 0.75rem;
}

/* Hero image / aside */
.hero-figure,
.feature-figure { margin: 0; }
.hero-img,
.feature-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #C8A96E33;
}

.hero-aside,
.feature-aside-top {
  background: #C8A96E15;
  border-left: 3px solid #C8A96E;
  padding: 1rem 1.25rem;
  border-radius: 0 2px 2px 0;
}
.eyebrow-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C8A96E;
  font-weight: 600;
}

/* Stage label */
.stage-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* --- Body Sections (content + sidebar) --- */
.home-body-section,
.feature-body-section,
.faq-body-section,
.about-body-section,
.contact-body-section,
.inner-body-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Sidebar */
.sidebar-right {
  background: #F5F0E810;
  border: 1px solid #C8A96E33;
  border-radius: 2px;
  padding: 1.25rem;
  height: fit-content;
}
.sidebar-heading {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  margin-top: 0.3rem;
  border-bottom: 1px solid #C8A96E44;
  padding-bottom: 0.4rem;
}
.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.sidebar-nav-list li { border-bottom: 1px solid #C8A96E18; }
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: #C8A96E;
  text-decoration: none;
  line-height: 1.35;
}
.sidebar-nav-list a:hover { color: #F5F0E8; text-decoration: underline; }

.sidebar-author { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #C8A96E33; }
.sidebar-author-name { font-weight: 700; font-size: 0.9rem; color: #F5F0E8; margin-bottom: 0.15rem; }
.sidebar-author-cred { font-size: 0.78rem; color: #C8A96E99; line-height: 1.4; }

/* Desktop: sidebar to the right */
@media (min-width: 769px) {
  .home-body-section,
  .feature-body-section,
  .faq-body-section,
  .about-body-section,
  .contact-body-section,
  .inner-body-section {
    grid-template-columns: 1fr 280px;
  }
  .sidebar-right { order: 2; position: sticky; top: 80px; }
  .body-content { order: 1; }
}

/* --- Body Content --- */
.body-content {
  max-width: 720px;
  min-width: 0;
}
.body-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.body-content h3 { margin-top: 1.5rem; }
.body-content ul, .body-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.body-content li { margin-bottom: 0.4rem; line-height: 1.65; }
.body-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; overflow-x: auto; display: block; }
.body-content th { background: #C8A96E; color: #1A1A2E; padding: 0.5rem 0.75rem; text-align: left; font-weight: 700; }
.body-content td { padding: 0.45rem 0.75rem; border-bottom: 1px solid #C8A96E22; }
.body-content tr:nth-child(even) td { background: #F5F0E808; }
.body-content a { color: #C8A96E; text-decoration: underline; }
.body-content a:hover { color: #F5F0E8; }
.body-content blockquote {
  border-left: 3px solid #C8A96E;
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: #C8A96E10;
  font-style: italic;
  color: #F5F0E8cc;
}
.body-content strong { color: #F5F0E8; font-weight: 700; }

/* ALL-CAPS mitigation in body content */
.body-content p,
.body-content li,
.body-content td,
.body-content dd {
  font-variant: normal;
  text-transform: none;
}

/* --- Byline --- */
.byline {
  font-size: 0.83rem;
  color: #C8A96E99;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.author-name { color: #C8A96E; font-weight: 600; }
.byline time { color: #C8A96E99; }

/* --- FAQ specific --- */
.faq-aside-intro {
  background: #C8A96E15;
  border-left: 3px solid #C8A96E;
  padding: 1rem 1.25rem;
}
.faq-aside-text { font-size: 0.9rem; color: #F5F0E8cc; margin: 0; }
.faq-content details { margin-bottom: 1rem; border-bottom: 1px solid #C8A96E22; padding-bottom: 0.75rem; }
.faq-content summary { cursor: pointer; font-weight: 700; color: #C8A96E; list-style: none; padding: 0.5rem 0; }
.faq-content summary::-webkit-details-marker { display: none; }

/* --- About specific --- */
.about-aside {
  background: #C8A96E15;
  border-left: 3px solid #C8A96E;
  padding: 1rem 1.25rem;
}
.author-profile {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #F5F0E810;
  border: 1px solid #C8A96E33;
  border-radius: 2px;
}
.author-profile small { display: block; margin-bottom: 0.4rem; }
.author-profile-name { font-size: 1.4rem; margin-bottom: 0.5rem; color: #C8A96E; }
.author-credentials { font-size: 0.85rem; color: #C8A96E99; font-style: italic; margin-bottom: 0.75rem; }
.author-bio { font-size: 0.95rem; color: #F5F0E8cc; }

/* --- Contact specific --- */
.contact-aside {
  background: #C8A96E15;
  border-left: 3px solid #C8A96E;
  padding: 1rem 1.25rem;
}

/* --- Inner (privacy) specific --- */
.inner-aside {
  background: #C8A96E15;
  border-left: 3px solid #C8A96E;
  padding: 1rem 1.25rem;
}

/* --- Child cards / related pages --- */
.child-section, .related-pages, .alternatives-list {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #C8A96E33;
}
.child-section small,
.related-pages small,
.alternatives-list small { display: block; margin-bottom: 0.4rem; }
.child-section h2,
.related-pages h2,
.alternatives-list h2 { margin-bottom: 1.25rem; }

.child-list, .alt-list {
  margin: 0;
  padding: 0;
}
.child-list dt, .alt-list dt {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1rem;
}
.child-list dt:first-child, .alt-list dt:first-child { margin-top: 0; }
.child-list dt a, .alt-list dt a {
  color: #C8A96E;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.child-list dt a:hover, .alt-list dt a:hover { color: #F5F0E8; }
.child-list dd, .alt-list dd {
  font-size: 0.88rem;
  color: #F5F0E8aa;
  margin-left: 0;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
  background: #0a0a18;
  border-top: 2px solid #C8A96E;
  margin-top: 3rem;
  padding: 1.5rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 769px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.footer-brand-col { flex: 0 0 auto; }
.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 900;
  color: #C8A96E;
}
.footer-logo { height: 36px; width: auto; }

.footer-nav { flex: 1 1 auto; }
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-nav-list li { border-bottom: 1px solid #C8A96E18; }
.footer-nav-list li:last-child { border-bottom: none; }
.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0;
  color: #F5F0E8aa;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
}
.footer-nav-list a:hover { color: #C8A96E; }

@media (min-width: 769px) {
  .footer-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 1rem;
  }
  .footer-nav-list li { border-bottom: none; }
  .footer-nav-list a { min-height: 44px; }
}

.trust-links { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.trust-links a {
  color: #C8A96E99;
  text-decoration: underline;
  font-size: 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.trust-links a:hover { color: #C8A96E; }

.footer-legal { flex: 0 0 auto; max-width: 320px; }
.responsible-gambling {
  font-size: 0.75rem;
  color: #C8A96E88;
  line-height: 1.5;
  margin-bottom: 0.4rem;
  border: 1px solid #C8A96E33;
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  background: #C8A96E08;
}
.copyright {
  font-size: 0.72rem;
  color: #F5F0E844;
  margin: 0;
}

/* --- Lead article desktop grid --- */
@media (min-width: 769px) {
  .home-hero,
  .feature-lead,
  .faq-lead {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
  .about-lead,
  .contact-lead,
  .inner-lead {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

/* --- Responsive: no horizontal scroll --- */
img { max-width: 100%; height: auto; }
table { max-width: 100%; }

@media (max-width: 768px) {
  .header-inner { padding: 0.4rem 0.75rem; gap: 0.5rem; min-height: 56px; }
  .brand-name { font-size: 0.9rem; }
  .cta { font-size: 0.75rem; padding: 0.4rem 0.6rem; min-height: 44px; }
  .home-main,
  .feature-main,
  .faq-main,
  .about-main,
  .contact-main,
  .inner-main { padding: 1rem 0.75rem 2rem; }
  .masthead-rule { flex-direction: column; gap: 0.25rem; text-align: center; }
  .footer-inner { gap: 1rem; }
}

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

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}