/* ==========================================================================
   AQS Advocacia — páginas de apoio (política de privacidade, obrigado e 404)
   Templates termos/obrigado/404 da PROEMI, com as cores e fontes das landing pages (white.css)
   ========================================================================== */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/dm-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('../fonts/dm-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-serif-display.woff2') format('woff2'); }

:root {
	--tinta: #29241E;          /* títulos */
	--texto: #25211B;          /* parágrafos */
	--tinta-suave: #5C5348;    /* texto secundário */
	--destaque: #7C5A32;       /* links e detalhes */
	--dourado: #8A7153;        /* botão (texto branco: 4,6:1) */
	--dourado-hover: #795F40;
	--areia: #EEE7DD;          /* fundo das páginas de obrigado e 404 */
	--branco: #FFFFFF;
	--linha: #DED4C6;
	--sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
	--serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--texto); background: var(--branco); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { color: #fff; background-color: var(--dourado); }
a:focus-visible { outline: 2px solid var(--destaque); outline-offset: 3px; border-radius: 4px; }

/* Link "voltar" (política e obrigado) */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--destaque); text-decoration: none; transition: color .2s, transform .2s; }
.back-link:hover { color: var(--dourado-hover); transform: translateX(-2px); }
.back-link::before { content: '←'; font-size: 14px; }

/* ── POLÍTICA DE PRIVACIDADE (template termos) ─────────────────────────── */
.termos .container { max-width: 860px; margin: 0 auto; padding: 48px 48px 80px; }
.termos .back-link { margin-bottom: 40px; }
.termos h1 { margin-bottom: 20px; font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; color: var(--tinta); }
.termos .intro { max-width: 680px; margin-bottom: 48px; font-size: 16px; color: var(--tinta-suave); }
.termos section { margin-bottom: 36px; }
.termos h2 { margin-bottom: 10px; font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--tinta); }
.termos p { margin-bottom: 12px; font-size: 15px; color: var(--texto); }
.termos p:last-child { margin-bottom: 0; }
.termos .credito a { text-decoration: none; font-weight: 600; transition: color .2s; }
.termos .credito a:hover { color: var(--destaque); }
.termos footer { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--linha); }
.termos .footer-copy { font-size: 12px; color: var(--tinta-suave); }

/* ── OBRIGADO E 404 ────────────────────────────────────────────────────── */
.tela { min-height: 100vh; background: var(--areia); }
.obrigado .back-link { position: absolute; top: 32px; left: 40px; }
.obrigado .center, .erro .wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.obrigado h1 { margin-bottom: 20px; font-family: var(--serif); font-size: 120px; font-weight: 400; line-height: 1; letter-spacing: -.03em; color: var(--tinta); }
.obrigado .message, .erro .message { font-size: 16px; line-height: 1.5; color: var(--tinta-suave); }
.erro .error-code { margin-bottom: 32px; font-family: var(--serif); font-size: 220px; font-weight: 400; line-height: 1; letter-spacing: -.04em; color: var(--tinta); }
.erro .message { max-width: 360px; margin-bottom: 32px; font-weight: 400; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; background: var(--dourado); border-radius: 6px; transition: background-color .2s, transform .2s; }
.btn:hover { background: var(--dourado-hover); transform: translateY(-2px); }

/* ── MOBILE ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.termos .container { padding: 28px 20px 64px; }
	.termos .back-link { margin-bottom: 28px; font-size: 14px; }
	.termos h1 { margin-bottom: 16px; font-size: 34px; }
	.termos .intro { margin-bottom: 36px; font-size: 15px; }
	.termos h2 { margin-bottom: 8px; }
	.termos p { font-size: 14px; line-height: 1.75; }
	.termos section { margin-bottom: 28px; }
	.termos footer { margin-top: 40px; padding-top: 24px; }

	.obrigado .back-link { top: 28px; left: 24px; gap: 8px; font-size: 16px; font-weight: 600; }
	.obrigado .center { justify-content: flex-start; padding-top: calc(28px + 20px + 60px); }
	.obrigado h1 { margin-bottom: 16px; font-size: 72px; }
	.obrigado .message { max-width: 320px; font-size: 15px; }

	.erro .wrapper { justify-content: flex-start; padding-top: 80px; }
	.erro .error-code { margin-bottom: 28px; font-size: 140px; }
	.erro .message { max-width: 280px; margin-bottom: 28px; font-size: 17px; }
	.btn { padding: 16px 36px; font-size: 16px; }
}
@media (max-width: 375px) {
	.termos .container { padding: 24px 16px 56px; }
	.termos h1 { font-size: 30px; }
	.obrigado h1 { font-size: 58px; }
	.erro .error-code { font-size: 110px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
