:root {
  color-scheme: light;
  --bg: #f8f5ec;
  --surface: #fffdf7;
  --surface-strong: #fff8e8;
  --ink: #28241d;
  --muted: #6f6658;
  --gold: #a88c3a;
  --gold-dark: #7b6427;
  --line: #e2d8bf;
  --shadow: 0 18px 50px rgba(58, 49, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 22px 0;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 18px;
  min-width: 0;
  white-space: nowrap;
}

nav a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header nav a[href="/ajuda/"] {
  order: 1;
}

.site-header nav a[href="/suporte/"] {
  order: 2;
}

.site-header nav a[href="/privacidade/"] {
  order: 3;
}

.site-header nav a[href="/termos/"] {
  order: 4;
}

.site-header nav a[href="/lgpd/"] {
  order: 5;
}

.hero {
  max-width: 820px;
  padding: 76px 0 54px;
}

.hero.compact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 250px;
  padding: 52px 0 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.hero p:not(.eyebrow),
.section-heading p,
.card p,
.content p,
.content li,
.site-footer p {
  color: var(--muted);
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 1.16rem;
}

.section {
  padding: 18px 0 64px;
}

.section-heading {
  margin-bottom: 22px;
}

.action-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 104px;
  padding: 22px 24px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.action-item:hover,
.action-item:focus-visible {
  background: var(--surface-strong);
  border-color: var(--gold);
  box-shadow: 0 22px 60px rgba(58, 49, 31, 0.12);
  outline: none;
  text-decoration: none;
  transform: translateY(-2px);
}

.action-copy {
  display: grid;
  gap: 6px;
}

.action-copy strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.action-copy span {
  color: var(--muted);
}

.action-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 42px;
  padding: 0 18px;
  color: #fffaf0;
  background: var(--gold-dark);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.action-cta::after {
  content: "›";
  margin-left: 8px;
  font-size: 1.2rem;
}

.card,
.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card p,
.content p {
  margin: 0;
}

.content {
  max-width: 860px;
  margin-bottom: 56px;
  padding: 34px;
}

.content p + p,
.content ul + h2,
.content p + h2,
.content ul + h3,
.content p + h3 {
  margin-top: 28px;
}

.content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.content li + li {
  margin-top: 8px;
}

.faq-content {
  max-width: 920px;
}

.help-intro {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.help-index {
  display: flex;
  gap: 10px;
  margin: 28px 0 46px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.help-index a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 13px;
  color: var(--gold-dark);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
}

.help-index a:hover,
.help-index a:focus-visible {
  border-color: var(--gold);
  outline: none;
  text-decoration: none;
}

.faq-section {
  scroll-margin-top: 24px;
  padding: 12px 0 44px;
}

.faq-section + .faq-section {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.faq-section h2 {
  margin-bottom: 20px;
}

.faq-section details {
  overflow: hidden;
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.faq-section details + details {
  margin-top: 10px;
}

.faq-section summary {
  position: relative;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  color: var(--ink);
  font-weight: 750;
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--gold-dark);
  font-size: 1.45rem;
  transform: translateY(-50%);
}

.faq-section details[open] summary {
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section summary:hover,
.faq-section summary:focus-visible {
  background: var(--surface-strong);
  outline: none;
}

.faq-answer {
  padding: 18px 20px 20px;
}

.faq-answer p {
  color: var(--muted);
}

.help-contact {
  margin-top: 12px;
  padding: 32px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 20px;
  color: #fffaf0;
  background: var(--gold-dark);
  border-radius: 999px;
  font-weight: 800;
}

.support-button:hover,
.support-button:focus-visible {
  background: var(--gold);
  outline: none;
  text-decoration: none;
}

.help-updated {
  margin-top: 24px !important;
  font-size: 0.9rem;
}

.site-footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 4px 0;
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .site-header {
    display: grid;
    grid-template-rows: 44px 42px;
    align-content: center;
    gap: 10px;
    min-height: 116px;
    padding: 10px 0;
  }

  .brand {
    align-self: center;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
  }

  .hero {
    padding: 50px 0 34px;
  }

  .hero.compact {
    min-height: 220px;
    padding: 38px 0 28px;
  }

  .action-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-cta {
    width: 100%;
  }

  .content {
    padding: 24px;
  }

  .faq-section summary {
    padding: 16px 48px 16px 16px;
  }

  .faq-answer {
    padding: 16px;
  }

  .help-contact {
    padding: 24px;
  }
}
