/* =========================================================================
   DMR — Estilos das páginas institucionais (Políticas / Canal do Titular)
   Reproduz o shell do site (header, nav, rodapé, botões, tipografia)
   com rodapé ESTÁTICO (adequado a páginas de conteúdo longo).
   ========================================================================= */
:root {
  --gold: #B08C58;
  --navy: #26344C;
  --cream: #FBF4EA;
  --light: #EAEBE6;
  --gray: #626365;
  --dark: #333333;
  --white: #ffffff;
  --max: 1180px;
  --body-font: "BW Modelica", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  --head-font: "Fashion Fetish", "Montserrat", "Avenir Next", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--dark);
  background: var(--light);
  font-family: var(--body-font);
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--head-font);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 300;
}

.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px;
  color: var(--gold); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold); }

/* ── Botão ─────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  border: 1px solid var(--gold); padding: 12px 22px; color: var(--gold);
  font-family: var(--body-font); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; background: transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button:hover { color: var(--navy); background: var(--gold); }
.button-solid { background: var(--gold); color: var(--navy); }
.button-solid:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ── Header / Nav ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 244, 234, 0.96);
  border-bottom: 1px solid rgba(176, 140, 88, 0.34);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand-mark { width: 86px; aspect-ratio: 975 / 868; padding: 3px; display: block; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.nav {
  display: flex; align-items: center; gap: 26px; color: var(--navy);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav a { opacity: 0.84; transition: color 180ms ease, opacity 180ms ease; }
.nav a:hover { color: var(--gold); opacity: 1; }

.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0; background: none;
  border: 1px solid rgba(176, 140, 88, 0.46); cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy);
  transition: transform 300ms ease, opacity 300ms ease; transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 980px) { .nav-toggle { display: flex; } .nav { display: none; } }

/* ── Nav overlay (mobile) ──────────────────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0; z-index: 800; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: rgba(38, 52, 76, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none; transition: opacity 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-overlay-links { display: flex; flex-direction: column; align-items: center; gap: 0; }
.nav-overlay-links a {
  display: block; padding: 12px 32px; color: rgba(251, 244, 234, 0.68);
  font-family: var(--head-font); font-size: clamp(1.6rem, 6vw, 2.8rem); font-weight: 300;
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transform: translateY(28px);
  transition: color 220ms ease, opacity 200ms ease, transform 200ms ease;
}
.nav-overlay.is-open .nav-overlay-links a {
  opacity: 1; transform: translateY(0);
  transition: color 220ms ease, opacity 460ms ease, transform 460ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-overlay.is-open .nav-overlay-links a:nth-child(1) { transition-delay: 60ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(2) { transition-delay: 120ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(3) { transition-delay: 180ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(4) { transition-delay: 240ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(5) { transition-delay: 300ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(6) { transition-delay: 360ms; }
.nav-overlay-links a:hover { color: var(--gold); }

/* ── Page hero (faixa navy) ────────────────────────────────────────── */
.page-hero { background: var(--navy); color: var(--white); padding: 72px 0 60px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero h1 strong { color: var(--gold); font-weight: 600; }
.page-hero p { max-width: 720px; margin: 16px 0 0; color: rgba(251, 244, 234, 0.82); }

/* ── Conteúdo ──────────────────────────────────────────────────────── */
.page-section { padding: 64px 0; }
.page-section.cream { background: var(--cream); }
.content { max-width: 820px; }
.content p { color: var(--dark); margin: 0 0 14px; }
.content a { color: var(--gold); text-decoration: underline; font-weight: 600; }
.content ul { margin: 0 0 14px; padding-left: 22px; }
.content li { margin: 4px 0; }
.content h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }

/* Accordion (details/summary) */
.acc { max-width: 820px; margin: 26px 0 0; border-top: 1px solid rgba(38,52,76,.16); }
.acc details { border-bottom: 1px solid rgba(38,52,76,.16); }
.acc summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--head-font); font-size: 1.15rem; font-weight: 400; color: var(--navy);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--body-font); font-size: 1.5rem; color: var(--gold); transition: transform .2s ease;
}
.acc details[open] summary::after { content: "–"; }
.acc summary:hover { color: var(--gold); }
.acc .acc-body { padding: 0 0 18px; color: var(--dark); }
.acc .acc-body p { margin: 0 0 12px; }
.acc .acc-body a { color: var(--gold); text-decoration: underline; font-weight: 600; }

/* Tabela de cookies */
.cookie-table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.cookie-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(38,52,76,.14); }
.cookie-table th { color: var(--navy); font-weight: 700; text-transform: uppercase; font-size: 0.74rem; letter-spacing: .06em; }
.cookie-table td { color: var(--gray); }

/* Card do DPO */
.dpo-card {
  max-width: 820px; margin: 0 auto; background: var(--navy); color: var(--cream);
  border: 1px solid rgba(176,140,88,.4); border-radius: 4px; padding: 30px 34px;
}
.dpo-card h2 { color: var(--gold); font-size: 1.4rem; margin: 0 0 8px; }
.dpo-card p { margin: 0; color: rgba(251,244,234,.9); line-height: 1.7; }
.dpo-card .dpo-data { margin: 14px 0 0; font-size: 1.02rem; }
.dpo-card a:not(.button) { color: var(--gold); text-decoration: underline; }
.dpo-card .button { margin-top: 20px; color: var(--navy); text-decoration: none; }
.dpo-card .button:hover { color: var(--cream); }

/* ── Rodapé (estático) ─────────────────────────────────────────────── */
.site-footer-static {
  color: var(--navy); background: var(--cream); border-top: 5px solid var(--gold); padding: 58px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.6fr); gap: 52px; align-items: start; }
.footer-logo { width: min(420px, 100%); aspect-ratio: 1735 / 676; margin-bottom: 20px; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.site-footer-static p { max-width: 600px; margin: 0 0 12px; color: var(--gray); }
.site-footer-static h4 { margin-bottom: 18px; color: var(--gold); font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer-static a { color: inherit; }
.site-footer-static .footer-contact a { color: var(--navy); }
.footer-dpo { margin-top: 22px; font-size: 0.86rem; line-height: 1.6; color: var(--gray); }
.footer-dpo a { color: var(--gold); text-decoration: underline; }
.legal {
  display: flex; justify-content: space-between; gap: 18px; margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(98, 99, 101, 0.22); color: rgba(51, 51, 51, 0.64); font-size: 0.82rem; flex-wrap: wrap;
}
.social-icon {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid rgba(176, 140, 88, 0.82); color: var(--gold); background: rgba(251, 244, 234, 0.025);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.social-icon svg { width: 20px; height: 20px; stroke-width: 1.7; }
.social-icon:hover { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Formulário (Canal do Titular) ─────────────────────────────────── */
.titular-card {
  max-width: 780px; margin: 0 auto; background: var(--white);
  border: 1px solid rgba(38,52,76,.1); border-radius: 6px; padding: 40px;
  box-shadow: 0 20px 50px rgba(38,52,76,.06);
}
.field { margin: 0 0 18px; }
.field label.lbl { display: block; font-weight: 700; color: var(--navy); font-size: 0.9rem; margin: 0 0 6px; }
.req { color: #b4342a; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font-family: var(--body-font); font-size: 0.98rem; color: var(--dark);
  background: #fafafa; border: 1px solid #d7d3cc; border-radius: 4px; padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field textarea { resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.motivos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.motivos label {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 66px; padding: 12px 14px; border: 1px solid #d7d3cc; border-radius: 4px; background: #fafafa;
  color: var(--dark); font-size: 0.92rem; line-height: 1.35; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.motivos label:hover { border-color: var(--gold); }
.motivos input { position: absolute; opacity: 0; width: 0; height: 0; }
.motivos label.is-selected, .motivos label:has(input:checked) {
  border-color: var(--gold); background: #f6ecdd; box-shadow: 0 0 0 1px var(--gold) inset; color: var(--navy); font-weight: 700;
}
.consent { font-size: 0.9rem; color: var(--dark); display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 4px; }
.titular-aviso { margin-top: 14px; font-size: 0.82rem; line-height: 1.5; color: var(--gray); }
.titular-aviso a { color: var(--gold); text-decoration: underline; font-weight: 600; }
.titular-dpo { margin-top: 24px; font-size: 0.9rem; color: var(--dark); }
.titular-dpo a { color: var(--gold); font-weight: 600; }
.titular-rights { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 22px; }
.titular-rights li { position: relative; padding-left: 22px; color: rgba(251,244,234,.9); font-size: 0.95rem; }
.titular-rights li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* ── Modal de feedback do envio ────────────────────────────────────── */
.tf-overlay {
  position: fixed; inset: 0; z-index: 100050; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(13,27,42,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.tf-overlay.tf-open { display: flex; }
.tf-modal {
  width: 100%; max-width: 440px; background: #fff; border-radius: 8px; padding: 40px 32px; text-align: center;
  box-shadow: 0 24px 60px rgba(13,27,42,.35); transform: translateY(14px) scale(.95); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.tf-overlay.tf-open .tf-modal { transform: none; opacity: 1; }
.tf-icon { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: #eef3ee; display: flex; align-items: center; justify-content: center; }
.tf-icon svg { width: 54px; height: 54px; }
.tf-icon circle { stroke: #4b8c5a; stroke-width: 3; fill: none; stroke-dasharray: 151; stroke-dashoffset: 151; }
.tf-icon path { stroke: #4b8c5a; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.tf-overlay.tf-open .tf-icon circle { animation: tf-ring .5s ease forwards; }
.tf-overlay.tf-open .tf-icon path { animation: tf-draw .4s .35s ease forwards; }
@keyframes tf-ring { to { stroke-dashoffset: 0; } }
@keyframes tf-draw { to { stroke-dashoffset: 0; } }
.tf-bang { display: none; font-size: 46px; font-weight: 800; color: #b4342a; line-height: 1; }
.tf-title { font-family: var(--head-font); color: var(--navy); font-weight: 400; font-size: 1.6rem; margin: 0 0 10px; }
.tf-message { color: var(--dark); font-size: 0.98rem; line-height: 1.55; margin: 0 0 26px; }
.tf-message a { color: var(--gold); font-weight: 600; }
.tf-modal .button { min-width: 170px; }
.tf-overlay.tf-error .tf-icon { background: #fbeceb; }
.tf-overlay.tf-error .tf-check { display: none; }
.tf-overlay.tf-error .tf-bang { display: block; }
.tf-overlay.tf-error .tf-title { color: #b4342a; }
